diff options
author | danfe <danfe@FreeBSD.org> | 2013-07-26 16:44:52 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-07-26 16:44:52 +0800 |
commit | b3bea5b0df56e3066667ec2ce13e664e0ab1f10b (patch) | |
tree | f68a8c7b83f9fcbb5a4d3539994bac84b691e004 /multimedia | |
parent | 1e075324b735763743d7b6839243f779fe469ebd (diff) | |
download | freebsd-ports-gnome-b3bea5b0df56e3066667ec2ce13e664e0ab1f10b.tar.gz freebsd-ports-gnome-b3bea5b0df56e3066667ec2ce13e664e0ab1f10b.tar.zst freebsd-ports-gnome-b3bea5b0df56e3066667ec2ce13e664e0ab1f10b.zip |
- Fix parallel build by wrapping compound commands in parentheses (for a
subshell spawn) and replacing hardcoded `make' with correct $(MAKE)
- Remove useless and confusing global modifiers from REINPLACE_CMD regex'
- Cleanup Makefile while here: trim header, sort the knobs, employ USES
- Convert NOPORTDOCS -> PORT_OPTIONS:MDOCS, add OPTIONS_DEFINE
Reported by: pointyhat-west
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/umplayer/Makefile | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/multimedia/umplayer/Makefile b/multimedia/umplayer/Makefile index 262fc33a3195..d532a69fed2d 100644 --- a/multimedia/umplayer/Makefile +++ b/multimedia/umplayer/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: umplayer -# Date created: 2 May, 2011 -# Whom: Zhihao Yuan <lichray@gmail.com> -# +# Created by: Zhihao Yuan <lichray@gmail.com> # $FreeBSD$ -# PORTNAME= umplayer DISTVERSION= 0.97 @@ -12,33 +8,35 @@ CATEGORIES= multimedia audio kde MASTER_SITES= LOCAL/wen MAINTAINER= lichray@gmail.com -COMMENT= A modern front-end for mplayer (forked from smplayer) +COMMENT= Modern front-end for MPlayer (fork of SMPlayer) RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer +USES= gmake +USE_XZ= yes USE_QT4= gui network xml qmake_build moc_build rcc_build uic_build \ linguist_build - -ALL_TARGET= src/umplayer - -USE_XZ= yes -USE_GMAKE= yes INSTALLS_ICONS= yes -MAKE_ARGS+= QMAKE_OPTS="DEFINES+=NO_DEBUG_ON_CONSOLE" +MAKE_ARGS= QMAKE_OPTS="DEFINES+=NO_DEBUG_ON_CONSOLE" PREFIX="${PREFIX}" +ALL_TARGET= src/umplayer MAN1= umplayer.1 MANCOMPRESSED= yes +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + post-patch: - @${REINPLACE_CMD} -e 's|qmake|${QMAKE}|g' \ - -e 's|lrelease|${QT_PREFIX}/bin/lrelease-qt4|g' \ - -e 's|PREFIX=/usr/local|PREFIX=${PREFIX}|g' \ - -e 's,/share/man,/man,g' \ + @${REINPLACE_CMD} -e 's| make| $$(MAKE)|' \ + -e 's|cd src|(&| ; /cd src/s|$$|)|' \ + -e 's|qmake|${QMAKE}|' \ + -e 's|lrelease|${QT_PREFIX}/bin/lrelease-qt4|' \ + -e 's|/share/man|/man|' \ -e 's|/doc/packages|/doc|' \ -e 's|^.*/get_svn_revision.sh$$||' \ - ${WRKSRC}/Makefile - -.if defined(NOPORTDOCS) + ${WRKSRC}/Makefile +.if ${PORT_OPTIONS:MDOCS} @${REINPLACE_CMD} -E -e '/(install|tar).*DOC_PATH/d' \ ${WRKSRC}/Makefile .endif |