2005-01-29 16:00:20 +01:00
|
|
|
# New ports collection makefile for: multimedia/lxdvdrip
|
|
|
|
# Date created: 26.01.2005
|
|
|
|
# Whom: Ulrich Spoerlein <q@uni.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lxdvdrip
|
2007-01-01 14:10:55 +01:00
|
|
|
PORTVERSION= 1.62
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 2
|
2005-01-29 16:00:20 +01:00
|
|
|
CATEGORIES= multimedia
|
2005-11-08 20:40:45 +01:00
|
|
|
MASTER_SITES= http://download.berlios.de/lxdvdrip/ \
|
|
|
|
ftp://quenix2.dyndns.org/FreeBSD/ports/distfiles/
|
2005-01-29 16:00:20 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2007-04-01 09:50:30 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2005-01-29 16:00:20 +01:00
|
|
|
COMMENT= Command Line Tool to make a copy from a Video DVD
|
|
|
|
|
2007-01-01 14:10:55 +01:00
|
|
|
LIB_DEPENDS= dvdnav.4:${PORTSDIR}/multimedia/libdvdnav \
|
2007-04-05 21:28:20 +02:00
|
|
|
dvdread.5:${PORTSDIR}/multimedia/libdvdread
|
2005-12-16 17:13:14 +01:00
|
|
|
RUN_DEPENDS= buffer:${PORTSDIR}/misc/buffer \
|
2005-09-10 18:52:42 +02:00
|
|
|
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
|
2005-10-18 22:27:08 +02:00
|
|
|
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
|
2005-11-11 12:51:27 +01:00
|
|
|
mpgtx:${PORTSDIR}/multimedia/mpgtx \
|
2006-01-08 13:31:32 +01:00
|
|
|
mplayer:${PORTSDIR}/multimedia/mplayer \
|
2006-01-12 01:53:02 +01:00
|
|
|
transcode:${PORTSDIR}/multimedia/transcode
|
2006-01-08 13:31:32 +01:00
|
|
|
|
2005-01-29 16:00:20 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2006-01-12 01:53:02 +01:00
|
|
|
VAMPSRC= vamps.c requant.c
|
2007-01-01 14:10:55 +01:00
|
|
|
LXDVDRIPSRC= cputest.c \
|
|
|
|
dvdbackup.c \
|
|
|
|
dvdcell.c \
|
|
|
|
dvdcopy.c \
|
|
|
|
dvdinfo.c \
|
|
|
|
dvdtools.c \
|
|
|
|
ifo.c \
|
|
|
|
lxdvdrip.c \
|
|
|
|
requant.c \
|
|
|
|
streamanalyze.c \
|
|
|
|
systools.c \
|
|
|
|
tcmemcpy.c \
|
|
|
|
vaporize.c
|
2006-01-12 01:53:02 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
2005-10-18 22:27:08 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -ldvdread -lm
|
2007-01-01 14:10:55 +01:00
|
|
|
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
|
2005-01-29 16:00:20 +01:00
|
|
|
|
2005-10-18 22:27:08 +02:00
|
|
|
PORTDOCS= Changelog.de Changelog.en Changelog.fr \
|
|
|
|
README.de README.en README.fr \
|
|
|
|
README.dvdwizard.DE README.dvdwizard.EN README.dvdwizard.FR \
|
|
|
|
TODO freebsd.doc
|
2005-07-06 18:39:49 +02:00
|
|
|
MAN1= lxdvdrip.1
|
|
|
|
|
2006-01-12 01:53:02 +01:00
|
|
|
PLIST_FILES= bin/vamps_${PORTNAME} \
|
|
|
|
bin/play_cell_${PORTNAME}
|
2007-10-04 04:01:29 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2006-01-12 01:53:02 +01:00
|
|
|
|
2006-01-08 13:31:32 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|playwave[[:space:]]+-r[[:space:]]+|wavplay -s|' \
|
|
|
|
-e 's|playwave|wavplay|' \
|
|
|
|
-e 's|/usr/local/share/lxdvdrip.wav|${DATADIR}/lxdvdrip.wav|' \
|
|
|
|
${WRKSRC}/${PORTNAME}.c
|
2007-01-01 14:10:55 +01:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^.+alloca.h.+$$||' \
|
|
|
|
${WRKSRC}/dvdbackup.c
|
|
|
|
@${REINPLACE_CMD} -E \
|
2007-05-25 06:33:22 +02:00
|
|
|
-e 's|fopen64|fopen|g ; s|__off64_t|off_t|g' \
|
2007-01-01 14:10:55 +01:00
|
|
|
${WRKSRC}/dvdinfo.c \
|
|
|
|
${WRKSRC}/lxdvdrip.c
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|stat64|stat|' \
|
|
|
|
${WRKSRC}/systools.c
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|uint([[:space:]]+)|unsigned int\1|g' \
|
|
|
|
-e 's|int([[:digit:]]+)|int\1_t|' \
|
|
|
|
${WRKSRC}/vamps/requant.c
|
2005-01-29 16:00:20 +01:00
|
|
|
|
|
|
|
do-install:
|
2005-10-18 22:27:08 +02:00
|
|
|
.for f in lxdvdrip lxac3scan
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
|
|
|
|
.endfor
|
2005-07-06 18:39:49 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/lxdvdrip.1 ${PREFIX}/man/man1
|
2005-10-18 22:27:08 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.EN ${PREFIX}/etc/lxdvdrip.conf.sample
|
|
|
|
.if !exists(${PREFIX}/etc/lxdvdrip.conf)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.EN ${PREFIX}/etc/lxdvdrip.conf
|
2006-01-12 01:53:02 +01:00
|
|
|
.endif
|
2007-01-01 14:10:55 +01:00
|
|
|
# binaries
|
2006-01-12 01:53:02 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/vamps/vamps_${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/vamps/play_cell_${PORTNAME} ${PREFIX}/bin
|
2007-01-01 14:10:55 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dvdbackup/dvdbackup_${PORTNAME} ${PREFIX}/bin
|
|
|
|
# examples
|
2005-10-18 22:27:08 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for f in lxdvdrip.conf.DE lxdvdrip.conf.EN lxdvdrip.conf.FR
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc-pak/${f} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
2007-01-01 14:10:55 +01:00
|
|
|
# data
|
2006-01-08 13:31:32 +01:00
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.wav ${DATADIR}
|
2007-01-01 14:10:55 +01:00
|
|
|
# docs
|
2005-01-29 16:00:20 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2005-10-18 22:27:08 +02:00
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc-pak/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
2005-01-29 16:00:20 +01:00
|
|
|
.endif
|
2005-10-18 22:27:08 +02:00
|
|
|
|
|
|
|
post-install:
|
2005-01-29 16:00:20 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2005-09-10 18:52:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|