freebsd-ports/multimedia/dvdrip/Makefile
Pav Lucistnik 4a43e6024f - Update to 0.98.1
PR:		ports/103528
Submitted by:	Rainer Alves <rainer.alves@gmail.com> (maintainer)
2006-09-24 12:25:57 +00:00

81 lines
2.4 KiB
Makefile

# New ports collection makefile for: dvdrip
# Date created: 18 April 2002
# Whom: Michael Nottebrock <michaelnottebrock@gmx.net>
#
# $FreeBSD$
#
PORTNAME= dvdrip
PORTVERSION= 0.98.1
CATEGORIES= multimedia
MASTER_SITES= http://www.exit1.org/dvdrip/dist/ \
${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Video/JRED
MAINTAINER= rainer.alves@gmail.com
COMMENT= This is dvd::rip, a Perl Gtk+ based dvd-ripper
RUN_DEPENDS+= cdrdao:${PORTSDIR}/sysutils/cdrdao \
cdrecord:${PORTSDIR}/sysutils/cdrtools \
convert:${PORTSDIR}/graphics/ImageMagick \
mplayer:${PORTSDIR}/multimedia/mplayer \
pstree:${PORTSDIR}/sysutils/pstree \
transcode:${PORTSDIR}/multimedia/transcode \
vcdimager:${PORTSDIR}/multimedia/vcdimager \
xvid4conf:${PORTSDIR}/multimedia/xvid4conf \
${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping \
${BUILD_DEPENDS}
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
${SITE_PERL}/Event/RPC.pm:${PORTSDIR}/devel/p5-Event-RPC \
${SITE_PERL}/Locale/Messages.pm:${PORTSDIR}/devel/p5-Locale-libintl
OPTIONS= SUBTITLE "Enable support for getting subtitles" on \
VORBIS "OGG/Vorbis audio support" on
PERL_CONFIGURE= yes
USE_PERL5= yes
USE_GETTEXT= yes
MAN1= dvdrip.1 dvdrip-progress.1 dvdrip-splitpipe.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= Broken dependencies
.endif
.if ${PERL_LEVEL} < 500600
BROKEN= You need at least perl 5.6.0. Do not use FreeBSD 4.x' system perl, \
it's outdated. Install lang/perl5 and issue 'use.perl port'
.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
post-patch:
@${PERL} -pi -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#' \
${WRKSRC}/lib/Video/DVDRip/Cluster/Master.pm \
${WRKSRC}/lib/Video/DVDRip/Depend.pm
@${PERL} -pi -e 's#/usr/local/bin/perl#${PERL5}#' \
${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
@${FIND} ${WRKSRC} -name \*.orig -delete
post-install:
@cd ${WRKSRC}/blib/man3 && ${FIND} * -name "*.3" | ${SED} \
's,^,${MAN3PREFIX:S,^${TARGETDIR}/,,}/man/man3/,' >> ${TMPPLIST}
.include <bsd.port.post.mk>