2004-10-20 09:06:37 +02:00
|
|
|
# New ports collection makefile for: ldvd9to5
|
|
|
|
# Date created: 2004-10-03
|
|
|
|
# Whom: Andreas Fehlner <fehlner@gmx.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-09-10 20:56:14 +02:00
|
|
|
PORTNAME= ldvd
|
|
|
|
PORTVERSION= 2.0.1
|
2009-02-08 19:45:38 +01:00
|
|
|
PORTREVISION= 8
|
2004-10-20 09:06:37 +02:00
|
|
|
CATEGORIES= multimedia
|
2007-04-08 22:36:27 +02:00
|
|
|
MASTER_SITES= http://freebsd.unixfreunde.de/sources/
|
2004-10-20 09:06:37 +02:00
|
|
|
|
2007-04-01 09:50:30 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-10-20 09:06:37 +02:00
|
|
|
COMMENT= Gui, which shall simplify shrinking a DVD-9 to a DVD-5
|
|
|
|
|
2005-12-12 19:34:48 +01:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Gtk.pm:${PORTSDIR}/x11-toolkits/p5-Gtk
|
2009-02-08 19:45:38 +01:00
|
|
|
LIB_DEPENDS= dvdread.4:${PORTSDIR}/multimedia/libdvdread
|
2004-10-20 09:06:37 +02:00
|
|
|
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 \
|
2005-09-10 20:56:14 +02:00
|
|
|
mplex:${PORTSDIR}/multimedia/mjpegtools \
|
2004-10-20 09:06:37 +02:00
|
|
|
${SITE_PERL}/${PERL_ARCH}/Gtk.pm:${PORTSDIR}/x11-toolkits/p5-Gtk
|
|
|
|
|
2005-09-10 20:56:14 +02:00
|
|
|
USE_BZIP2= yes
|
2006-06-26 12:31:17 +02:00
|
|
|
USE_PERL5= yes
|
2007-01-31 15:07:59 +01:00
|
|
|
USE_CDRTOOLS= yes
|
2005-09-10 20:56:14 +02:00
|
|
|
DATA= de.lang en.lang
|
|
|
|
PORTDOCS= AUTHORS HISTORY README.de README.en
|
2005-12-12 19:34:48 +01:00
|
|
|
PLIST_FILES= bin/ldvd bin/ldvd-ls etc/ldvd.conf.sample \
|
|
|
|
${DATA:S|^|%%DATADIR%%/|}
|
2005-09-10 20:56:14 +02:00
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2004-10-20 09:06:37 +02:00
|
|
|
|
|
|
|
post-patch:
|
2005-09-10 20:56:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/$$sh_name-$$version|${DATADIR}|g; \
|
|
|
|
s|/etc|${PREFIX}/etc|g' ${WRKSRC}/ldvd
|
2004-10-20 09:06:37 +02:00
|
|
|
|
2005-12-12 19:34:48 +01:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
|
|
|
|
-ldvdread ldvd-ls.c -o ldvd-ls
|
|
|
|
|
2004-10-20 09:06:37 +02:00
|
|
|
do-install:
|
2005-09-10 20:56:14 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/ldvd ${PREFIX}/bin
|
2005-12-12 19:34:48 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ldvd-ls ${PREFIX}/bin
|
2005-09-10 20:56:14 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ldvd.conf ${PREFIX}/etc/ldvd.conf.sample
|
2004-10-20 09:06:37 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
2005-09-10 20:56:14 +02:00
|
|
|
${INSTALL_DATA} ${DATA:S|^|${WRKSRC}/|} ${DATADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
.endif
|
2004-10-20 09:06:37 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|