summaryrefslogtreecommitdiff
path: root/extra/sox
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-02-17 10:46:15 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-02-17 10:46:15 +0100
commite30ba9d4c857530c2fbb3cc82236a49676d5ebc9 (patch)
tree966498ac914356462e691b8e550ab1f1d069074c /extra/sox
parent69f67102b7a02871e32a079ffb789d5fca72a746 (diff)
parentc6f4cd18ab706868be0eff10327a0dcd58cecdf3 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/cantata/PKGBUILD community/ffmpeg-compat/PKGBUILD community/v8/PKGBUILD core/e2fsprogs/PKGBUILD core/groff/PKGBUILD core/openssl/PKGBUILD extra/avidemux/PKGBUILD extra/ffmpeg/PKGBUILD extra/glpk/PKGBUILD extra/gstreamer0.10-ugly/PKGBUILD extra/mediastreamer/PKGBUILD extra/netcdf/PKGBUILD extra/octave/PKGBUILD extra/opal/PKGBUILD extra/sox/PKGBUILD extra/x264/PKGBUILD
Diffstat (limited to 'extra/sox')
-rw-r--r--extra/sox/PKGBUILD12
-rw-r--r--extra/sox/sox_default_audio_driver_fallback.patch51
2 files changed, 5 insertions, 58 deletions
diff --git a/extra/sox/PKGBUILD b/extra/sox/PKGBUILD
index feb8a1eb4..cfb0ab785 100644
--- a/extra/sox/PKGBUILD
+++ b/extra/sox/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 163160 2012-07-08 09:32:27Z ibiru $
+# $Id: PKGBUILD 178141 2013-02-16 22:48:58Z ioni $
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=sox
-pkgver=14.4.0
-pkgrel=3.1
+pkgver=14.4.1
+pkgrel=1
pkgdesc="The Swiss Army knife of sound processing tools"
arch=('i686' 'x86_64' 'mips64el')
url="http://sox.sourceforge.net/"
@@ -19,14 +19,12 @@ optdepends=('libao: for ao plugin'
'libpulse: for pulse plugin')
options=('!libtool')
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2
- sox_default_audio_driver_fallback.patch sox-ffmpeg0.11.patch)
-sha1sums=('12dfc57e503ed4e18cedcac292cdae7982281978'
- 'ab304f1fc17269262dbc4977aa9b7e97ec805ae4'
+ sox-ffmpeg0.11.patch)
+sha1sums=('4775f9e9eebb5a2fe79df548908a7a24088118d9'
'2f92bcaebcaf300782396f106cdd27c72048a851')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- patch -p0 -i "${srcdir}/sox_default_audio_driver_fallback.patch"
patch -p1 -i "${srcdir}/sox-ffmpeg0.11.patch"
sed -i 's|man1/sox.1 soxeffect.7|man1/sox.1.gz soxeffect.7.gz|' Makefile.in
./configure --prefix=/usr --sysconfdir=/etc \
diff --git a/extra/sox/sox_default_audio_driver_fallback.patch b/extra/sox/sox_default_audio_driver_fallback.patch
deleted file mode 100644
index 9f9060e17..000000000
--- a/extra/sox/sox_default_audio_driver_fallback.patch
+++ /dev/null
@@ -1,51 +0,0 @@
---- src/sox.c.old 2012-05-06 22:45:45.380564154 -0400
-+++ src/sox.c 2012-05-06 22:47:11.948248987 -0400
-@@ -2538,20 +2538,38 @@
- return name? from_env? from_env : name : NULL;
- }
-
-+static char const * try_device(char const * name)
-+{
-+ sox_format_handler_t const * handler = sox_find_format(name, sox_false);
-+ if (handler) {
-+ sox_format_t format, * ft = &format;
-+ memset(ft, 0, sizeof(*ft));
-+ ft->filename = (char *)device_name(name);
-+ ft->priv = lsx_calloc(1, handler->priv_size);
-+ if (handler->startwrite(ft) == SOX_SUCCESS) {
-+ handler->stopwrite(ft);
-+ free(ft->priv);
-+ return name;
-+ }
-+ free(ft->priv);
-+ }
-+ return NULL;
-+}
-+
- static char const * set_default_device(file_t * f)
- {
- /* Default audio driver type in order of preference: */
- if (!f->filetype) f->filetype = getenv("AUDIODRIVER");
-- if (!f->filetype && sox_find_format("coreaudio", sox_false)) f->filetype = "coreaudio";
-- if (!f->filetype && sox_find_format("pulseaudio" , sox_false)) f->filetype = "pulseaudio";
-- if (!f->filetype && sox_find_format("alsa", sox_false)) f->filetype = "alsa";
-- if (!f->filetype && sox_find_format("waveaudio" , sox_false)) f->filetype = "waveaudio";
-- if (!f->filetype && sox_find_format("sndio", sox_false)) f->filetype = "sndio";
-- if (!f->filetype && sox_find_format("oss" , sox_false)) f->filetype = "oss";
-- if (!f->filetype && sox_find_format("sunau",sox_false)) f->filetype = "sunau";
-- if (!f->filetype && sox_find_format("ao" , sox_false) && file_count) /*!rec*/
-- f->filetype = "ao";
--
-+ if (!f->filetype) f->filetype = try_device("coreaudio");
-+ if (!f->filetype) f->filetype = try_device("pulseaudio");
-+ if (!f->filetype) f->filetype = try_device("alsa");
-+ if (!f->filetype) f->filetype = try_device("waveaudio");
-+ if (!f->filetype) f->filetype = try_device("sndio");
-+ if (!f->filetype) f->filetype = try_device("oss");
-+ if (!f->filetype) f->filetype = try_device("sunau");
-+ if (!f->filetype && file_count) /*!rec*/
-+ f->filetype = try_device("ao");
-+
- if (!f->filetype) {
- lsx_fail("Sorry, there is no default audio device configured");
- exit(1);