summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-06-08 13:20:04 +0000
committerwiz <wiz@pkgsrc.org>2005-06-08 13:20:04 +0000
commita0dd9db5399f04d108303422d11f2d3c669c637d (patch)
treefa82541b23ea3cf5dd8049d6fc3af279ebdb9174 /audio
parentba9afe39ee31d962e6d1a337636e2d8108dac67d (diff)
downloadpkgsrc-a0dd9db5399f04d108303422d11f2d3c669c637d.tar.gz
Convert to options framework.
Diffstat (limited to 'audio')
-rw-r--r--audio/esound/Makefile11
-rw-r--r--audio/esound/options.mk12
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