2013-09-20 17:21:20 +00:00
|
|
|
# Created by: thierry@pompo.net
|
2010-12-20 17:41:43 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tvdownloader
|
|
|
|
PORTVERSION= 0.7.2
|
2013-02-03 18:16:54 +00:00
|
|
|
PORTREVISION= 4
|
2010-12-20 17:41:43 +00:00
|
|
|
CATEGORIES= french multimedia
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
MASTER_SITE_SUBDIR=
|
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Download podcasts and videos from French websites
|
|
|
|
|
2014-04-09 20:47:32 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2010-12-20 17:41:43 +00:00
|
|
|
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\
|
2014-04-09 20:47:32 +00:00
|
|
|
${PYTHON_SITELIBDIR}/mechanize/_mechanize.py:${PORTSDIR}/www/py-mechanize
|
2010-12-20 17:41:43 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2014-04-09 20:47:32 +00:00
|
|
|
USES= shebangfix
|
2014-04-09 21:34:25 +00:00
|
|
|
SHEBANG_FILES= doc/installdox
|
2010-12-20 17:41:43 +00:00
|
|
|
ALL_TARGET= build
|
|
|
|
|
2014-07-03 23:22:31 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2010-12-20 17:41:43 +00:00
|
|
|
pre-configure:
|
2014-04-09 21:34:25 +00:00
|
|
|
${REINPLACE_CMD} -e 's|@python|${PYTHON_CMD}|' \
|
|
|
|
${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
|
2010-12-20 17:41:43 +00:00
|
|
|
${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
|
|
|
|
${WRKSRC}/tvdownloader.sh
|
2010-12-20 19:54:19 +00:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
|
|
|
|
${WRKSRC}/tvdownload.desktop
|
2014-07-03 23:24:47 +00:00
|
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
2010-12-20 17:41:43 +00:00
|
|
|
${REINPLACE_CMD} -e 's|%%DOC%%|#|' ${WRKSRC}/Makefile
|
|
|
|
.else
|
|
|
|
${REINPLACE_CMD} -e 's|%%DOC%%||' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|