1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

- Add stage support

- Place the post-install: target outside of the corresponding .if block
This commit is contained in:
Rene Ladan 2013-09-27 09:35:29 +00:00
parent 9bc4c96e4f
commit a9435cccac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328447
2 changed files with 4 additions and 6 deletions

View File

@ -18,12 +18,9 @@ USE_GNOME= glib20
USE_LDCONFIG= yes
USES= gmake pkgconfig
MAN3= libspectrum.3
OPTIONS_DEFINE= AUDIOFILE
AUDIOFILE_DESC= Support loading from .wav files
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAUDIOFILE}
@ -32,11 +29,11 @@ LIB_DEPENDS+= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
CONFIGURE_ARGS+=--without-libaudiofile
.endif
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} \
AUTHORS ChangeLog README THANKS doc/libspectrum.txt ${DOCSDIR}
AUTHORS ChangeLog README THANKS doc/libspectrum.txt ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -4,6 +4,7 @@ lib/libspectrum.a
lib/libspectrum.la
lib/libspectrum.so
lib/libspectrum.so.9
man/man3/libspectrum.3.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README