freebsd-ports/multimedia/dvdrip/Makefile
Mathieu Arnold eee58d187e Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:

  site_perl :           lib/perl5/site_perl/5.18
  site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
  perl_man3 :           lib/perl5/5.18/man/man3

Now we have:

  site_perl : lib/perl5/site_perl
  site_arch : lib/perl5/site_perl/mach/5.18
  perl_man3 : lib/perl5/site_perl/man/man3

Modules without any .so will be installed at the same place regardless of the
Perl version, minimizing the upgrade when the major Perl version is changed.
It uses a version dependent directory for modules with compiled bits.

As PERL_ARCH is no longer needed in plists, it has been removed from
PLIST_SUB.

The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now
always removed, as is perllocal.pod.

The old site_perl and site_perl/arch directories have been kept in the
default Perl @INC for all Perl ports, and will be phased out as these old
Perl versions expire.

PR:		194969
Differential Revision:	https://reviews.freebsd.org/D1019
Exp-run by:	antoine
Reviewed by:	perl@
Approved by:	portmgr
2014-11-26 13:08:24 +00:00

60 lines
2.1 KiB
Makefile

# Created by: Michael Nottebrock <michaelnottebrock@gmx.net>
# $FreeBSD$
PORTNAME= dvdrip
PORTVERSION= 0.98.11
PORTREVISION= 8
CATEGORIES= multimedia
MASTER_SITES= CPAN http://www.exit1.org/dvdrip/dist/
MASTER_SITE_SUBDIR= CPAN:JRED
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl Gtk+ based dvd-ripper
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= 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 \
cdrdao:${PORTSDIR}/sysutils/cdrdao \
convert:${PORTSDIR}/graphics/ImageMagick \
mplayer:${PORTSDIR}/multimedia/mplayer \
pstree:${PORTSDIR}/sysutils/pstree \
transcode:${PORTSDIR}/multimedia/transcode \
vcdimager:${PORTSDIR}/multimedia/vcdimager \
${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping \
cdrecord:${PORTSDIR}/sysutils/cdrtools
OPTIONS_DEFINE= VORBIS SUBTITLE RAR
OPTIONS_DEFAULT= VORBIS SUBTITLE
RAR_DESC= Support RAR-compressed vobsub subtitles
SUBTITLE_DESC= Enable support for getting subtitles
RAR_RUN_DEPENDS= rar:${PORTSDIR}/archivers/rar
SUBTITLE_RUN_DEPENDS= subtitle2pgm:${PORTSDIR}/multimedia/subtitleripper
VORBIS_RUN_DEPENDS= oggenc:${PORTSDIR}/audio/vorbis-tools \
ogmmerge:${PORTSDIR}/multimedia/ogmtools
CONFIGURE_ENV= SKIP_UNPACK_REQUIRED_MODULES=1
USES= gettext perl5 shebangfix
USE_PERL5= configure patch
SHEBANG_FILES= bin/dvdrip*
MAKE_JOBS_UNSAFE= yes
.include <bsd.port.options.mk>
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
@${FIND} ${WRKSRC} -name \*.orig -delete
.include <bsd.port.mk>