pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/esound Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d2b4429bfd7
branches:  trunk
changeset: 495393:2d2b4429bfd7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jun 08 13:20:04 2005 +0000

description:
Convert to options framework.

diffstat:

 audio/esound/Makefile   |  11 ++---------
 audio/esound/options.mk |  12 ++++++++++++
 2 files changed, 14 insertions(+), 9 deletions(-)

diffs (46 lines):

diff -r 230c2cbcbfee -r 2d2b4429bfd7 audio/esound/Makefile
--- a/audio/esound/Makefile     Wed Jun 08 11:32:32 2005 +0000
+++ b/audio/esound/Makefile     Wed Jun 08 13:20:04 2005 +0000
@@ -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 @@
 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 -r 230c2cbcbfee -r 2d2b4429bfd7 audio/esound/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/esound/options.mk   Wed Jun 08 13:20:04 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index