- Use option helpers

- Strip library
This commit is contained in:
Rene Ladan 2014-02-16 16:15:06 +00:00
parent eedfbd0edc
commit 41cad033ee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344594

View file

@ -21,19 +21,14 @@ USES= gmake pkgconfig
OPTIONS_DEFINE= AUDIOFILE
AUDIOFILE_DESC= Support loading from .wav files
.include <bsd.port.options.mk>
AUDIOFILE_LIB_DEPENDS= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
AUDIOFILE_CONFIGURE_OFF= --without-libaudiofile
.if ${PORT_OPTIONS:MAUDIOFILE}
LIB_DEPENDS+= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
.else
CONFIGURE_ARGS+=--without-libaudiofile
.endif
INSTALL_TARGET= install-strip
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} \
AUTHORS ChangeLog README THANKS doc/libspectrum.txt ${STAGEDIR}${DOCSDIR}
.endif
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README THANKS \
doc/libspectrum.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>