diff options
author | wiz <wiz> | 2005-06-08 13:20:04 +0000 |
---|---|---|
committer | wiz <wiz> | 2005-06-08 13:20:04 +0000 |
commit | f0f67ef6c8035b6e216d21655bbb9e52490f09e2 (patch) | |
tree | fa82541b23ea3cf5dd8049d6fc3af279ebdb9174 /audio | |
parent | 7bc2e6cf22919ca1ed3e6991ea99b404e7d43d25 (diff) | |
download | pkgsrc-f0f67ef6c8035b6e216d21655bbb9e52490f09e2.tar.gz |
Convert to options framework.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/esound/Makefile | 11 | ||||
-rw-r--r-- | audio/esound/options.mk | 12 |
2 files changed, 14 insertions, 9 deletions
diff --git a/audio/esound/Makefile b/audio/esound/Makefile index b7fef57cf01..e37de413756 100644 --- a/audio/esound/Makefile +++ b/audio/esound/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.55 2005/04/11 21:44:52 tv Exp $ +# $NetBSD: Makefile,v 1.56 2005/06/08 13:20:04 wiz Exp $ DISTNAME= esound-0.2.35 PKGREVISION= 1 @@ -19,19 +19,12 @@ PKGCONFIG_OVERRIDE= esound.pc.in GNU_CONFIGURE= YES CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} -BUILD_DEFS+= USE_INET6 - EGDIR= ${PREFIX}/share/examples/esound CONF_FILES= ${EGDIR}/esd.conf ${PKG_SYSCONFDIR}/esd.conf +.include "options.mk" .include "../../mk/bsd.prefs.mk" -.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss]) -CONFIGURE_ARGS+= --enable-ipv6 -.else -CONFIGURE_ARGS+= --disable-ipv6 -.endif - .if ${OPSYS} == "Interix" # no sound output device, but can support a remote esound server CONFIGURE_ARGS+= --disable-local-sound diff --git a/audio/esound/options.mk b/audio/esound/options.mk new file mode 100644 index 00000000000..eb586cf26e1 --- /dev/null +++ b/audio/esound/options.mk @@ -0,0 +1,12 @@ +# $NetBSD: options.mk,v 1.1 2005/06/08 13:20:04 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.esound +PKG_SUPPORTED_OPTIONS= inet6 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-ipv6 +.else +CONFIGURE_ARGS+= --disable-ipv6 +.endif |