mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
4285d442d5
PR: 97729 Submitted by: Martin Wilke <freebsd@unixfreunde.de>
57 lines
1.7 KiB
Makefile
57 lines
1.7 KiB
Makefile
# 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= 3
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= ://freebsd.unixfreunde.de/sources/
|
|
|
|
MAINTAINER= lioux@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.3:${PORTSDIR}/multimedia/libdvdread
|
|
RUN_DEPENDS= transcode:${PORTSDIR}/multimedia/transcode \
|
|
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
|
|
mkisofs:${PORTSDIR}/sysutils/cdrtools \
|
|
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
|
|
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>
|