aboutsummaryrefslogtreecommitdiff
path: root/multimedia/clive/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/clive/Makefile')
-rw-r--r--multimedia/clive/Makefile25
1 files changed, 20 insertions, 5 deletions
diff --git a/multimedia/clive/Makefile b/multimedia/clive/Makefile
index af9e626de26f..38a4a06add9b 100644
--- a/multimedia/clive/Makefile
+++ b/multimedia/clive/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= clive
-PORTVERSION= 1.0.0
+PORTVERSION= 1.0.2
#PORTREVISION= 0
#PORTEPOCH= 0
CATEGORIES= multimedia
@@ -16,7 +16,7 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= nivit@FreeBSD.org
-COMMENT= Video extraction utility for YouTube and Google Video
+COMMENT= Video extraction utility for YouTube, GoogleVideo, and others
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urlgrabber>=3.1.0_1:${PORTSDIR}/www/py-urlgrabber
@@ -26,7 +26,8 @@ CONFLICTS= clive-[0-9]*
GNU_CONFIGURE= yes
USE_BZIP2= yes
-USE_PYTHON= yes
+# not compatible with 3.0
+USE_PYTHON= 2.4-2.6
.if !defined(NO_INSTALL_MANPAGES)
MAN1= ${PORTNAME}.1 ${PORTNAME}-passwd.1
@@ -34,17 +35,23 @@ MAN1= ${PORTNAME}.1 ${PORTNAME}-passwd.1
CONFIGURE_ARGS= --with-doc=no
.endif
-OPTIONS= FFMPEG "Install ffmpeg for re-encoding" off \
+OPTIONS= FEEDPARSER "Enable feed parsing" off \
+ FFMPEG "Install ffmpeg for re-encoding" off \
MPLAYER "Install mplayer as video player" off \
NEWT "Install devel/newt (support for a simple GUI)" off \
PYCRYPTO "Install pycrypto to encrypt login password" off \
SQLITE3 "Install sqlite3 for caching visited URLs" off \
VLC "Install vlc as video player" off \
- XCLIP "Install xclip (read URLs from clipboard)" off
+ XCLIP "Install xclip (read URLs from clipboard)" off \
+ XINE "Install xine as video player" off
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
.include <bsd.port.pre.mk>
+.if defined(WITH_FEEDPARSER)
+RUN_DEPENDS+= ${PKGNAMEPREFIX}feedparser>=4.1_2:${PORTSDIR}/textproc/py-feedparser
+.endif
+
.if defined(WITH_FFMPEG)
RUN_DEPENDS+= ffmpeg:${PORTSDIR}/multimedia/ffmpeg
.endif
@@ -73,4 +80,12 @@ RUN_DEPENDS+= vlc:${PORTSDIR}/multimedia/vlc
RUN_DEPENDS+= xclip:${PORTSDIR}/x11/xclip
.endif
+.if defined(WITH_XINE)
+RUN_DEPENDS+= xine:${PORTSDIR}/multimedia/xine
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|g' \
+ ${WRKSRC}/src/scripts/clive ${WRKSRC}/src/scripts/clive-passwd
+
.include <bsd.port.post.mk>