1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/multimedia/umplayer/Makefile
Dmitry Marakasov e638299edc - Switch to options helpers
- While here, add some NO_ARCHes and couple missing PORT_OPTIONS=DOCS

Approved by:	portmgr blanket
2015-08-28 13:39:56 +00:00

47 lines
1.1 KiB
Makefile

# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
PORTNAME= umplayer
DISTVERSION= 0.97
PORTREVISION= 3
CATEGORIES= multimedia audio kde
MASTER_SITES= LOCAL/wen
MAINTAINER= lichray@gmail.com
COMMENT= Modern front-end for MPlayer (fork of SMPlayer)
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/Copying.txt
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
USES= desktop-file-utils gmake qmake tar:xz
USE_QT4= gui network xml moc_build rcc_build uic_build \
linguisttools_build
INSTALLS_ICONS= yes
MAKE_ARGS+= PREFIX=${PREFIX} DESTDIR=${STAGEDIR}
QMAKE_ARGS+= "DEFINES+=NO_DEBUG_ON_CONSOLE"
ALL_TARGET= src/umplayer
CONFIGURE_WRKSRC= ${WRKSRC}/src
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's| make| $$(MAKE)|' \
-e 's|cd src|(&| ; /cd src/s|$$|)|' \
-e 's|&& $$(QMAKE) $$(QMAKE_OPTS)||' \
-e 's|lrelease|${LRELEASE}|' \
-e 's|/share/man|/man|' \
-e 's|/doc/packages|/doc|' \
-e 's|^.*/get_svn_revision.sh$$||' \
${WRKSRC}/Makefile
post-patch-DOCS-off:
@${REINPLACE_CMD} -E -e '/(install|tar).*DOC_PATH/d' \
${WRKSRC}/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>