summaryrefslogtreecommitdiff
path: root/audio/sox
diff options
context:
space:
mode:
authorwiz <wiz>2007-08-06 05:28:36 +0000
committerwiz <wiz>2007-08-06 05:28:36 +0000
commitf7475395ed062195070d321f1f580eff08fb7cb0 (patch)
tree03d9648d22638292fdbc7d5ca6cbada98c3e8d85 /audio/sox
parentd1fd9ce43701618630f418cd8c1c3fac577029d3 (diff)
downloadpkgsrc-f7475395ed062195070d321f1f580eff08fb7cb0.tar.gz
Add an option to turn on OSS support (instead of turning it off
unconditionally), for DragonFly. Based on a patch provided by Steve O'Hara-Smith on pkgsrc-users. While here, split off options handling into an options.mk file.
Diffstat (limited to 'audio/sox')
-rw-r--r--audio/sox/Makefile14
-rw-r--r--audio/sox/distinfo4
-rw-r--r--audio/sox/options.mk16
-rw-r--r--audio/sox/patches/patch-aa18
4 files changed, 35 insertions, 17 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile
index 83edb849f80..802f12ca4af 100644
--- a/audio/sox/Makefile
+++ b/audio/sox/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2007/06/04 05:44:09 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2007/08/06 05:28:36 wiz Exp $
DISTNAME= sox-13.0.0
PKGREVISION= 1
@@ -14,12 +14,6 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
-PKG_OPTIONS_VAR= PKG_OPTIONS.sox
-PKG_SUPPORTED_OPTIONS= lame
-# lame has LICENSE= issues and thus should not be SUGGESTED.
-PKG_SUGGESTED_OPTIONS=
-.include "../../mk/bsd.options.mk"
-
SUBST_CLASSES+= lrf
SUBST_FILES.lrf= src/libst-config.in
SUBST_SED.lrf= -e "s!@LRF@!"${LINKER_RPATH_FLAG}"!"
@@ -30,13 +24,11 @@ SUBST_FILES.gsm= configure src/gsm.c src/wav.c
SUBST_SED.gsm= -e "s!gsm/gsm.h!gsm.h!"
SUBST_STAGE.gsm= pre-configure
+.include "options.mk"
+
# needs obsolete FLAC API
#.include "../../audio/flac/buildlink3.mk"
.include "../../audio/gsm/buildlink3.mk"
-.if !empty(PKG_OPTIONS:Mlame)
-# This is an option due to LICENSE= issues.
-.include "../../audio/lame/buildlink3.mk"
-.endif
.include "../../audio/libmad/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"
diff --git a/audio/sox/distinfo b/audio/sox/distinfo
index f7197f87ac3..d250d48b015 100644
--- a/audio/sox/distinfo
+++ b/audio/sox/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.16 2007/02/22 23:34:42 wiz Exp $
+$NetBSD: distinfo,v 1.17 2007/08/06 05:28:36 wiz Exp $
SHA1 (sox-13.0.0.tar.gz) = db0e6a7356b8fcbc72cf0dca1d81782fc3fa48f4
RMD160 (sox-13.0.0.tar.gz) = 84e7c8dea4f3a9145f9b42f7f03ac2329f3b83f2
Size (sox-13.0.0.tar.gz) = 725259 bytes
-SHA1 (patch-aa) = c21bd9f1b9ba2440abd47b4aacc9721d0a2a6589
+SHA1 (patch-aa) = 46421ae6d228132b9719df6129b49bdb78174a42
SHA1 (patch-ab) = 3973227e19b0a1128b8faa4ab88074dcf51e100d
SHA1 (patch-ac) = 53aee94b525c7856c49c8c948377c88973f2e651
SHA1 (patch-ad) = efe2df76606544754a2c6d44bd9488e359a8caa8
diff --git a/audio/sox/options.mk b/audio/sox/options.mk
new file mode 100644
index 00000000000..a9d9fa4419c
--- /dev/null
+++ b/audio/sox/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2007/08/06 05:28:37 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.sox
+PKG_SUPPORTED_OPTIONS= lame oss
+# lame has LICENSE= issues and thus should not be SUGGESTED.
+PKG_SUGGESTED_OPTIONS=
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlame)
+# This is an option due to LICENSE= issues.
+.include "../../audio/lame/buildlink3.mk"
+.endif
+
+.if empty(PKG_OPTIONS:Moss)
+CONFIGURE_ARGS+= --without-oss
+.endif
diff --git a/audio/sox/patches/patch-aa b/audio/sox/patches/patch-aa
index 80ff3baeb8c..89ce9315efd 100644
--- a/audio/sox/patches/patch-aa
+++ b/audio/sox/patches/patch-aa
@@ -1,12 +1,22 @@
-$NetBSD: patch-aa,v 1.10 2007/02/22 23:23:04 wiz Exp $
+$NetBSD: patch-aa,v 1.11 2007/08/06 05:28:37 wiz Exp $
---- configure.orig 2007-02-22 22:45:00.000000000 +0000
+--- configure.orig 2007-02-11 19:48:36.000000000 +0000
+++ configure
-@@ -20972,6 +20972,7 @@ fi
+@@ -20671,6 +20671,8 @@ _ACEOF
+
+ fi
+
++if test "$with_oss" != no; then
++
+ with_oss=no
+
+ for ac_header in sys/soundcard.h
+@@ -20972,6 +20974,8 @@ fi
done
-+with_oss=no
++fi
++
if test "$with_oss" = yes; then
cat >>confdefs.h <<\_ACEOF