45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# Created by: Zhihao Yuan <lichray@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= umplayer
|
|
DISTVERSION= 0.97
|
|
PORTREVISION= 1
|
|
CATEGORIES= multimedia audio kde
|
|
MASTER_SITES= LOCAL/wen
|
|
|
|
MAINTAINER= lichray@gmail.com
|
|
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
|
|
INSTALLS_ICONS= yes
|
|
MAKE_ARGS= QMAKE_OPTS="DEFINES+=NO_DEBUG_ON_CONSOLE" PREFIX="${PREFIX}"
|
|
ALL_TARGET= src/umplayer
|
|
|
|
MAN1= umplayer.1
|
|
MANCOMPRESSED= yes
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${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 ${PORT_OPTIONS:MDOCS}
|
|
@${REINPLACE_CMD} -E -e '/(install|tar).*DOC_PATH/d' \
|
|
${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|