diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/sox/Makefile | 43 | ||||
-rw-r--r-- | audio/sox/PLIST | 13 | ||||
-rw-r--r-- | audio/sox/PLIST.common | 6 | ||||
-rw-r--r-- | audio/sox/PLIST.play | 5 | ||||
-rw-r--r-- | audio/sox/distinfo | 15 | ||||
-rw-r--r-- | audio/sox/patches/patch-aa | 19 | ||||
-rw-r--r-- | audio/sox/patches/patch-ab | 33 | ||||
-rw-r--r-- | audio/sox/patches/patch-ac | 51 | ||||
-rw-r--r-- | audio/sox/patches/patch-ad | 16 |
9 files changed, 90 insertions, 111 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile index f1f23714ed7..6c939b8fb46 100644 --- a/audio/sox/Makefile +++ b/audio/sox/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.39 2006/09/03 00:26:20 ben Exp $ +# $NetBSD: Makefile,v 1.40 2007/02/22 23:23:03 wiz Exp $ -DISTNAME= sox-12.18.1 +DISTNAME= sox-13.0.0 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sox/} \ http://www.cnpbagwell.com/ @@ -10,25 +10,26 @@ HOMEPAGE= http://sox.sourceforge.net/ COMMENT= SOund eXchange - universal sound sample translator PKG_INSTALLATION_TYPES= overwrite pkgviews - -.include "../../mk/bsd.prefs.mk" - GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --enable-fast-ulaw -CONFIGURE_ARGS+= --enable-fast-alaw -.if ${OPSYS} != "DragonFly" && ${OPSYS} != "FreeBSD" -CONFIGURE_ARGS+= --disable-oss-dsp -.endif -CONFIGURE_ARGS+= --with-ogg-vorbislib=${BUILDLINK_PREFIX.libvorbis}/lib -CONFIGURE_ARGS+= --with-ogg-vorbisinc=${BUILDLINK_PREFIX.libvorbis}/include - -PLIST_SRC= ${PKGDIR}/PLIST.common - -.if ${OPSYS} != "Interix" && ${OPSYS} != "Darwin" -CONFIGURE_ARGS+= --with-sun-audio -PLIST_SRC+= ${PKGDIR}/PLIST.play -.endif - -.include "../../audio/libvorbis/buildlink3.mk" +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config + +SUBST_CLASSES+= lrf +SUBST_FILES.lrf= src/libst-config.in +SUBST_SED.lrf= -e "s!@LRF@!"${LINKER_RPATH_FLAG:Q}"!" +SUBST_STAGE.lrf= pre-configure + +SUBST_CLASSES+= gsm +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 + +# needs obsolete FLAC API +#.include "../../audio/flac/buildlink3.mk" +.include "../../audio/gsm/buildlink3.mk" +.include "../../audio/lame/buildlink3.mk" .include "../../audio/libmad/buildlink3.mk" +.include "../../audio/libsndfile/buildlink3.mk" +.include "../../audio/libsamplerate/buildlink3.mk" +.include "../../audio/libvorbis/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/audio/sox/PLIST b/audio/sox/PLIST new file mode 100644 index 00000000000..114bb1facff --- /dev/null +++ b/audio/sox/PLIST @@ -0,0 +1,13 @@ +@comment $NetBSD: PLIST,v 1.4 2007/02/22 23:23:03 wiz Exp $ +bin/libst-config +bin/play +bin/rec +bin/sox +include/st.h +include/ststdint.h +lib/libst.la +man/man1/play.1 +man/man1/rec.1 +man/man1/sox.1 +man/man3/libst.3 +man/man7/soxexam.7 diff --git a/audio/sox/PLIST.common b/audio/sox/PLIST.common deleted file mode 100644 index 515e201eec6..00000000000 --- a/audio/sox/PLIST.common +++ /dev/null @@ -1,6 +0,0 @@ -@comment $NetBSD: PLIST.common,v 1.1 2005/03/07 12:19:16 tv Exp $ -bin/sox -bin/soxmix -man/man1/sox.1 -man/man1/soxexam.1 -man/man1/soxmix.1 diff --git a/audio/sox/PLIST.play b/audio/sox/PLIST.play deleted file mode 100644 index eabbefc8528..00000000000 --- a/audio/sox/PLIST.play +++ /dev/null @@ -1,5 +0,0 @@ -@comment $NetBSD: PLIST.play,v 1.1 2005/03/07 12:19:16 tv Exp $ -bin/play -bin/rec -man/man1/play.1 -man/man1/rec.1 diff --git a/audio/sox/distinfo b/audio/sox/distinfo index c2aa11fcb30..7b5fedf8432 100644 --- a/audio/sox/distinfo +++ b/audio/sox/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.14 2006/10/08 21:21:41 rillig Exp $ +$NetBSD: distinfo,v 1.15 2007/02/22 23:23:03 wiz Exp $ -SHA1 (sox-12.18.1.tar.gz) = 9591248680029a6e89468daeb4046cdab6e6e759 -RMD160 (sox-12.18.1.tar.gz) = 8177a5b606aad45d7bdf8bba9ea6d818b2399301 -Size (sox-12.18.1.tar.gz) = 473181 bytes -SHA1 (patch-aa) = a1e3d17b0f674dd55405879337754c16846e5b03 -SHA1 (patch-ab) = 52157b6875ca4ca1b116ae898e26a99652bdb55b -SHA1 (patch-ac) = b278e5a9d31af90fdbd15ee604e6f78fe4682bff +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-ab) = 3973227e19b0a1128b8faa4ab88074dcf51e100d +SHA1 (patch-ac) = 53aee94b525c7856c49c8c948377c88973f2e651 +SHA1 (patch-ad) = 4499da3541b6d67aab7e2eb598986d0362527287 diff --git a/audio/sox/patches/patch-aa b/audio/sox/patches/patch-aa index 453629e076d..80ff3baeb8c 100644 --- a/audio/sox/patches/patch-aa +++ b/audio/sox/patches/patch-aa @@ -1,13 +1,12 @@ -$NetBSD: patch-aa,v 1.9 2005/06/24 20:50:31 wiz Exp $ +$NetBSD: patch-aa,v 1.10 2007/02/22 23:23:04 wiz Exp $ ---- Makefile.in.orig 2004-11-07 23:37:20.000000000 +0100 -+++ Makefile.in -@@ -18,6 +18,8 @@ includedir = @includedir@ +--- configure.orig 2007-02-22 22:45:00.000000000 +0000 ++++ configure +@@ -20972,6 +20972,7 @@ fi - INSTALL = @INSTALL@ - LN_S = @LN_S@ -+RM = rm -f -+PLAY_SUPPORT = @PLAY_SUPPORT@ + done - all: - cd src && $(MAKE) $@ ++with_oss=no + if test "$with_oss" = yes; then + + cat >>confdefs.h <<\_ACEOF diff --git a/audio/sox/patches/patch-ab b/audio/sox/patches/patch-ab index 836b582a881..c9fd9805b7e 100644 --- a/audio/sox/patches/patch-ab +++ b/audio/sox/patches/patch-ab @@ -1,23 +1,12 @@ -$NetBSD: patch-ab,v 1.10 2006/04/26 07:41:17 rillig Exp $ +$NetBSD: patch-ab,v 1.11 2007/02/22 23:23:04 wiz Exp $ -SunPro does not like extern inline functions that reference static -functions. - ---- src/adpcm.c.orig Tue Nov 23 00:07:37 2004 -+++ src/adpcm.c Wed Apr 26 09:29:21 2006 -@@ -72,6 +72,7 @@ const short iCoef[7][2] = { - { 392,-232} - }; - -+static - inline st_sample_t AdpcmDecode(st_sample_t c, MsState_t *state, - st_sample_t sample1, st_sample_t sample2) - { -@@ -303,6 +304,7 @@ static long ReAvgDelta(int ch, int chans - - #endif - -+static - inline void AdpcmMashChannel( - int ch, /* channel number to encode, REQUIRE 0 <= ch < chans */ - int chans, /* total channels */ +--- src/Makefile.in.orig 2007-02-11 19:49:58.000000000 +0000 ++++ src/Makefile.in +@@ -164,6 +164,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@ + PATH_SEPARATOR = @PATH_SEPARATOR@ + PKG_CONFIG = @PKG_CONFIG@ + RANLIB = @RANLIB@ ++RM = rm -f + SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ + SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ + SED = @SED@ diff --git a/audio/sox/patches/patch-ac b/audio/sox/patches/patch-ac index 584e9257e49..f46b460d3c9 100644 --- a/audio/sox/patches/patch-ac +++ b/audio/sox/patches/patch-ac @@ -1,41 +1,12 @@ -$NetBSD: patch-ac,v 1.9 2006/10/08 21:21:41 rillig Exp $ +$NetBSD: patch-ac,v 1.10 2007/02/22 23:23:04 wiz Exp $ -Fixed "test ==" and many stylistic issues. - ---- scripts/audiogen.orig 2004-09-23 02:52:14.000000000 +0200 -+++ scripts/audiogen 2006-10-08 23:17:57.000000000 +0200 -@@ -1,24 +1,23 @@ - #!/bin/sh - # --# usage:audiogen <rate> <channels> <filename> <length> <audio generator options> -+# usage: audiogen <rate> <channels> <filename> <length> <audio generator options> - # - # Example of using the "nul" file handler along with "synth" effect - # to generate audio data. Nul file handler pipes a stream of null - # data non-stop. Synth effect overrides it with its own data and - # stops based on length parameter. - --if [ "$5" == "" ]; then -- echo "usage: $0 <rate> <channels> <filename> <length> <audio generator options>" -- echo -- echo "See sox man page and the \"synth\" effect for further information on audio generation options." -+if [ $# -ne 5 ]; then -+ { echo "usage: $0 <rate> <channels> <filename> <length> <audio generator options>" -+ echo -+ echo "See sox man page and the \"synth\" effect for further information on audio generation options." -+ } 1>&2 - exit 1 - fi - - rate=$1 --shift --channels=$1 --shift --filename=$1 --shift -+channels=$2 -+filename=$3 -+shift 3 - --sox -s -w -t nul -r $rate -c $channels /dev/null $filename synth $* -+exec sox -s -w -t nul -r "$rate" -c "$channels" /dev/null "$filename" synth "$@" +--- Makefile.in.orig 2007-02-11 19:48:39.000000000 +0000 ++++ Makefile.in +@@ -136,6 +136,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@ + PATH_SEPARATOR = @PATH_SEPARATOR@ + PKG_CONFIG = @PKG_CONFIG@ + RANLIB = @RANLIB@ ++RM = rm -f + SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ + SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ + SED = @SED@ diff --git a/audio/sox/patches/patch-ad b/audio/sox/patches/patch-ad new file mode 100644 index 00000000000..283001ea0a8 --- /dev/null +++ b/audio/sox/patches/patch-ad @@ -0,0 +1,16 @@ +$NetBSD: patch-ad,v 1.5 2007/02/22 23:23:04 wiz Exp $ + +--- src/libst-config.in.orig 2004-09-01 19:49:24.000000000 +0000 ++++ src/libst-config.in +@@ -17,9 +17,9 @@ case "$1" in + --libdir) + echo $libdir;; + --libs) +- echo $libs;; ++ echo "-R'$libdir' -L'$libdir' $libs";; + --cflags) +- echo "-L'$libdir' -I'$includedir'";; ++ echo -I$includedir;; + *) + echo "Usage: $0 [--prefix|--includedir|--libdir|--cflags|--libs]" + exit 1;; |