Update port: multimedia/lxdvdrip to 1.51
- Update to 1.51 [*] - Add multimedia/mplayer as dependency [*] - Install lxdvdrip.wav under DATADIR [*] - Change playwave reference in the source code to wavplay [*] - Stop building of vamps in the source code and add a dependency to multimedia/vamps - Pass maintainership to ports@FreeBSD.org [*]Mario Sergio Fujikawa Ferreira <lioux _at_ FreeBSD _dot_ org> PR: ports/91486 Submitted by: Serge Gagnon <serge.gagnon@b2b2c.ca>
This commit is contained in:
parent
02ec6eb610
commit
dd22c59eaa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153055
3 changed files with 20 additions and 25 deletions
|
@ -6,30 +6,32 @@
|
|||
#
|
||||
|
||||
PORTNAME= lxdvdrip
|
||||
PORTVERSION= 1.47
|
||||
PORTREVISION= 5
|
||||
PORTVERSION= 1.51
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= http://download.berlios.de/lxdvdrip/ \
|
||||
ftp://quenix2.dyndns.org/FreeBSD/ports/distfiles/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= serge.gagnon@b2b2c.ca
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Command Line Tool to make a copy from a Video DVD
|
||||
|
||||
LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread
|
||||
RUN_DEPENDS= buffer:${PORTSDIR}/misc/buffer \
|
||||
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
|
||||
dvdbackup:${PORTSDIR}/sysutils/dvdbackup \
|
||||
dvdwizard:${PORTSDIR}/multimedia/dvdwizard \
|
||||
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
|
||||
mpgtx:${PORTSDIR}/multimedia/mpgtx \
|
||||
transcode:${PORTSDIR}/multimedia/transcode
|
||||
mplayer:${PORTSDIR}/multimedia/mplayer \
|
||||
transcode:${PORTSDIR}/multimedia/transcode \
|
||||
vamps:${PORTSDIR}/multimedia/vamps
|
||||
|
||||
USE_REINPLACE= yes
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
VAMPSRC= vamps.c requant.c
|
||||
LXDVDRIPSRC= ${PORTNAME}.c streamanalyze.c
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -ldvdread -lm
|
||||
|
||||
|
@ -41,22 +43,16 @@ MAN1= lxdvdrip.1
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# vamps needs strtof()
|
||||
.if ${OSVERSION} > 500000
|
||||
PLIST_SUB= VAMPS=""
|
||||
.else
|
||||
PLIST_SUB= VAMPS="@comment "
|
||||
.endif
|
||||
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
|
||||
|
||||
do-build:
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PORTNAME} ${LXDVDRIPSRC:C/^/${WRKSRC}\//}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/lxac3scan ${WRKSRC}/lxac3scan.c
|
||||
.if ${OSVERSION} > 500000
|
||||
.for f in ${VAMPSRC}
|
||||
${CC} ${CFLAGS} -c ${WRKSRC}/vamps/${f} -o ${WRKSRC}/vamps/${f:C/\.c$/.o/}
|
||||
.endfor
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/vamps/vamps ${VAMPSRC:C/(.*)\.c$/${WRKSRC}\/vamps\/\1.o/}
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
.for f in lxdvdrip lxac3scan
|
||||
|
@ -66,14 +62,13 @@ do-install:
|
|||
${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
|
||||
.endif
|
||||
.if ${OSVERSION} > 500000
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/vamps/vamps ${PREFIX}/bin
|
||||
.endif
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
.for f in lxdvdrip.conf.DE lxdvdrip.conf.EN lxdvdrip.conf.FR
|
||||
${INSTALL_DATA} ${WRKSRC}/doc-pak/${f} ${EXAMPLESDIR}
|
||||
.endfor
|
||||
@${MKDIR} ${DATADIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.wav ${DATADIR}
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
MD5 (lxdvdrip-1.47.tgz) = 793a3d37e98c329b6392e32ad1a04bb4
|
||||
SIZE (lxdvdrip-1.47.tgz) = 514792
|
||||
MD5 (lxdvdrip-1.51.tgz) = 712f05e604ba52579f6d77df7d1945cd
|
||||
SHA256 (lxdvdrip-1.51.tgz) = c26a8c1a3e3966684d3fe0e4e541cfc997e7f7fe16a84db83606013e4f8b6e5c
|
||||
SIZE (lxdvdrip-1.51.tgz) = 524189
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
bin/lxdvdrip
|
||||
bin/lxac3scan
|
||||
%%VAMPS%%bin/vamps
|
||||
@unexec if cmp -s %D/etc/lxdvdrip.conf %D/etc/lxdvdrip.conf.sample; then rm -f %D/etc/lxdvdrip.conf; fi
|
||||
etc/lxdvdrip.conf.sample
|
||||
@exec [ -f %B/lxdvdrip.conf ] || cp %B/%f %B/lxdvdrip.conf
|
||||
|
|
Loading…
Reference in a new issue