svn commit: r323704 - head/multimedia/umplayer
Alexey Dokuchaev
danfe at FreeBSD.org
Fri Jul 26 08:44:53 UTC 2013
Author: danfe
Date: Fri Jul 26 08:44:52 2013
New Revision: 323704
URL: http://svnweb.freebsd.org/changeset/ports/323704
Log:
- 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
Modified:
head/multimedia/umplayer/Makefile
Modified: head/multimedia/umplayer/Makefile
==============================================================================
--- head/multimedia/umplayer/Makefile Fri Jul 26 08:03:41 2013 (r323703)
+++ head/multimedia/umplayer/Makefile Fri Jul 26 08:44:52 2013 (r323704)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: umplayer
-# Date created: 2 May, 2011
-# Whom: Zhihao Yuan <lichray at gmail.com>
-#
+# Created by: Zhihao Yuan <lichray at gmail.com>
# $FreeBSD$
-#
PORTNAME= umplayer
DISTVERSION= 0.97
@@ -12,33 +8,35 @@ CATEGORIES= multimedia audio kde
MASTER_SITES= LOCAL/wen
MAINTAINER= lichray at 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
More information about the svn-ports-head
mailing list