- Use option helpers
- Strip library
This commit is contained in:
parent
eedfbd0edc
commit
41cad033ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344594
1 changed files with 6 additions and 11 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue