blob: ff6a0e17340840b70745824bbcdfbf94548d3240 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# New ports collection makefile for: dvdrip
# Date created: 18 April 2002
# Whom: Michael Nottebrock <michaelnottebrock@gmx.net>
#
# $FreeBSD$
#
PORTNAME= dvdrip
PORTVERSION= 0.48.8
CATEGORIES= multimedia
MASTER_SITES= http://www.exit1.org/dvdrip/dist/
DISTNAME= Video-DVDRip-${PORTVERSION}
MAINTAINER= michaelnottebrock@gmx.net
COMMENT= This is dvd::rip, a Perl Gtk+ based dvd-ripper
.if !defined(WITHOUT_CLUSTER)
RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Event.pm:${PORTSDIR}/devel/p5-Event \
${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping \
pstree:${PORTSDIR}/sysutils/pstree
.endif
.if defined(WITH_XINE)
RUN_DEPENDS+= xine:${PORTSDIR}/multimedia/xine \
${X11BASE}/lib/xine/plugins/xineplug_inp_d4d.so:${PORTSDIR}/graphics/xine_d4d_plugin
.endif
RUN_DEPENDS+= cdrdao:${PORTSDIR}/sysutils/cdrdao \
cdrecord:${PORTSDIR}/sysutils/cdrtools \
convert:${PORTSDIR}/graphics/ImageMagick \
mkisofs:${PORTSDIR}/sysutils/mkisofs \
mplayer:${PORTSDIR}/multimedia/mplayer \
oggenc:${PORTSDIR}/audio/vorbis-tools \
ogmmerge:${PORTSDIR}/multimedia/ogmtools \
transcode:${PORTSDIR}/graphics/transcode \
vcdimager:${PORTSDIR}/multimedia/vcdimager
BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Gtk.pm:${PORTSDIR}/x11-toolkits/p5-Gtk \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Gtk/Gdk/Pixbuf.pm:${PORTSDIR}/x11-toolkits/p5-GdkPixbuf
PERL_CONFIGURE= yes
USE_PERL5= yes
MAN1= dvdrip.1 dr_splitpipe.1 dr_progress.1
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Video::DVDRip.3
pre-everything::
.if !defined(WITHOUT_CLUSTER)
@${ECHO_MSG}
@${ECHO_MSG} "You can disable the cluster daemon and it's"
@${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
.if !defined(WITH_XINE)
@${ECHO_MSG}
@${ECHO_MSG} "Define WITH_XINE to pull in XINE as a dependency"
@${ECHO_MSG} "(alternative DVD previewer)"
@${ECHO_MSG}
.endif
post-patch:
@${PERL} -pi -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#' \
${WRKSRC}/lib/Video/DVDRip/Cluster/Master.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.mk>
|