diff options
author | wiz <wiz@pkgsrc.org> | 2005-05-31 16:10:19 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-05-31 16:10:19 +0000 |
commit | 7ac375dceba73954467914d97c4caefde695e6ff (patch) | |
tree | 84eb157bd16ce53834c9fe0a4e5fb304d98628a1 /audio | |
parent | e313f31d70af490f5d3ae2983bd84ab4adf4741f (diff) | |
download | pkgsrc-7ac375dceba73954467914d97c4caefde695e6ff.tar.gz |
Convert to options framework.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/libmikmod/Makefile | 15 | ||||
-rw-r--r-- | audio/libmikmod/options.mk | 16 |
2 files changed, 18 insertions, 13 deletions
diff --git a/audio/libmikmod/Makefile b/audio/libmikmod/Makefile index b5ac8175968..ab1aaafd7e2 100644 --- a/audio/libmikmod/Makefile +++ b/audio/libmikmod/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2005/05/22 20:07:38 jlam Exp $ +# $NetBSD: Makefile,v 1.36 2005/05/31 16:10:19 wiz Exp $ DISTNAME= libmikmod-3.1.11 PKGNAME= libmikmod-3.1.11.1 @@ -24,20 +24,9 @@ INFO_FILES= mikmod.info CONFIGURE_ARGS+= --disable-threads -.include "../../mk/bsd.prefs.mk" - -BUILD_DEFS+= USE_ESOUND -.if defined(USE_ESOUND) && !empty(USE_ESOUND:M[Yy][Ee][Ss]) -.include "../../audio/esound/buildlink3.mk" -.else -CONFIGURE_ARGS+= --disable-esd -.endif +.include "options.mk" pre-build: ${RM} -f ${WRKSRC}/docs/mikmod.info* -.if defined(USE_OSS) -. include "../../mk/ossaudio.buildlink3.mk" -.endif - .include "../../mk/bsd.pkg.mk" diff --git a/audio/libmikmod/options.mk b/audio/libmikmod/options.mk new file mode 100644 index 00000000000..1d9a1dd493c --- /dev/null +++ b/audio/libmikmod/options.mk @@ -0,0 +1,16 @@ +# $NetBSD: options.mk,v 1.1 2005/05/31 16:10:19 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libmikmod +PKG_SUPPORTED_OPTIONS= esound oss + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mesound) +.include "../../audio/esound/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-esd +.endif + +.if !empty(PKG_OPTIONS:Moss) +. include "../../mk/ossaudio.buildlink3.mk" +.endif |