aboutsummaryrefslogtreecommitdiffstats
path: root/french/tvdownloader/Makefile
blob: e1f59b7afb98803affa23daae3c69b5121901c4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Created by: thierry@pompo.net
# $FreeBSD$

PORTNAME=   tvdownloader
PORTVERSION=    0.7.2
PORTREVISION=   4
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

MECHA_VER=  0.2.5
MECHA_EGG=  mechanize-${MECHA_VER}-${PYTHON_VERSION:S/thon//}${PYEASYINSTALL_OSARCH}.egg

USE_PYTHON= yes
ALL_TARGET= build

LICENSE=    GPLv2

NO_STAGE=   yes
pre-configure:
    ${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|'   \
        ${WRKSRC}/tvdownloader.sh
    ${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
        ${WRKSRC}/tvdownload.desktop
.if defined(NOPORTDOCS)
    ${REINPLACE_CMD} -e 's|%%DOC%%|#|' ${WRKSRC}/Makefile
.else
    ${REINPLACE_CMD} -e 's|%%DOC%%||' ${WRKSRC}/Makefile
.endif

.include <bsd.port.mk>