summaryrefslogtreecommitdiff
path: root/audio/esound
diff options
context:
space:
mode:
authorwiz <wiz>2005-06-08 13:20:04 +0000
committerwiz <wiz>2005-06-08 13:20:04 +0000
commitc16ace3ac856035e4c0062097674ca5ca7303e42 (patch)
treefa82541b23ea3cf5dd8049d6fc3af279ebdb9174 /audio/esound
parentd95b2111d5b1df2176d573c89b79ebb2ce83f24c (diff)
downloadpkgsrc-c16ace3ac856035e4c0062097674ca5ca7303e42.tar.gz
Convert to options framework.
Diffstat (limited to 'audio/esound')
-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