pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b13a3d0e851
branches:  trunk
changeset: 494862:0b13a3d0e851
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 31 16:13:18 2005 +0000

description:
Convert to options framework.

diffstat:

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

diffs (41 lines):

diff -r 38f09f4f771e -r 0b13a3d0e851 audio/libsndfile/Makefile
--- a/audio/libsndfile/Makefile Tue May 31 16:13:04 2005 +0000
+++ b/audio/libsndfile/Makefile Tue May 31 16:13:18 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2005/04/11 21:44:54 tv Exp $
+# $NetBSD: Makefile,v 1.30 2005/05/31 16:13:18 wiz Exp $
 
 DISTNAME=      libsndfile-1.0.11
 CATEGORIES=    audio
@@ -19,14 +19,9 @@
 # Avoid an ICE in gcc2 on sparc64
 CONFIGURE_ENV+=                F77=${FALSE}
 
+.include "options.mk"
 .include "../../mk/bsd.prefs.mk"
 
-.if defined(USE_OSS)
-.  include "../../mk/ossaudio.buildlink3.mk"
-OSS_DEFS=              -DDEV_DSP=\\\"${DEVOSSAUDIO}\\\" -DUSE_OSS=1
-MAKE_ENV+=             AM_CFLAGS="${OSS_DEFS}"
-.endif
-
 .if ${OPSYS} == "Darwin"
 BUILDLINK_PASSTHRU_DIRS+=      /Developer
 .endif
diff -r 38f09f4f771e -r 0b13a3d0e851 audio/libsndfile/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libsndfile/options.mk       Tue May 31 16:13:18 2005 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 16:13:18 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.libsndfile
+PKG_SUPPORTED_OPTIONS= oss
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Moss)
+.include "../../mk/ossaudio.buildlink3.mk"
+OSS_DEFS=      -DDEV_DSP=\\\"${DEVOSSAUDIO}\\\" -DUSE_OSS=1
+MAKE_ENV+=     AM_CFLAGS=${OSS_DEFS:Q}
+.endif



Home | Main Index | Thread Index | Old Index