From a0dd9db5399f04d108303422d11f2d3c669c637d Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 8 Jun 2005 13:20:04 +0000 Subject: Convert to options framework. --- audio/esound/Makefile | 11 ++--------- audio/esound/options.mk | 12 ++++++++++++ 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 audio/esound/options.mk (limited to 'audio') 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 -- cgit v1.2.3