1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/multimedia/dvdrip/Makefile
Marcus Alves Grando b6d4c694c5 - Update to 0.52.7
- Take maintainer
- portlint(1)

PR:		95859
Submitted by:	Rainer Alves <rainer.alves___gmail.com>
2006-05-30 12:40:26 +00:00

94 lines
2.8 KiB
Makefile

# New ports collection makefile for: dvdrip
# Date created: 18 April 2002
# Whom: Michael Nottebrock <michaelnottebrock@gmx.net>
#
# $FreeBSD$
#
PORTNAME= dvdrip
PORTVERSION= 0.52.7
CATEGORIES= multimedia
MASTER_SITES= http://www.exit1.org/dvdrip/dist/ \
${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Video/JRED
DISTNAME= Video-DVDRip-${PORTVERSION}
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 \
transcode:${PORTSDIR}/multimedia/transcode \
vcdimager:${PORTSDIR}/multimedia/vcdimager \
${BUILD_DEPENDS}
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
USE_GETTEXT= yes
MAN1= dvdrip.1 dr_splitpipe.1 dr_progress.1
MAN3= Video::DVDRip.3 Video::DVDRip::CPAN::Scanf.3
.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_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
pre-everything::
.if !defined(WITHOUT_CLUSTER)
@${ECHO_MSG}
@${ECHO_MSG} "You can disable the cluster daemon and its"
@${ECHO_MSG} "dependencies by defining WITHOUT_CLUSTER."
@${ECHO_MSG}
@${ECHO_MSG} "Warning: dvdrip does not like this and will"
@${ECHO_MSG} "throw cryptic error-messages. Use with caution."
.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}/dvdrip
@${PERL} -pi -e 's#/usr/local/bin/perl#${PERL5}#' \
${WRKSRC}/dvdrip-master
@${PERL} -pi -e 's#cc#${CC}#' \
${WRKSRC}/src/Makefile
@${FIND} ${WRKSRC} -name \*.orig -delete
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>