pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3ad0047f62d
branches:  trunk
changeset: 494860:e3ad0047f62d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 31 16:10:19 2005 +0000

description:
Convert to options framework.

diffstat:

 audio/libmikmod/Makefile   |  15 ++-------------
 audio/libmikmod/options.mk |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 13 deletions(-)

diffs (51 lines):

diff -r 8296cf216419 -r e3ad0047f62d audio/libmikmod/Makefile
--- a/audio/libmikmod/Makefile  Tue May 31 16:05:09 2005 +0000
+++ b/audio/libmikmod/Makefile  Tue May 31 16:10:19 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2005/05/22 20:07:38 jlam Exp $
+# $NetBSD: Makefile,v 1.36 2005/05/31 16:10:19 wiz Exp $
 
 DISTNAME=              libmikmod-3.1.11
 PKGNAME=               libmikmod-3.1.11.1
@@ -24,20 +24,9 @@
 
 CONFIGURE_ARGS+=       --disable-threads
 
-.include "../../mk/bsd.prefs.mk"
-
-BUILD_DEFS+=           USE_ESOUND
-.if defined(USE_ESOUND) && !empty(USE_ESOUND:M[Yy][Ee][Ss])
-.include "../../audio/esound/buildlink3.mk"
-.else
-CONFIGURE_ARGS+=       --disable-esd
-.endif
+.include "options.mk"
 
 pre-build:
        ${RM} -f ${WRKSRC}/docs/mikmod.info*
 
-.if defined(USE_OSS)
-.  include "../../mk/ossaudio.buildlink3.mk"
-.endif
-
 .include "../../mk/bsd.pkg.mk"
diff -r 8296cf216419 -r e3ad0047f62d audio/libmikmod/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libmikmod/options.mk        Tue May 31 16:10:19 2005 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 16:10:19 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.libmikmod
+PKG_SUPPORTED_OPTIONS= esound oss
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mesound)
+.include "../../audio/esound/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-esd
+.endif
+
+.if !empty(PKG_OPTIONS:Moss)
+.  include "../../mk/ossaudio.buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index