2013-03-29 01:44:53 +01:00
|
|
|
# Created by: Michael Nottebrock <michaelnottebrock@gmx.net>
|
2002-04-20 21:36:47 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dvdrip
|
2010-03-20 00:15:51 +01:00
|
|
|
PORTVERSION= 0.98.11
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 5
|
2003-01-16 03:17:53 +01:00
|
|
|
CATEGORIES= multimedia
|
2011-09-08 10:36:43 +02:00
|
|
|
MASTER_SITES= CPAN \
|
|
|
|
http://www.exit1.org/dvdrip/dist/
|
|
|
|
MASTER_SITE_SUBDIR= CPAN:JRED
|
2002-04-20 21:36:47 +02:00
|
|
|
|
2011-09-08 10:36:43 +02:00
|
|
|
MAINTAINER= perl@FreeBSD.org
|
2013-03-29 01:44:53 +01:00
|
|
|
COMMENT= Perl Gtk+ based dvd-ripper
|
2002-04-20 21:36:47 +02:00
|
|
|
|
2012-06-16 15:03:32 +02:00
|
|
|
BUILD_DEPENDS= p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
|
|
|
|
p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent \
|
|
|
|
p5-Event-ExecFlow>=0:${PORTSDIR}/devel/p5-Event-ExecFlow \
|
|
|
|
p5-Gtk2-Ex-FormFactory>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2-Ex-FormFactory \
|
|
|
|
p5-Event-RPC>=0:${PORTSDIR}/devel/p5-Event-RPC \
|
|
|
|
p5-Locale-libintl>=0:${PORTSDIR}/devel/p5-Locale-libintl
|
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2003-01-16 03:17:53 +01:00
|
|
|
RUN_DEPENDS+= cdrdao:${PORTSDIR}/sysutils/cdrdao \
|
|
|
|
convert:${PORTSDIR}/graphics/ImageMagick \
|
|
|
|
mplayer:${PORTSDIR}/multimedia/mplayer \
|
2006-09-24 14:25:57 +02:00
|
|
|
pstree:${PORTSDIR}/sysutils/pstree \
|
2003-04-04 07:34:50 +02:00
|
|
|
transcode:${PORTSDIR}/multimedia/transcode \
|
2003-11-23 20:10:51 +01:00
|
|
|
vcdimager:${PORTSDIR}/multimedia/vcdimager \
|
2007-08-04 04:05:51 +02:00
|
|
|
rar:${PORTSDIR}/archivers/rar \
|
2013-04-26 14:35:50 +02:00
|
|
|
${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping \
|
|
|
|
cdrecord:${PORTSDIR}/sysutils/cdrtools
|
2002-04-20 21:36:47 +02:00
|
|
|
|
2012-05-31 13:19:32 +02:00
|
|
|
OPTIONS_DEFINE= VORBIS SUBTITLE
|
|
|
|
OPTIONS_DEFAULT= VORBIS SUBTITLE
|
|
|
|
SUBTITLE_DESC= Enable support for getting subtitles
|
2006-01-19 06:20:15 +01:00
|
|
|
|
2007-01-06 07:02:52 +01:00
|
|
|
CONFIGURE_ENV= SKIP_UNPACK_REQUIRED_MODULES=1
|
2013-07-31 08:54:09 +02:00
|
|
|
USES= gettext perl5
|
|
|
|
USE_PERL5= configure patch
|
2010-08-09 07:01:22 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2002-04-20 21:36:47 +02:00
|
|
|
|
2006-09-24 14:25:57 +02:00
|
|
|
MAN1= dvdrip.1 dvdrip-progress.1 dvdrip-splitpipe.1
|
2002-04-20 21:36:47 +02:00
|
|
|
|
2013-09-20 22:57:48 +02:00
|
|
|
NO_STAGE= yes
|
2012-05-31 13:19:32 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2003-03-01 20:30:37 +01:00
|
|
|
|
2012-05-31 13:19:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MVORBIS}
|
2006-01-19 06:20:15 +01:00
|
|
|
RUN_DEPENDS+= oggenc:${PORTSDIR}/audio/vorbis-tools \
|
|
|
|
ogmmerge:${PORTSDIR}/multimedia/ogmtools
|
|
|
|
.endif
|
|
|
|
|
2012-05-31 13:19:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MSUBTITLE}
|
2006-01-19 06:20:15 +01:00
|
|
|
RUN_DEPENDS+= subtitle2pgm:${PORTSDIR}/multimedia/subtitleripper
|
|
|
|
.endif
|
|
|
|
|
2002-04-20 21:36:47 +02:00
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#' \
|
2004-06-04 17:59:24 +02:00
|
|
|
${WRKSRC}/lib/Video/DVDRip/Cluster/Master.pm \
|
|
|
|
${WRKSRC}/lib/Video/DVDRip/Depend.pm
|
2002-04-20 21:36:47 +02:00
|
|
|
@${PERL} -pi -e 's#/usr/local/bin/perl#${PERL5}#' \
|
2006-09-24 14:25:57 +02:00
|
|
|
${WRKSRC}/bin/dvdrip \
|
|
|
|
${WRKSRC}/bin/dvdrip-exec \
|
|
|
|
${WRKSRC}/bin/dvdrip-master \
|
|
|
|
${WRKSRC}/bin/dvdrip-multitee \
|
|
|
|
${WRKSRC}/bin/dvdrip-replex \
|
|
|
|
${WRKSRC}/bin/dvdrip-splash \
|
|
|
|
${WRKSRC}/bin/dvdrip-subpng \
|
|
|
|
${WRKSRC}/bin/dvdrip-thumb
|
2004-02-22 12:52:08 +01:00
|
|
|
@${FIND} ${WRKSRC} -name \*.orig -delete
|
2003-01-16 03:17:53 +01:00
|
|
|
|
|
|
|
post-install:
|
2006-09-24 14:25:57 +02:00
|
|
|
@cd ${WRKSRC}/blib/man3 && ${FIND} * -name "*.3" | ${SED} \
|
2007-08-04 13:41:30 +02:00
|
|
|
's,^,${MAN3PREFIX:S,^${PREFIX}/,,}/man/man3/,' >> ${TMPPLIST}
|
2002-04-20 21:36:47 +02:00
|
|
|
|
2012-05-31 13:19:32 +02:00
|
|
|
.include <bsd.port.mk>
|