diff options
author | wiz <wiz@pkgsrc.org> | 2005-05-31 16:16:50 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-05-31 16:16:50 +0000 |
commit | 6d23d167537c2fc700dea2b14c86a85e83c51af0 (patch) | |
tree | 1e9775ffd851528dba81489776a4d69d2bb8d9cb /audio | |
parent | 83675e7170d56ff776648dd95121d254e924ce37 (diff) | |
download | pkgsrc-6d23d167537c2fc700dea2b14c86a85e83c51af0.tar.gz |
Convert to options framework.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/madplay/Makefile | 19 | ||||
-rw-r--r-- | audio/madplay/options.mk | 16 |
2 files changed, 18 insertions, 17 deletions
diff --git a/audio/madplay/Makefile b/audio/madplay/Makefile index 654c55ce651..5686d63d463 100644 --- a/audio/madplay/Makefile +++ b/audio/madplay/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2005/04/11 21:44:54 tv Exp $ +# $NetBSD: Makefile,v 1.27 2005/05/31 16:16:50 wiz Exp $ # DISTNAME= madplay-0.15.2b @@ -20,26 +20,11 @@ USE_LIBTOOL= YES # Avoid an ICE in gcc2 on sparc64 CONFIGURE_ENV+= F77=${FALSE} -BUILD_DEFS+= USE_ESOUND -BUILD_DEFS+= USE_OSS +.include "options.mk" -.include "../../mk/bsd.prefs.mk" - -.if empty(USE_ESOUND:M[Yy][Ee][Ss]) -CONFIGURE_ARGS+= --without-esd -.endif - -.if !empty(USE_ESOUND:M[Yy][Ee][Ss]) -.include "../../audio/esound/buildlink3.mk" -.endif .include "../../audio/libid3tag/buildlink3.mk" .include "../../audio/libmad/buildlink3.mk" .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" - -.if defined(USE_OSS) -. include "../../mk/ossaudio.buildlink3.mk" -.endif - .include "../../mk/bsd.pkg.mk" diff --git a/audio/madplay/options.mk b/audio/madplay/options.mk new file mode 100644 index 00000000000..062dc2186ef --- /dev/null +++ b/audio/madplay/options.mk @@ -0,0 +1,16 @@ +# $NetBSD: options.mk,v 1.1 2005/05/31 16:16:50 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.madplay +PKG_SUPPORTED_OPTIONS= esound oss + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mesound) +.include "../../audio/esound/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-esd +.endif + +.if !empty(PKG_OPTIONS:Moss) +.include "../../mk/ossaudio.buildlink3.mk" +.endif |