summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2006-01-19 05:20:15 +0000
committeroliver <oliver@FreeBSD.org>2006-01-19 05:20:15 +0000
commitae4447db1b50acf16dcab0ca71663d484ebf6ced (patch)
treee3d9d59384866e96c69adaae1441cc7f734a62a6 /multimedia
parentc77eddd9819595affd6e2946775b483ecb359ae0 (diff)
downloadFreeBSD-ports-ae4447db1b50acf16dcab0ca71663d484ebf6ced.zip
FreeBSD-ports-ae4447db1b50acf16dcab0ca71663d484ebf6ced.tar.gz
convert to OPTIONS
add 2 options for disabling subtitle and vorbis support
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/dvdrip/Makefile29
1 files changed, 20 insertions, 9 deletions
diff --git a/multimedia/dvdrip/Makefile b/multimedia/dvdrip/Makefile
index af04798..72e2aba 100644
--- a/multimedia/dvdrip/Makefile
+++ b/multimedia/dvdrip/Makefile
@@ -15,19 +15,10 @@ DISTNAME= Video-DVDRip-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= This is dvd::rip, a Perl Gtk+ based dvd-ripper
-.if !defined(WITHOUT_CLUSTER)
-RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
- ${SITE_PERL}/${PERL_ARCH}/Event.pm:${PORTSDIR}/devel/p5-Event \
- ${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping \
- pstree:${PORTSDIR}/sysutils/pstree
-.endif
RUN_DEPENDS+= cdrdao:${PORTSDIR}/sysutils/cdrdao \
cdrecord:${PORTSDIR}/sysutils/cdrtools \
convert:${PORTSDIR}/graphics/ImageMagick \
mplayer:${PORTSDIR}/multimedia/mplayer \
- oggenc:${PORTSDIR}/audio/vorbis-tools \
- ogmmerge:${PORTSDIR}/multimedia/ogmtools \
- subtitle2pgm:${PORTSDIR}/multimedia/subtitleripper \
transcode:${PORTSDIR}/multimedia/transcode \
vcdimager:${PORTSDIR}/multimedia/vcdimager \
${BUILD_DEPENDS}
@@ -35,6 +26,10 @@ BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Gtk.pm:${PORTSDIR}/x11-toolkits/p5-Gtk
${SITE_PERL}/${PERL_ARCH}/Gtk/Gdk/Pixbuf.pm:${PORTSDIR}/x11-toolkits/p5-GdkPixbuf \
${SITE_PERL}/Locale/Messages.pm:${PORTSDIR}/devel/p5-Locale-libintl
+OPTIONS= CLUSTER "Enable cluster mode" on \
+ SUBTITLE "Enable support for getting subtitles" on \
+ VORBIS "OGG/Vorbis audio support" on
+
PERL_CONFIGURE= yes
USE_PERL5= yes
@@ -43,6 +38,22 @@ MAN3= Video::DVDRip.3 Video::DVDRip::CPAN::Scanf.3
.include <bsd.port.pre.mk>
+.if !defined(WITHOUT_CLUSTER)
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
+ ${SITE_PERL}/${PERL_ARCH}/Event.pm:${PORTSDIR}/devel/p5-Event \
+ ${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping \
+ pstree:${PORTSDIR}/sysutils/pstree
+.endif
+
+.if !defined(WITHOUT_VORBIS)
+RUN_DEPENDS+= oggenc:${PORTSDIR}/audio/vorbis-tools \
+ ogmmerge:${PORTSDIR}/multimedia/ogmtools
+.endif
+
+.if !defined(WITHOUT_SUBTITLE)
+RUN_DEPENDS+= subtitle2pgm:${PORTSDIR}/multimedia/subtitleripper
+.endif
+
.if ${OSVERSION} < 500000
BROKEN= "Broken dependencies"
.endif
OpenPOWER on IntegriCloud