aboutsummaryrefslogtreecommitdiff
path: root/emulators/libspectrum
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2014-02-16 16:15:06 +0000
committerRene Ladan <rene@FreeBSD.org>2014-02-16 16:15:06 +0000
commit41cad033ee892193586ff07e1a5e833c7aba044d (patch)
treef8277029c4644b86e6091ba06ad3422e413eec9b /emulators/libspectrum
parenteedfbd0edca19b5b1c4b94c252d8630d04f8bc81 (diff)
downloadports-41cad033ee892193586ff07e1a5e833c7aba044d.tar.gz
ports-41cad033ee892193586ff07e1a5e833c7aba044d.zip
- Use option helpers
- Strip library
Notes
Notes: svn path=/head/; revision=344594
Diffstat (limited to 'emulators/libspectrum')
-rw-r--r--emulators/libspectrum/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/emulators/libspectrum/Makefile b/emulators/libspectrum/Makefile
index 8af661a1fd51..ed3504bcd151 100644
--- a/emulators/libspectrum/Makefile
+++ b/emulators/libspectrum/Makefile
@@ -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>