blob: e45b5a8d4616ec60273daa199c3c5e6b9d499afb (
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
|
# New ports collection makefile for: ldvd9to5
# Date created: 2004-10-03
# Whom: Andreas Fehlner <fehlner@gmx.de>
#
# $FreeBSD$
#
PORTNAME= ldvd
PORTVERSION= 2.0.1
PORTREVISION= 7
CATEGORIES= multimedia
MASTER_SITES= http://freebsd.unixfreunde.de/sources/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Gui, which shall simplify shrinking a DVD-9 to a DVD-5
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Gtk.pm:${PORTSDIR}/x11-toolkits/p5-Gtk
LIB_DEPENDS= dvdread.5:${PORTSDIR}/multimedia/libdvdread
RUN_DEPENDS= transcode:${PORTSDIR}/multimedia/transcode \
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
ifo_dump:${PORTSDIR}/multimedia/ogle \
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
buffer:${PORTSDIR}/misc/buffer \
mplex:${PORTSDIR}/multimedia/mjpegtools \
${SITE_PERL}/${PERL_ARCH}/Gtk.pm:${PORTSDIR}/x11-toolkits/p5-Gtk
USE_BZIP2= yes
USE_PERL5= yes
USE_CDRTOOLS= yes
DATA= de.lang en.lang
PORTDOCS= AUTHORS HISTORY README.de README.en
PLIST_FILES= bin/ldvd bin/ldvd-ls etc/ldvd.conf.sample \
${DATA:S|^|%%DATADIR%%/|}
PLIST_DIRS= %%DATADIR%%
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/$$sh_name-$$version|${DATADIR}|g; \
s|/etc|${PREFIX}/etc|g' ${WRKSRC}/ldvd
do-build:
@cd ${WRKSRC} && \
${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
-ldvdread ldvd-ls.c -o ldvd-ls
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/ldvd ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/ldvd-ls ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/ldvd.conf ${PREFIX}/etc/ldvd.conf.sample
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${DATA:S|^|${WRKSRC}/|} ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|