Enable stage

Cleanup a bit
This commit is contained in:
Baptiste Daroussin 2013-10-19 14:37:53 +00:00
parent 7acfbfa576
commit 7d0aca2367
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330876
2 changed files with 29 additions and 30 deletions

View file

@ -11,8 +11,8 @@ EXTRACT_SUFX= .tgz
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Command Line Tool to make a copy from a Video DVD
LIB_DEPENDS= dvdnav.4:${PORTSDIR}/multimedia/libdvdnav \
dvdread.4:${PORTSDIR}/multimedia/libdvdread
LIB_DEPENDS= libdvdnav.so:${PORTSDIR}/multimedia/libdvdnav \
libdvdread.so:${PORTSDIR}/multimedia/libdvdread
RUN_DEPENDS= buffer:${PORTSDIR}/misc/buffer \
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
@ -41,14 +41,10 @@ LXDVDRIPSRC= cputest.c \
CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -ldvdread -lm
PORTDOCS= Changelog.de Changelog.en Changelog.fr \
DOCS= Changelog.de Changelog.en Changelog.fr \
README.de README.en README.fr \
README.dvdwizard.DE README.dvdwizard.EN README.dvdwizard.FR \
TODO freebsd.doc
MAN1= lxdvdrip.1
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -E \
@ -73,34 +69,24 @@ post-patch:
do-install:
.for f in lxdvdrip lxac3scan
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
${INSTALL_MAN} ${WRKSRC}/lxdvdrip.1 ${PREFIX}/man/man1
${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
${INSTALL_MAN} ${WRKSRC}/lxdvdrip.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.EN ${STAGEDIR}${PREFIX}/etc/lxdvdrip.conf.sample
# binaries
${INSTALL_PROGRAM} ${WRKSRC}/vamps/vamps_${PORTNAME} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/vamps/play_cell_${PORTNAME} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/dvdbackup/dvdbackup_${PORTNAME} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/vamps/vamps_${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/vamps/play_cell_${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/dvdbackup/dvdbackup_${PORTNAME} ${STAGEDIR}${PREFIX}/bin
# examples
@${MKDIR} ${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in lxdvdrip.conf.DE lxdvdrip.conf.EN lxdvdrip.conf.FR
${INSTALL_DATA} ${WRKSRC}/doc-pak/${f} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc-pak/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor
# data
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.wav ${DATADIR}
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.wav ${STAGEDIR}${DATADIR}
# docs
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc-pak/${f} ${DOCSDIR}
.endfor
.endif
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc-pak ; ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -10,5 +10,18 @@ etc/lxdvdrip.conf.sample
%%EXAMPLESDIR%%/lxdvdrip.conf.DE
%%EXAMPLESDIR%%/lxdvdrip.conf.EN
%%EXAMPLESDIR%%/lxdvdrip.conf.FR
man/man1/lxdvdrip.1.gz
%%PORTDOCS%%%%DOCSDIR%%/Changelog.de
%%PORTDOCS%%%%DOCSDIR%%/Changelog.en
%%PORTDOCS%%%%DOCSDIR%%/Changelog.fr
%%PORTDOCS%%%%DOCSDIR%%/README.de
%%PORTDOCS%%%%DOCSDIR%%/README.dvdwizard.DE
%%PORTDOCS%%%%DOCSDIR%%/README.dvdwizard.EN
%%PORTDOCS%%%%DOCSDIR%%/README.dvdwizard.FR
%%PORTDOCS%%%%DOCSDIR%%/README.en
%%PORTDOCS%%%%DOCSDIR%%/README.fr
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%%%DOCSDIR%%/freebsd.doc
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%
@dirrm %%EXAMPLESDIR%%