diff options
author | bapt <bapt@FreeBSD.org> | 2015-09-13 22:57:10 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-09-13 22:57:10 +0800 |
commit | 71adbe12b3096dda14436547ea6a1d397d72a896 (patch) | |
tree | 6a0fe2d687ad0dc2d698a43ed609512d376a8bcc /audio | |
parent | 3b96865ce9ef58a01f3acdba93db228d7f65a440 (diff) | |
download | freebsd-ports-gnome-71adbe12b3096dda14436547ea6a1d397d72a896.tar.gz freebsd-ports-gnome-71adbe12b3096dda14436547ea6a1d397d72a896.tar.zst freebsd-ports-gnome-71adbe12b3096dda14436547ea6a1d397d72a896.zip |
Convert to options helpers
Nuke now useless WANT_GNOME
Use BROKEN helpers
Diffstat (limited to 'audio')
-rw-r--r-- | audio/snd/Makefile | 77 |
1 files changed, 27 insertions, 50 deletions
diff --git a/audio/snd/Makefile b/audio/snd/Makefile index a1cfd0c884f6..653b7fd89b85 100644 --- a/audio/snd/Makefile +++ b/audio/snd/Makefile @@ -21,7 +21,6 @@ FFTW3_DESC= Use FFTW GSL_DESC= Use GNU Scientific Library S7_DESC= Use S7 as the extension language -WANT_GNOME= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-float-samples MAKEFILE= makefile @@ -32,49 +31,27 @@ CFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -.include <bsd.port.options.mk> - -.if ${ARCH} == "sparc64" -BROKEN= does not compile on sparc64 -.endif - -.if ${PORT_OPTIONS:MFFTW3} -LIB_DEPENDS+= libfftw3.so:${PORTSDIR}/math/fftw3 -.else -CONFIGURE_ARGS+= --without-fftw -.endif - -.if ${PORT_OPTIONS:MGSL} -LIB_DEPENDS+= libgsl.so:${PORTSDIR}/math/gsl -.else -CONFIGURE_ARGS+= --without-gsl -.endif - -.if ${PORT_OPTIONS:MS7} -CONFIGURE_ARGS+= --with-s7 -.else -CONFIGURE_ARGS+= --without-s7 -.endif - -.if ${PORT_OPTIONS:MLADSPA} -BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa -RUN_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa -.else -CONFIGURE_ARGS+= --without-ladspa -.endif - -.if ${PORT_OPTIONS:MGTK2} -USE_GNOME+= gtk20 -CONFIGURE_ARGS+= --with-gtk -.endif -.if ${PORT_OPTIONS:MMOTIF} -USES+= motif -CONFIGURE_ARGS+= --with-motif -.endif - -.if ${PORT_OPTIONS:MX11} -CONFIGURE_ARGS+= --with-no-gui -.endif +BROKEN_sparc64= does not compile on sparc64 + +FFTW3_LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3 +FFTW3_CONFIGURE_WITH= fftw + +GSL_LIB_DEPENDS= libgsl.so:${PORTSDIR}/math/gsl +GSL_CONFIGURE_WITH= gsl + +S7_CONFIGURE_WITH= s7 + +LADSPA_BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa +LADSPA_RUN_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa +LADSPA_CONFIGURE_WITH= ladspa + +GTK2_USE= GNOME=gtk20 +GTK2_CONFIGURE_WITH= gtk + +MOTIF_USES= motif +MOTIF_CONFIGURE_WITH= motif + +X11_CONFIGURE_ON= --with-no-gui post-patch: @${REINPLACE_CMD} -e 's|^ _Complex| Vaiolate _Complex|g ; \ @@ -88,15 +65,16 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/bin .endfor ${INSTALL_MAN} ${WRKSRC}/snd.1 ${STAGEDIR}${MANPREFIX}/man/man1/ -.if ${PORT_OPTIONS:MS7} + +do-install-S7-on: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/*.scm ${STAGEDIR}${DATADIR} @${MKDIR} ${STAGEDIR}${DATADIR}/tools ${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${STAGEDIR}${DATADIR}/tools @${MKDIR} ${STAGEDIR}${DATADIR}/sndins/samples ${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${STAGEDIR}${DATADIR}/sndins/samples -.endif -.if ${PORT_OPTIONS:MDOCS} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in HISTORY.Snd README.Snd ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} @@ -104,10 +82,9 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}/pix ${INSTALL_DATA} ${WRKSRC}/pix/*.png ${STAGEDIR}${DOCSDIR}/pix -.endif -.if ${PORT_OPTIONS:MEXAMPLES} + +do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/DotEmacs ${STAGEDIR}${EXAMPLESDIR} -.endif .include <bsd.port.mk> |