diff options
-rw-r--r-- | media-libs/audiofile/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/audiofile/Manifest | 15 | ||||
-rw-r--r-- | media-libs/audiofile/audiofile-0.2.6-r1.ebuild | 39 | ||||
-rw-r--r-- | media-libs/audiofile/files/digest-audiofile-0.2.6-r1 | 1 | ||||
-rw-r--r-- | media-libs/audiofile/files/sfconvert-eradicator.patch | 144 |
5 files changed, 200 insertions, 7 deletions
diff --git a/media-libs/audiofile/ChangeLog b/media-libs/audiofile/ChangeLog index 7c22fa12625e..7c29d2fc77d8 100644 --- a/media-libs/audiofile/ChangeLog +++ b/media-libs/audiofile/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/audiofile # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/audiofile/ChangeLog,v 1.22 2004/03/09 23:28:21 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/audiofile/ChangeLog,v 1.23 2004/04/05 07:20:53 eradicator Exp $ + +*audiofile-0.2.6-r1 (05 Apr 2004) + + 05 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org> + audiofile-0.2.6-r1.ebuild, files/sfconvert-eradicator.patch: + Added functionality to sfconvert. Patch sent upstream. 09 Mar 2004; <agriffis@gentoo.org> audiofile-0.2.5.ebuild: stable on alpha and ia64 diff --git a/media-libs/audiofile/Manifest b/media-libs/audiofile/Manifest index d991cf9a3106..71bcc16644c8 100644 --- a/media-libs/audiofile/Manifest +++ b/media-libs/audiofile/Manifest @@ -1,10 +1,13 @@ -MD5 970090dcbe2b745a5b3940fdae30e6be files/digest-audiofile-0.2.3-r1 67 -MD5 229f6edb9a272909dd6c3f847c52c89f files/digest-audiofile-0.2.4 67 -MD5 bd21c46ede9b8210a6706ceda2b44659 files/digest-audiofile-0.2.5 67 -MD5 614e3fa2ecce47cc2b638aee1d145dba files/digest-audiofile-0.2.6 67 -MD5 2343cc3f5eabe4ffd19a9cff9dcb4e5c ChangeLog 2763 MD5 0e9affe0f4e3aa609a95175592c4aca2 audiofile-0.2.3-r1.ebuild 808 -MD5 b1c1e66027e4a3d589733032f35ed38f audiofile-0.2.4.ebuild 867 MD5 42dc76158b2ef5722ad71803b7029b9a audiofile-0.2.5.ebuild 866 +MD5 2b07e1d9b0a96a5fe8dbf3444604299d audiofile-0.2.6-r1.ebuild 953 +MD5 b1c1e66027e4a3d589733032f35ed38f audiofile-0.2.4.ebuild 867 +MD5 d036d7897cb82d78c0c680e5bd0b4890 ChangeLog 2979 MD5 b263ff7675308d90b75a170acae3f5ff metadata.xml 177 MD5 6bb6fab422cb7606cfff9d2d550dca12 audiofile-0.2.6.ebuild 796 +MD5 6be24f4f613faf959f406fcbe756324e files/sfconvert-eradicator.patch 4345 +MD5 229f6edb9a272909dd6c3f847c52c89f files/digest-audiofile-0.2.4 67 +MD5 bd21c46ede9b8210a6706ceda2b44659 files/digest-audiofile-0.2.5 67 +MD5 614e3fa2ecce47cc2b638aee1d145dba files/digest-audiofile-0.2.6 67 +MD5 970090dcbe2b745a5b3940fdae30e6be files/digest-audiofile-0.2.3-r1 67 +MD5 614e3fa2ecce47cc2b638aee1d145dba files/digest-audiofile-0.2.6-r1 67 diff --git a/media-libs/audiofile/audiofile-0.2.6-r1.ebuild b/media-libs/audiofile/audiofile-0.2.6-r1.ebuild new file mode 100644 index 000000000000..aa6748a60703 --- /dev/null +++ b/media-libs/audiofile/audiofile-0.2.6-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/audiofile/audiofile-0.2.6-r1.ebuild,v 1.1 2004/04/05 07:20:53 eradicator Exp $ + +inherit libtool gnuconfig eutils + +DESCRIPTION="An elegant API for accessing audio files" +HOMEPAGE="http://www.68k.org/~michael/audiofile/" +SRC_URI="http://www.68k.org/~michael/audiofile/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha hppa ~amd64 ~mips ~ia64" + +DEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + + cd ${S}/sfcommands + epatch ${FILESDIR}/sfconvert-eradicator.patch + + cd ${S} + # Allows configure to detect mipslinux systems + use mips && gnuconfig_update + + elibtoolize +} + +src_compile() { + econf --enable-largefile || die + emake || die +} + +src_install() { +# einstall || die + make DESTDIR=${D} install || die + dodoc ACKNOWLEDGEMENTS AUTHORS ChangeLog README TODO NEWS NOTES +} diff --git a/media-libs/audiofile/files/digest-audiofile-0.2.6-r1 b/media-libs/audiofile/files/digest-audiofile-0.2.6-r1 new file mode 100644 index 000000000000..bc0aa8161981 --- /dev/null +++ b/media-libs/audiofile/files/digest-audiofile-0.2.6-r1 @@ -0,0 +1 @@ +MD5 9c1049876cd51c0f1b12c2886cce4d42 audiofile-0.2.6.tar.gz 374688 diff --git a/media-libs/audiofile/files/sfconvert-eradicator.patch b/media-libs/audiofile/files/sfconvert-eradicator.patch new file mode 100644 index 000000000000..d25b79cff81e --- /dev/null +++ b/media-libs/audiofile/files/sfconvert-eradicator.patch @@ -0,0 +1,144 @@ +--- sfconvert.c.orig 2004-04-04 23:39:56.000000000 -0700 ++++ sfconvert.c 2004-04-05 00:00:25.000000000 -0700 +@@ -66,12 +66,14 @@ + + AFfilehandle infile, outfile; + AFfilesetup outfilesetup; +- int sampleFormat, sampleWidth, channelCount; +- double sampleRate; ++ int sampleFormat, sampleWidth, channelCount, byteOrder; ++ double sampleRate, outSampleRate; ++ int outSampleRateInt = -1; + int outSampleFormat = -1, outSampleWidth = -1, +- outChannelCount = -1; ++ outChannelCount = -1, outByteOrder = -1; + double outMaxAmp = 1.0; + ++ + AFframecount totalFrames; + + if (argc < 3) +@@ -88,7 +90,10 @@ + { + if (i + 1 >= argc) + usageerror(); +- if (!strcmp(argv[i+1], "aiff")) ++ ++ if (!strcmp(argv[i+1], "raw")) ++ outFileFormat = AF_FILE_RAWDATA; ++ else if (!strcmp(argv[i+1], "aiff")) + outFileFormat = AF_FILE_AIFF; + else if (!strcmp(argv[i+1], "aifc")) + outFileFormat = AF_FILE_AIFFC; +@@ -98,6 +103,12 @@ + outFileFormat = AF_FILE_NEXTSND; + else if (!strcmp(argv[i+1], "bics")) + outFileFormat = AF_FILE_BICSF; ++ else if (!strcmp(argv[i+1], "avr")) ++ outFileFormat = AF_FILE_AVR; ++ else if (!strcmp(argv[i+1], "iff")) ++ outFileFormat = AF_FILE_IFF_8SVX; ++ else if (!strcmp(argv[i+1], "nist")) ++ outFileFormat = AF_FILE_NIST_SPHERE; + else + { + fprintf(stderr, "sfconvert: Unknown format %s.\n", argv[i+1]); +@@ -107,6 +118,22 @@ + /* Increment for argument. */ + i++; + } ++ else if (!strcmp(argv[i], "byteorder")) ++ { ++ if (i + 1 >= argc) ++ usageerror(); ++ ++ if(!strcmp("big", argv[i+1])) { ++ outByteOrder = AF_BYTEORDER_BIGENDIAN; ++ } else if(!strcmp("little", argv[i+1])) { ++ outByteOrder = AF_BYTEORDER_LITTLEENDIAN; ++ } else { ++ usageerror(); ++ } ++ ++ /* Increment for argument. */ ++ i++; ++ } + else if (!strcmp(argv[i], "channels")) + { + if (i + 1 >= argc) +@@ -119,6 +146,20 @@ + /* Increment for argument. */ + i++; + } ++ else if (!strcmp(argv[i], "rate")) ++ { ++ if (i + 1 >= argc) ++ usageerror(); ++ ++ outSampleRateInt = atoi(argv[i+1]); ++ if (outSampleRateInt <= 0) ++ usageerror(); ++ ++ outSampleRate = (double)outSampleRateInt; ++ ++ /* Increment for argument. */ ++ i++; ++ } + else if (!strcmp(argv[i], "float")) + { + if (i + 1 >= argc) +@@ -170,6 +211,7 @@ + totalFrames = afGetFrameCount(infile, AF_DEFAULT_TRACK); + channelCount = afGetChannels(infile, AF_DEFAULT_TRACK); + sampleRate = afGetRate(infile, AF_DEFAULT_TRACK); ++ byteOrder = afGetByteOrder(infile, AF_DEFAULT_TRACK); + afGetSampleFormat(infile, AF_DEFAULT_TRACK, &sampleFormat, &sampleWidth); + + /* Initialize output audio format parameters. */ +@@ -184,14 +226,21 @@ + outSampleWidth = sampleWidth; + } + ++ if (outByteOrder == -1) ++ outByteOrder = byteOrder; ++ + if (outChannelCount == -1) + outChannelCount = channelCount; + ++ if (outSampleRateInt == -1) ++ outSampleRate = sampleRate; ++ + afInitFileFormat(outfilesetup, outFileFormat); + afInitSampleFormat(outfilesetup, AF_DEFAULT_TRACK, outSampleFormat, + outSampleWidth); + afInitChannels(outfilesetup, AF_DEFAULT_TRACK, outChannelCount); +- afInitRate(outfilesetup, AF_DEFAULT_TRACK, sampleRate); ++ afInitRate(outfilesetup, AF_DEFAULT_TRACK, outSampleRate); ++ afInitByteOrder(outfilesetup, AF_DEFAULT_TRACK, outByteOrder); + + outfile = afOpenFile(outfilename, "w", outfilesetup); + if (outfile == AF_NULL_FILEHANDLE) +@@ -228,6 +277,7 @@ + printf("\n"); + + printf("Where keywords specify format of input or output soundfile:\n"); ++ printf(" rate n sample rate (22050, 44100, 48000, etc.)\n"); + printf(" byteorder e endian (e is big or little)\n"); + printf(" channels n n-channel file (1 or 2)\n"); + printf(" format f file format f (see below)\n"); +@@ -239,11 +289,15 @@ + + printf("Currently supported formats are:\n"); + printf("\n"); ++ printf(" raw \n"); + printf(" aiff Audio Interchange File Format\n"); + printf(" aifc AIFF-C File Format\n"); + printf(" next NeXT/Sun Format\n"); + printf(" wave MS RIFF WAVE Format\n"); + printf(" bics Berkeley/IRCAM/CARL Sound File Format\n"); ++ printf(" avr Audio Visual Research File Format\n"); ++ printf(" iff Amiga IFF/8SVX Sound File Format\n"); ++ printf(" nist NIST SPHERE File Format\n"); + printf("\n"); + + exit(EXIT_FAILURE); |