2010-12-20 18:41:43 +01:00
|
|
|
# New ports collection makefile for: tvdownloader
|
|
|
|
# Date created: Fri 19 dec 2010
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tvdownloader
|
|
|
|
PORTVERSION= 0.7.2
|
2011-06-21 22:15:53 +02:00
|
|
|
PORTREVISION= 1
|
2010-12-20 18:41:43 +01: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
|
|
|
|
|
|
|
|
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}/${MECHA_EGG}:${PORTSDIR}/www/py-mechanize
|
|
|
|
|
2011-06-21 22:15:53 +02:00
|
|
|
MECHA_VER= 0.2.5
|
2010-12-20 18:41:43 +01:00
|
|
|
MECHA_EGG= mechanize-${MECHA_VER}-${PYTHON_VERSION:S/thon//}${PYEASYINSTALL_OSARCH}.egg
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
ALL_TARGET= build
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
|
|
|
|
${WRKSRC}/tvdownloader.sh
|
2010-12-20 20:54:19 +01:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
|
|
|
|
${WRKSRC}/tvdownload.desktop
|
2010-12-20 18:41:43 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
${REINPLACE_CMD} -e 's|%%DOC%%|#|' ${WRKSRC}/Makefile
|
|
|
|
.else
|
|
|
|
${REINPLACE_CMD} -e 's|%%DOC%%||' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|