freebsd-ports/multimedia/minitube/Makefile
Max Brazhnikov 7678193c3d - Add global options (DOCS, NLS, etc) to the OPTIONS_DEFINE and partly revert r315222 [1]
- Convert WITH_DEBUG to new options framework
- Trim Makefile header
- Adjust COMMENTs
- Reformat/update description

[1] See follow-up discussion: http://lists.freebsd.org/pipermail/svn-ports-head/2013-March/016094.html
2013-05-12 11:48:49 +00:00

48 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= minitube
PORTVERSION= 2.0
CATEGORIES= multimedia www
MASTER_SITES= http://flavio.tordini.org/files/minitube/
MAINTAINER= makc@FreeBSD.org
COMMENT= TV-like client for YouTube
USE_QT4= gui network xml dbus phonon phonon-gst \
qmake_build moc_build rcc_build imageformats_run
USE_GSTREAMER= ffmpeg
HAS_CONFIGURE= yes
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
QMAKE_ARGS= -recursive PREFIX=${PREFIX} QMAKE_LRELEASE=${LRELEASE} ${QMAKE_PRO}
QMAKE_PRO= ${WRKSRC}/${PORTNAME}.pro
LRELEASE= ${LOCALBASE}/bin/lrelease-qt4
STRIP_FILES= bin/minitube
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_QT4+= linguist_build
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
pre-configure:
${REINPLACE_CMD} -e 's,$$$$PKGDATADIR,${DATADIR},g' ${QMAKE_PRO}
.if !${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} -e '/include(locale\/locale.pri)/d' ${QMAKE_PRO}
.endif
do-configure:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS}
post-install:
${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
.include <bsd.port.mk>