Lines 6-14
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= clive |
8 |
PORTNAME= clive |
9 |
PORTVERSION= 1.0.0 |
9 |
PORTVERSION= 1.0.2 |
10 |
#PORTREVISION= 0 |
|
|
11 |
#PORTEPOCH= 0 |
12 |
CATEGORIES= multimedia |
10 |
CATEGORIES= multimedia |
13 |
MASTER_SITES= http://download.gna.org/clive/1.0.x/ \ |
11 |
MASTER_SITES= http://download.gna.org/clive/1.0.x/ \ |
14 |
SF |
12 |
SF |
Lines 16-24
Link Here
|
16 |
DIST_SUBDIR= ${PORTNAME} |
14 |
DIST_SUBDIR= ${PORTNAME} |
17 |
|
15 |
|
18 |
MAINTAINER= nivit@FreeBSD.org |
16 |
MAINTAINER= nivit@FreeBSD.org |
19 |
COMMENT= Video extraction utility for YouTube and Google Video |
17 |
COMMENT= Video extraction utility for YouTube, GoogleVideo, and others |
20 |
|
18 |
|
21 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urlgrabber>=3.1.0_1:${PORTSDIR}/www/py-urlgrabber |
19 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/urlgrabber/grabber.py:${PORTSDIR}/www/py-urlgrabber |
22 |
|
20 |
|
23 |
# deskutils/ljclive (same executable/manpage/distfile name) |
21 |
# deskutils/ljclive (same executable/manpage/distfile name) |
24 |
CONFLICTS= clive-[0-9]* |
22 |
CONFLICTS= clive-[0-9]* |
Lines 34-76
Link Here
|
34 |
CONFIGURE_ARGS= --with-doc=no |
32 |
CONFIGURE_ARGS= --with-doc=no |
35 |
.endif |
33 |
.endif |
36 |
|
34 |
|
37 |
OPTIONS= FFMPEG "Install ffmpeg for re-encoding" off \ |
35 |
OPTIONS= FEEDPARSER "Enable feed parsing" off \ |
38 |
MPLAYER "Install mplayer as video player" off \ |
36 |
FFMPEG "Install ffmpeg for re-encoding" off \ |
39 |
NEWT "Install devel/newt (support for a simple GUI)" off \ |
37 |
NEWT "Install devel/newt (support for a simple GUI)" off \ |
40 |
PYCRYPTO "Install pycrypto to encrypt login password" off \ |
38 |
PYCRYPTO "Install pycrypto to encrypt login password" off \ |
41 |
SQLITE3 "Install sqlite3 for caching visited URLs" off \ |
39 |
SQLITE3 "Install sqlite3 for caching visited URLs" off \ |
42 |
VLC "Install vlc as video player" off \ |
40 |
XCLIP "Install xclip (read URLs from clipboard)" off |
43 |
XCLIP "Install xclip (read URLs from clipboard)" off |
|
|
44 |
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options |
41 |
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options |
45 |
|
42 |
|
46 |
.include <bsd.port.pre.mk> |
43 |
.include <bsd.port.pre.mk> |
47 |
|
44 |
|
48 |
.if defined(WITH_FFMPEG) |
45 |
.if defined(WITH_FEEDPARSER) |
49 |
RUN_DEPENDS+= ffmpeg:${PORTSDIR}/multimedia/ffmpeg |
46 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedparser |
50 |
.endif |
47 |
.endif |
51 |
|
48 |
|
52 |
.if defined(WITH_MPLAYER) |
49 |
.if defined(WITH_FFMPEG) |
53 |
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer |
50 |
RUN_DEPENDS+= ${LOCALBASE}/bin/ffmpeg:${PORTSDIR}/multimedia/ffmpeg |
54 |
.endif |
51 |
.endif |
55 |
|
52 |
|
56 |
.if defined(WITH_NEWT) |
53 |
.if defined(WITH_NEWT) |
57 |
RUN_DEPENDS+= newt${PYTHON_PKGNAMESUFFIX}>=0.51.0_4:${PORTSDIR}/devel/newt |
54 |
RUN_DEPENDS+= ${LOCALBASE}/lib/libnewt.a:${PORTSDIR}/devel/newt |
58 |
.endif |
55 |
.endif |
59 |
|
56 |
|
60 |
.if defined(WITH_PYCRYPTO) |
57 |
.if defined(WITH_PYCRYPTO) |
61 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pycrypto>=2.0.1_1:${PORTSDIR}/security/py-pycrypto |
58 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Crypto/Cipher/AES.so:${PORTSDIR}/security/py-pycrypto |
62 |
.endif |
59 |
.endif |
63 |
|
60 |
|
64 |
.if defined(WITH_SQLITE3) |
61 |
.if defined(WITH_SQLITE3) |
65 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>=2.5.2_1:${PORTSDIR}/databases/py-sqlite3 |
62 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 |
66 |
.endif |
|
|
67 |
|
68 |
.if defined(WITH_VLC) |
69 |
RUN_DEPENDS+= vlc:${PORTSDIR}/multimedia/vlc |
70 |
.endif |
63 |
.endif |
71 |
|
64 |
|
72 |
.if defined(WITH_XCLIP) |
65 |
.if defined(WITH_XCLIP) |
73 |
RUN_DEPENDS+= xclip:${PORTSDIR}/x11/xclip |
66 |
RUN_DEPENDS+= ${LOCALBASE}/bin/xclip:${PORTSDIR}/x11/xclip |
74 |
.endif |
67 |
.endif |
75 |
|
68 |
|
|
|
69 |
post-patch: |
70 |
${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|g' \ |
71 |
${WRKSRC}/src/scripts/clive ${WRKSRC}/src/scripts/clive-passwd |
72 |
|
76 |
.include <bsd.port.post.mk> |
73 |
.include <bsd.port.post.mk> |