Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=e5c784b836a009d9ff1501498cec83ac51ee41e1

commit e5c784b836a009d9ff1501498cec83ac51ee41e1
Author: crazy <[EMAIL PROTECTED]>
Date:   Wed Apr 23 22:01:47 2008 +0200

vorbis-tools-1.2.0-2-i686
* release bump
* closes FS#3032 in -current

diff --git a/source/multimedia/vorbis-tools/FrugalBuild 
b/source/multimedia/vorbis-tools/FrugalBuild
index 456d213..c5149e6 100644
--- a/source/multimedia/vorbis-tools/FrugalBuild
+++ b/source/multimedia/vorbis-tools/FrugalBuild
@@ -4,15 +4,16 @@

pkgname=vorbis-tools
pkgver=1.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Tools to play, encode and manage Ogg Vorbis files"
url="http://www.vorbis.com/";
-depends=('libvorbis' 'libao' 'curl' 'zlib' 'flac' 'speex')
+depends=('libvorbis' 'libao' 'curl' 'zlib' 'flac' 'speex>=1.2beta3.2')
groups=('multimedia')
archs=('i686' 'x86_64')
#up2date="lynx -dump 'http://downloads.xiph.org/releases/vorbis/?C=M;O=D'|grep 
'/vorbis-tools.*\.tar\.*'|sed -n 's/.*-\(.*\)\.tar\..*/\1/; 1 p'"
up2date="lynx -dump http://www.xiph.org/downloads/|grep -m1 'vorbis-tools'|sed 
's/.* \(.*\) .*.tar.gz/\1/'"
-source=(http://downloads.xiph.org/releases/vorbis/$pkgname-$pkgver.tar.gz)
-sha1sums=('c5c5ee4637ab8c9fc953d203663b7264432f874a')
+source=(http://downloads.xiph.org/releases/vorbis/$pkgname-$pkgver.tar.gz 
speex-sec.patch)
+sha1sums=('c5c5ee4637ab8c9fc953d203663b7264432f874a' \
+          '0af79745d9ce86fd2b550eaf96fdde2c16f2a9fa')

# optimization OK
diff --git a/source/multimedia/vorbis-tools/speex-sec.patch 
b/source/multimedia/vorbis-tools/speex-sec.patch
new file mode 100644
index 0000000..f3a0166
--- /dev/null
+++ b/source/multimedia/vorbis-tools/speex-sec.patch
@@ -0,0 +1,138 @@
+Index: vorbis-tools/ogg123/speex_format.c
+===================================================================
+--- vorbis-tools/ogg123/speex_format.c (revision 12185)
++++ vorbis-tools/ogg123/speex_format.c (revision 14728)
+@@ -104,5 +104,5 @@
+
+   len = source->transport->peek(source, buf, sizeof(char), 36);
+-
++
+   if (len >= 32 && memcmp(buf, "OggS", 4) == 0
+       && memcmp(buf+28, "Speex   ", 8) == 0) /* 3 trailing spaces */
+@@ -182,5 +182,5 @@
+
+     ret = read_speex_header(decoder);
+-
++
+     if (!ret) {
+       *eos = 1;
+@@ -201,5 +201,5 @@
+     char *data;
+     int i, j, nb_read;
+-
++
+     /* First see if there is anything left in the output buffer and
+        empty it out */
+@@ -210,5 +210,5 @@
+
+       to_copy = priv->output_left < to_copy ? priv->output_left : to_copy;
+-
++
+       /* Integerify it! */
+       for (i = 0; i < to_copy; i++)
+@@ -218,5 +218,5 @@
+       priv->output_start += to_copy;
+       priv->output_left -= to_copy;
+-
++
+       priv->currentsample += to_copy / audio_fmt->channels;
+
+@@ -225,9 +225,9 @@
+       float *temp_output = priv->output;
+       /* Decode some more samples */
+-
++
+       /*Copy Ogg packet to Speex bitstream*/
+       speex_bits_read_from(&priv->bits, (char*)priv->op.packet,
+                          priv->op.bytes);
+-
++
+       for (j = 0;j < priv->frames_per_packet; j++) {
+       /*Decode frame*/
+@@ -258,5 +258,5 @@
+     } else if (!priv->eof) {
+       /* Finally, pull in some more data and try again on the next pass */
+-
++
+       /*Get the ogg buffer for writing*/
+       data = ogg_sync_buffer(&priv->oy, 200);
+@@ -275,5 +275,5 @@
+     }
+   }
+-
++
+   return bytes_requested - nbytes;
+ }
+@@ -412,5 +412,5 @@
+
+   cb->printf_metadata(callback_arg, 3, _("Encoded by: %s"), temp);
+-
++
+
+   /* Parse out user comments */
+@@ -441,5 +441,5 @@
+       return;
+     }
+-
++
+     if (temp_len < len + 1) {
+       temp_len = len + 1;
+@@ -450,5 +450,5 @@
+     strncpy(temp, c, len);
+     temp[len] = '\0';
+-
++
+     print_vorbis_comment(temp, cb, callback_arg);
+
+@@ -470,5 +470,5 @@
+    SpeexCallback callback;
+    int enhance = ENHANCE_AUDIO;
+-
++
+    *header = speex_packet_to_header((char*)op->packet, op->bytes);
+    if (!*header) {
+@@ -476,5 +476,5 @@
+      return NULL;
+    }
+-   if ((*header)->mode >= SPEEX_NB_MODES) {
++   if ((*header)->mode >= SPEEX_NB_MODES || (*header)->mode < 0) {
+      cb->printf_error(callback_arg, ERROR,
+                     _("Mode number %d does not (any longer) exist in this 
version"),
+@@ -485,5 +485,5 @@
+    modeID = (*header)->mode;
+    mode = speex_mode_list[modeID];
+-
++
+    if (mode->bitstream_version < (*header)->mode_bitstream_version) {
+      cb->printf_error(callback_arg, ERROR, _("The file was encoded with a 
newer version of Speex.\n You need to upgrade in order to play it.\n"));
+@@ -494,9 +494,9 @@
+      return NULL;
+    }
+-
++
+    st = speex_decoder_init(mode);
+    speex_decoder_ctl(st, SPEEX_SET_ENH, &enhance);
+    speex_decoder_ctl(st, SPEEX_GET_FRAME_SIZE, frame_size);
+-
++
+    callback.callback_id = SPEEX_INBAND_STEREO;
+    callback.func = speex_std_stereo_request_handler;
+@@ -522,9 +522,9 @@
+     /*Get the ogg buffer for writing*/
+     data = ogg_sync_buffer(&priv->oy, 200);
+-
++
+     /*Read bitstream from input file*/
+     nb_read = trans->read(decoder->source, data, sizeof(char), 200);
+     ogg_sync_wrote(&priv->oy, nb_read);
+-
++
+     /*Loop for all complete pages we got (most likely only one)*/
+     while (ogg_sync_pageout(&priv->oy, &priv->og)==1) {
+@@ -534,5 +534,5 @@
+       stream_init = 1;
+       }
+-
++
+       /*Add page to the bitstream*/
+       ogg_stream_pagein(&priv->os, &priv->og);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to