2013-07-26 10:44:52 +02:00
|
|
|
# Created by: Zhihao Yuan <lichray@gmail.com>
|
2011-06-20 16:02:08 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= umplayer
|
2011-12-13 07:10:01 +01:00
|
|
|
DISTVERSION= 0.97
|
2015-07-15 22:58:57 +02:00
|
|
|
PORTREVISION= 3
|
2011-06-20 16:02:08 +02:00
|
|
|
CATEGORIES= multimedia audio kde
|
|
|
|
MASTER_SITES= LOCAL/wen
|
|
|
|
|
|
|
|
MAINTAINER= lichray@gmail.com
|
2013-07-26 10:44:52 +02:00
|
|
|
COMMENT= Modern front-end for MPlayer (fork of SMPlayer)
|
2011-06-20 16:02:08 +02:00
|
|
|
|
2015-07-15 22:58:57 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/Copying.txt
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS= mplayer:multimedia/mplayer
|
2011-06-20 16:02:08 +02:00
|
|
|
|
2015-07-15 22:58:57 +02:00
|
|
|
USES= desktop-file-utils gmake qmake tar:xz
|
2014-01-06 17:18:18 +01:00
|
|
|
USE_QT4= gui network xml moc_build rcc_build uic_build \
|
2015-07-15 22:58:57 +02:00
|
|
|
linguisttools_build
|
2011-06-20 16:02:08 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2014-01-06 17:18:18 +01:00
|
|
|
MAKE_ARGS+= PREFIX=${PREFIX} DESTDIR=${STAGEDIR}
|
2013-11-22 13:55:11 +01:00
|
|
|
QMAKE_ARGS+= "DEFINES+=NO_DEBUG_ON_CONSOLE"
|
2013-07-26 10:44:52 +02:00
|
|
|
ALL_TARGET= src/umplayer
|
2014-01-06 17:18:18 +01:00
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/src
|
2011-06-20 16:02:08 +02:00
|
|
|
|
2013-07-26 10:44:52 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2011-06-20 16:02:08 +02:00
|
|
|
post-patch:
|
2013-07-26 10:44:52 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| make| $$(MAKE)|' \
|
|
|
|
-e 's|cd src|(&| ; /cd src/s|$$|)|' \
|
2014-01-06 17:18:18 +01:00
|
|
|
-e 's|&& $$(QMAKE) $$(QMAKE_OPTS)||' \
|
2013-11-22 13:55:11 +01:00
|
|
|
-e 's|lrelease|${LRELEASE}|' \
|
2013-07-26 10:44:52 +02:00
|
|
|
-e 's|/share/man|/man|' \
|
2011-06-20 16:02:08 +02:00
|
|
|
-e 's|/doc/packages|/doc|' \
|
|
|
|
-e 's|^.*/get_svn_revision.sh$$||' \
|
2013-07-26 10:44:52 +02:00
|
|
|
${WRKSRC}/Makefile
|
2015-08-28 15:39:56 +02:00
|
|
|
|
|
|
|
post-patch-DOCS-off:
|
2011-06-20 16:02:08 +02:00
|
|
|
@${REINPLACE_CMD} -E -e '/(install|tar).*DOC_PATH/d' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
2015-07-15 22:58:57 +02:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
|
2011-06-20 16:02:08 +02:00
|
|
|
.include <bsd.port.mk>
|