Add staging support

This commit is contained in:
Rene Ladan 2013-09-27 10:14:26 +00:00
parent eeefd7a196
commit 44df6d7559
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328451
2 changed files with 19 additions and 9 deletions

View File

@ -19,23 +19,17 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libspectrum-prefix=${LOCALBASE} \
--with-local-prefix=${LOCALBASE}
MAN1= createhdf.1 fmfconv.1 fuse-utils.1 listbasic.1 raw2hdf.1 rzxcheck.1 \
rzxdump.1 rzxtool.1 scl2trd.1 snap2tzx.1 snapconv.1 tapeconv.1 \
tzxlist.1 profile2map.1
OPTIONS_DEFINE= AUDIOTOOLS DOCS
OPTIONS_DEFAULT= AUDIOTOOLS
AUDIOTOOLS_DESC= Build audio <-> tape utilities
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAUDIOTOOLS}
CONFIGURE_ARGS+=--with-audiofile
LIB_DEPENDS+= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
PLIST_SUB= AUDIOTOOLS=""
MAN1+= audio2tape.1 tape2wav.1
.else
CONFIGURE_ARGS+=--without-audiofile
PLIST_SUB= AUDIOTOOLS="@comment "
@ -49,10 +43,10 @@ PLIST_SUB= AUDIOTOOLS="@comment "
CONFIGURE_ARGS+=--without-ffmpeg
#.endif
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -13,6 +13,22 @@ bin/snapconv
%%AUDIOTOOLS%%bin/tape2wav
bin/tapeconv
bin/tzxlist
man/man1/createhdf.1.gz
man/man1/fmfconv.1.gz
man/man1/fuse-utils.1.gz
man/man1/listbasic.1.gz
man/man1/raw2hdf.1.gz
man/man1/rzxcheck.1.gz
man/man1/rzxdump.1.gz
man/man1/rzxtool.1.gz
man/man1/scl2trd.1.gz
man/man1/snap2tzx.1.gz
man/man1/snapconv.1.gz
man/man1/tapeconv.1.gz
man/man1/tzxlist.1.gz
man/man1/profile2map.1.gz
%%AUDIOTOOLS%%man/man1/audio2tape.1.gz
%%AUDIOTOOLS%%man/man1/tape2wav.1.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README