Lines 2-35
Link Here
|
2 |
# Date created: 26.01.2005 |
2 |
# Date created: 26.01.2005 |
3 |
# Whom: Ulrich Spoerlein <q@uni.de> |
3 |
# Whom: Ulrich Spoerlein <q@uni.de> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/multimedia/lxdvdrip/Makefile,v 1.12 2006/01/05 03:57:29 edwin Exp $ |
5 |
# $FreeBSD: ports/multimedia/lxdvdrip/Makefile,v 1.11 2005/12/16 16:13:14 ehaupt Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= lxdvdrip |
8 |
PORTNAME= lxdvdrip |
9 |
PORTVERSION= 1.47 |
9 |
PORTVERSION= 1.51 |
10 |
PORTREVISION= 5 |
|
|
11 |
CATEGORIES= multimedia |
10 |
CATEGORIES= multimedia |
12 |
MASTER_SITES= http://download.berlios.de/lxdvdrip/ \ |
11 |
MASTER_SITES= http://download.berlios.de/lxdvdrip/ \ |
13 |
ftp://quenix2.dyndns.org/FreeBSD/ports/distfiles/ |
12 |
ftp://quenix2.dyndns.org/FreeBSD/ports/distfiles/ |
14 |
EXTRACT_SUFX= .tgz |
13 |
EXTRACT_SUFX= .tgz |
15 |
|
14 |
|
16 |
MAINTAINER= serge.gagnon@b2b2c.ca |
15 |
MAINTAINER= ports@FreeBSD.org |
17 |
COMMENT= Command Line Tool to make a copy from a Video DVD |
16 |
COMMENT= Command Line Tool to make a copy from a Video DVD |
18 |
|
17 |
|
19 |
LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread |
18 |
LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread |
20 |
RUN_DEPENDS= buffer:${PORTSDIR}/misc/buffer \ |
19 |
RUN_DEPENDS= buffer:${PORTSDIR}/misc/buffer \ |
21 |
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \ |
20 |
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \ |
22 |
dvdbackup:${PORTSDIR}/sysutils/dvdbackup \ |
21 |
dvdbackup:${PORTSDIR}/sysutils/dvdbackup \ |
23 |
dvdwizard:${PORTSDIR}/multimedia/dvdwizard \ |
|
|
24 |
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \ |
22 |
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \ |
25 |
mpgtx:${PORTSDIR}/multimedia/mpgtx \ |
23 |
mpgtx:${PORTSDIR}/multimedia/mpgtx \ |
26 |
transcode:${PORTSDIR}/multimedia/transcode |
24 |
mplayer:${PORTSDIR}/multimedia/mplayer \ |
|
|
25 |
transcode:${PORTSDIR}/multimedia/transcode \ |
26 |
vamps:${PORTSDIR}/multimedia/vamps |
27 |
|
28 |
USE_REINPLACE= yes |
27 |
|
29 |
|
28 |
SUB_FILES= pkg-message |
30 |
SUB_FILES= pkg-message |
29 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
31 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
30 |
|
32 |
|
31 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
33 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
32 |
VAMPSRC= vamps.c requant.c |
34 |
LXDVDRIPSRC= ${PORTNAME}.c streamanalyze.c |
33 |
CFLAGS+= -I${LOCALBASE}/include |
35 |
CFLAGS+= -I${LOCALBASE}/include |
34 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -ldvdread -lm |
36 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -ldvdread -lm |
35 |
|
37 |
|
Lines 41-62
Link Here
|
41 |
|
43 |
|
42 |
.include <bsd.port.pre.mk> |
44 |
.include <bsd.port.pre.mk> |
43 |
|
45 |
|
44 |
# vamps needs strtof() |
46 |
post-patch: |
45 |
.if ${OSVERSION} > 500000 |
47 |
@${REINPLACE_CMD} -E \ |
46 |
PLIST_SUB= VAMPS="" |
48 |
-e 's|playwave[[:space:]]+-r[[:space:]]+|wavplay -s|' \ |
47 |
.else |
49 |
-e 's|playwave|wavplay|' \ |
48 |
PLIST_SUB= VAMPS="@comment " |
50 |
-e 's|/usr/local/share/lxdvdrip.wav|${DATADIR}/lxdvdrip.wav|' \ |
49 |
.endif |
51 |
${WRKSRC}/${PORTNAME}.c |
50 |
|
52 |
|
51 |
do-build: |
53 |
do-build: |
52 |
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c |
54 |
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PORTNAME} ${LXDVDRIPSRC:C/^/${WRKSRC}\//} |
53 |
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/lxac3scan ${WRKSRC}/lxac3scan.c |
55 |
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/lxac3scan ${WRKSRC}/lxac3scan.c |
54 |
.if ${OSVERSION} > 500000 |
|
|
55 |
.for f in ${VAMPSRC} |
56 |
${CC} ${CFLAGS} -c ${WRKSRC}/vamps/${f} -o ${WRKSRC}/vamps/${f:C/\.c$/.o/} |
57 |
.endfor |
58 |
${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/vamps/vamps ${VAMPSRC:C/(.*)\.c$/${WRKSRC}\/vamps\/\1.o/} |
59 |
.endif |
60 |
|
56 |
|
61 |
do-install: |
57 |
do-install: |
62 |
.for f in lxdvdrip lxac3scan |
58 |
.for f in lxdvdrip lxac3scan |
Lines 67-79
Link Here
|
67 |
.if !exists(${PREFIX}/etc/lxdvdrip.conf) |
63 |
.if !exists(${PREFIX}/etc/lxdvdrip.conf) |
68 |
${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.EN ${PREFIX}/etc/lxdvdrip.conf |
64 |
${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.EN ${PREFIX}/etc/lxdvdrip.conf |
69 |
.endif |
65 |
.endif |
70 |
.if ${OSVERSION} > 500000 |
|
|
71 |
${INSTALL_PROGRAM} ${WRKSRC}/vamps/vamps ${PREFIX}/bin |
72 |
.endif |
73 |
@${MKDIR} ${EXAMPLESDIR} |
66 |
@${MKDIR} ${EXAMPLESDIR} |
74 |
.for f in lxdvdrip.conf.DE lxdvdrip.conf.EN lxdvdrip.conf.FR |
67 |
.for f in lxdvdrip.conf.DE lxdvdrip.conf.EN lxdvdrip.conf.FR |
75 |
${INSTALL_DATA} ${WRKSRC}/doc-pak/${f} ${EXAMPLESDIR} |
68 |
${INSTALL_DATA} ${WRKSRC}/doc-pak/${f} ${EXAMPLESDIR} |
76 |
.endfor |
69 |
.endfor |
|
|
70 |
@${MKDIR} ${DATADIR} |
71 |
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.wav ${DATADIR} |
77 |
|
72 |
|
78 |
.if !defined(NOPORTDOCS) |
73 |
.if !defined(NOPORTDOCS) |
79 |
${MKDIR} ${DOCSDIR} |
74 |
${MKDIR} ${DOCSDIR} |