60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# Created by: thierry@pompo.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tvdownloader
|
|
PORTVERSION= 0.7.2
|
|
PORTREVISION= 5
|
|
CATEGORIES= french multimedia
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Download podcasts and videos from French websites
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= msdl:${PORTSDIR}/multimedia/msdl \
|
|
rtmpdump:${PORTSDIR}/multimedia/rtmpdump \
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
|
|
${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto\
|
|
${PYTHON_SITELIBDIR}/mechanize/_mechanize.py:${PORTSDIR}/www/py-mechanize
|
|
|
|
USES= python shebangfix
|
|
SHEBANG_FILES= doc/installdox
|
|
ALL_TARGET= build
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e 's|@python|${PYTHON_CMD}|' \
|
|
${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
|
|
${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
|
|
${WRKSRC}/tvdownloader.sh
|
|
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
|
|
${WRKSRC}/tvdownload.desktop
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
|
${REINPLACE_CMD} -e 's|%%DOC%%|#|' ${WRKSRC}/Makefile
|
|
.else
|
|
${REINPLACE_CMD} -e 's|%%DOC%%||' ${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|