aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>