summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2007-01-08 18:53:14 +0000
committerAlexis Ballier <aballier@gentoo.org>2007-01-08 18:53:14 +0000
commit1d1d79a52395cd7d4e2656170cdc48bb0ff65877 (patch)
treea5846029d3b2be441761bc8eeb4f9486049e1b1f /media-sound/bossogg
parentecj-3.1 and ecj-3.2 fail to compile Netbeans (diff)
downloadgentoo-2-1d1d79a52395cd7d4e2656170cdc48bb0ff65877.tar.gz
gentoo-2-1d1d79a52395cd7d4e2656170cdc48bb0ff65877.tar.bz2
gentoo-2-1d1d79a52395cd7d4e2656170cdc48bb0ff65877.zip
Flac 1.1.3 patch from Josh Coalson, small fixes
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'media-sound/bossogg')
-rw-r--r--media-sound/bossogg/ChangeLog8
-rw-r--r--media-sound/bossogg/bossogg-0.13.6-r3.ebuild9
-rw-r--r--media-sound/bossogg/files/bossogg-0.13.6+flac-1.1.3.patch237
-rw-r--r--media-sound/bossogg/files/bossogg-0.13.6-metadata.patch11
-rw-r--r--media-sound/bossogg/files/bossogg-0.13.6-sigkill.patch11
-rw-r--r--media-sound/bossogg/files/digest-bossogg-0.13.52
6 files changed, 274 insertions, 4 deletions
diff --git a/media-sound/bossogg/ChangeLog b/media-sound/bossogg/ChangeLog
index 29a5d08eb68f..43275c87d277 100644
--- a/media-sound/bossogg/ChangeLog
+++ b/media-sound/bossogg/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/bossogg
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/bossogg/ChangeLog,v 1.21 2007/01/05 17:24:30 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/bossogg/ChangeLog,v 1.22 2007/01/08 18:53:14 aballier Exp $
+
+ 08 Jan 2007; Alexis Ballier <aballier@gentoo.org>
+ +files/bossogg-0.13.6+flac-1.1.3.patch,
+ +files/bossogg-0.13.6-metadata.patch, +files/bossogg-0.13.6-sigkill.patch,
+ bossogg-0.13.6-r3.ebuild:
+ Flac 1.1.3 patch from Josh Coalson, small fixes
05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> bossogg-0.13.5.ebuild,
bossogg-0.13.6-r2.ebuild, bossogg-0.13.6-r3.ebuild:
diff --git a/media-sound/bossogg/bossogg-0.13.6-r3.ebuild b/media-sound/bossogg/bossogg-0.13.6-r3.ebuild
index 3648e034258a..558caa56321d 100644
--- a/media-sound/bossogg/bossogg-0.13.6-r3.ebuild
+++ b/media-sound/bossogg/bossogg-0.13.6-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/bossogg/bossogg-0.13.6-r3.ebuild,v 1.6 2007/01/05 17:24:30 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/bossogg/bossogg-0.13.6-r3.ebuild,v 1.7 2007/01/08 18:53:14 aballier Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
@@ -19,14 +19,14 @@ LICENSE="GPL-2"
DEPEND=">=media-libs/libao-0.8.3
media-libs/libshout
- flac? ( ~media-libs/flac-1.1.2 )
+ flac? ( >=media-libs/flac-1.1.2 )
vorbis? ( media-libs/libvorbis )
mad? ( media-libs/libmad
media-libs/id3lib )
=dev-db/sqlite-2*"
RDEPEND="${DEPEND}
- dev-python/pysqlite"
+ <dev-python/pysqlite-2"
src_unpack() {
unpack ${A}
@@ -34,6 +34,9 @@ src_unpack() {
epatch "${FILESDIR}/${P}-Makefile.patch"
epatch "${FILESDIR}/${P}-gcc4.patch"
+ epatch "${FILESDIR}/${P}+flac-1.1.3.patch"
+ epatch "${FILESDIR}/${P}-metadata.patch"
+ epatch "${FILESDIR}/${P}-sigkill.patch"
eautoreconf
}
diff --git a/media-sound/bossogg/files/bossogg-0.13.6+flac-1.1.3.patch b/media-sound/bossogg/files/bossogg-0.13.6+flac-1.1.3.patch
new file mode 100644
index 000000000000..0ddc0b17d4c1
--- /dev/null
+++ b/media-sound/bossogg/files/bossogg-0.13.6+flac-1.1.3.patch
@@ -0,0 +1,237 @@
+diff -ru --exclude=Makefile.in --exclude=Makefile bossogg-0.13.6/boss3/bossao/bossao.c bossogg-0.13.6-b2/boss3/bossao/bossao.c
+--- bossogg-0.13.6/boss3/bossao/bossao.c 2004-04-01 17:44:26.000000000 -0800
++++ bossogg-0.13.6-b2/boss3/bossao/bossao.c 2006-10-30 23:25:47.000000000 -0800
+@@ -46,7 +46,11 @@
+ #endif
+
+ #ifdef HAVE_FLAC
++#ifdef LEGACY_FLAC
+ #include <FLAC/file_decoder.h>
++#else
++#include <FLAC/stream_decoder.h>
++#endif
+ #include "flac.h"
+ #endif
+
+diff -ru --exclude=Makefile.in --exclude=Makefile bossogg-0.13.6/boss3/bossao/bossao.h bossogg-0.13.6-b2/boss3/bossao/bossao.h
+--- bossogg-0.13.6/boss3/bossao/bossao.h 2004-04-01 17:44:26.000000000 -0800
++++ bossogg-0.13.6-b2/boss3/bossao/bossao.h 2006-10-30 23:17:54.000000000 -0800
+@@ -38,6 +38,14 @@
+
+ #define RATE 44100
+
++#if defined(HAVE_FLAC) && !defined(LEGACY_FLAC)
++#include <FLAC/export.h>
++// FLAC 1.1.3 has FLAC_API_VERSION_CURRENT == 8 */
++#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
++#define LEGACY_FLAC
++#endif
++#endif
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+@@ -50,7 +58,11 @@
+ struct mp3_t *mp3;
+ #endif
+ #ifdef HAVE_FLAC
++#ifdef LEGACY_FLAC
+ struct FLAC__FileDecoder *flac;
++#else
++ struct FLAC__StreamDecoder *flac;
++#endif
+ #endif
+ } songlib_s;
+
+diff -ru --exclude=Makefile.in --exclude=Makefile bossogg-0.13.6/boss3/bossao/flac.c bossogg-0.13.6-b2/boss3/bossao/flac.c
+--- bossogg-0.13.6/boss3/bossao/flac.c 2004-04-01 17:44:26.000000000 -0800
++++ bossogg-0.13.6-b2/boss3/bossao/flac.c 2006-10-30 23:26:07.000000000 -0800
+@@ -22,7 +22,19 @@
+ #include <string.h>
+ #include <Python.h>
+
++#if !defined(LEGACY_FLAC)
++#include <FLAC/export.h>
++// FLAC 1.1.3 has FLAC_API_VERSION_CURRENT == 8 */
++#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
++#define LEGACY_FLAC
++#endif
++#endif
++
++#ifdef LEGACY_FLAC
+ #include <FLAC/file_decoder.h>
++#else
++#include <FLAC/stream_decoder.h>
++#endif
+ #include <FLAC/metadata.h>
+ #include <ao/ao.h>
+ #include <pthread.h>
+@@ -32,15 +44,17 @@
+ #include "bossao.h"
+ #include "flac.h"
+
+-static FLAC__bool eof_callback (const FLAC__SeekableStreamDecoder *decoder, void *client_data)
+-{
+- //printf ("FLAC got eof\n");
+-}
+-
++#ifdef LEGACY_FLAC
+ static FLAC__StreamDecoderWriteStatus write_callback (const FLAC__FileDecoder *decoder,
+ const FLAC__Frame *frame,
+ const FLAC__int32 *const buffer[],
+ void *client_data)
++#else
++static FLAC__StreamDecoderWriteStatus write_callback (const FLAC__StreamDecoder *decoder,
++ const FLAC__Frame *frame,
++ const FLAC__int32 *const buffer[],
++ void *client_data)
++#endif
+ {
+ //printf ("in write\n");
+ size_t size = frame->header.blocksize * frame->header.channels;
+@@ -76,16 +90,28 @@
+ return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;
+ }
+
++#ifdef LEGACY_FLAC
+ static void metadata_callback (const FLAC__FileDecoder *decoder,
+ const FLAC__StreamMetadata *metadata,
+ void *client_data)
++#else
++static void metadata_callback (const FLAC__StreamDecoder *decoder,
++ const FLAC__StreamMetadata *metadata,
++ void *client_data)
++#endif
+ {
+ //printf ("Doing nothing in metadata callback\n");
+ }
+
++#ifdef LEGACY_FLAC
+ static void error_callback (const FLAC__FileDecoder *decoder,
+ const FLAC__StreamDecoderErrorStatus status,
+ void *client_data)
++#else
++static void error_callback (const FLAC__StreamDecoder *decoder,
++ const FLAC__StreamDecoderErrorStatus status,
++ void *client_data)
++#endif
+ {
+ printf ("A FLAC error occured\n");
+ }
+@@ -93,9 +119,15 @@
+ void *prepare_flac (song_s *song, char *filename)
+ {
+ //song->songlib->flac = malloc (sizeof (FLAC__FileDecoder));
++#ifdef LEGACY_FLAC
+ song->songlib->flac = FLAC__file_decoder_new ();
+ FLAC__FileDecoder *decoder = (FLAC__FileDecoder *)song->songlib->flac;
++#else
++ song->songlib->flac = FLAC__stream_decoder_new ();
++ FLAC__StreamDecoder *decoder = (FLAC__StreamDecoder *)song->songlib->flac;
++#endif
+
++#ifdef LEGACY_FLAC
+ /* callbacks here? */
+ FLAC__file_decoder_set_write_callback (decoder, write_callback);
+ FLAC__file_decoder_set_metadata_callback (decoder, metadata_callback);
+@@ -108,13 +140,21 @@
+ FLAC__SeekableStreamDecoderState state = FLAC__file_decoder_init (decoder);
+ //printf ("inited\n");
+ if (state != FLAC__FILE_DECODER_OK) {
+- printf ("Problem initizlizing FLAC file decoder: %d", state);
++ printf ("Problem initializing FLAC file decoder: %d", state);
+ if (state == FLAC__FILE_DECODER_ALREADY_INITIALIZED)
+ printf ("already inited\n");
+ if (state == FLAC__FILE_DECODER_SEEKABLE_STREAM_DECODER_ERROR)
+ printf ("seekable decoder error\n");
+ return NULL;
+ }
++#else
++ FLAC__StreamDecoderInitStatus init_status = FLAC__stream_decoder_init_file (decoder, filename, write_callback, metadata_callback, error_callback, song);
++ //printf ("inited\n");
++ if (init_status != FLAC__STREAM_DECODER_INIT_STATUS_OK) {
++ printf ("Problem initializing FLAC decoder: %s\n", FLAC__StreamDecoderInitStatusString[init_status]);
++ return NULL;
++ }
++#endif
+
+ FLAC__Metadata_SimpleIterator *it = FLAC__metadata_simple_iterator_new ();
+ if (!FLAC__metadata_simple_iterator_init (it, filename, 1, 0)) {
+@@ -142,12 +182,22 @@
+
+ int destroy_flac (song_s *song)
+ {
++#ifdef LEGACY_FLAC
+ FLAC__FileDecoder *decoder = (FLAC__FileDecoder *)song->songlib->flac;
++#else
++ FLAC__StreamDecoder *decoder = (FLAC__StreamDecoder *)song->songlib->flac;
++#endif
+
+ if (decoder != NULL) {
++#ifdef LEGACY_FLAC
+ FLAC__file_decoder_finish (decoder);
+ /* seperate this somehow? */
+ FLAC__file_decoder_delete (decoder);
++#else
++ FLAC__stream_decoder_finish (decoder);
++ /* seperate this somehow? */
++ FLAC__stream_decoder_delete (decoder);
++#endif
+ //free (decoder);
+ decoder = NULL;
+ }
+@@ -157,15 +207,30 @@
+
+ long chunk_play_flac (song_s *song, char *buffer)
+ {
++#ifdef LEGACY_FLAC
+ FLAC__FileDecoder *decoder = (FLAC__FileDecoder *)song->songlib->flac;
++#else
++ FLAC__StreamDecoder *decoder = (FLAC__StreamDecoder *)song->songlib->flac;
++#endif
+ //printf ("trying to play a chunk %x\n", decoder);
++#ifdef LEGACY_FLAC
+ FLAC__file_decoder_process_single (decoder);
++#else
++ FLAC__stream_decoder_process_single (decoder);
++#endif
+ //printf ("done chunking\n");
+
++#ifdef LEGACY_FLAC
+ if (FLAC__file_decoder_get_state (decoder) == FLAC__FILE_DECODER_END_OF_FILE) {
+ //printf ("flac reached end of file\n");
+ return 0;
+ }
++#else
++ if (FLAC__stream_decoder_get_state (decoder) == FLAC__STREAM_DECODER_END_OF_STREAM) {
++ //printf ("flac reached end of file\n");
++ return 0;
++ }
++#endif
+
+ return 1;
+ }
+diff -ru --exclude=Makefile.in --exclude=Makefile bossogg-0.13.6/boss3/bossao/flac.h bossogg-0.13.6-b2/boss3/bossao/flac.h
+--- bossogg-0.13.6/boss3/bossao/flac.h 2004-04-01 17:44:26.000000000 -0800
++++ bossogg-0.13.6-b2/boss3/bossao/flac.h 2006-10-30 16:59:06.000000000 -0800
+@@ -17,8 +17,20 @@
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++#if !defined(LEGACY_FLAC)
++#include <FLAC/export.h>
++// FLAC 1.1.3 has FLAC_API_VERSION_CURRENT == 8 */
++#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
++#define LEGACY_FLAC
++#endif
++#endif
++
+ typedef struct flac_t {
++#ifdef LEGACY_FLAC
+ FLAC__FileDecoder *decoder;
++#else
++ FLAC__StreamDecoder *decoder;
++#endif
+
+ } flac_s;
+
diff --git a/media-sound/bossogg/files/bossogg-0.13.6-metadata.patch b/media-sound/bossogg/files/bossogg-0.13.6-metadata.patch
new file mode 100644
index 000000000000..429431bce639
--- /dev/null
+++ b/media-sound/bossogg/files/bossogg-0.13.6-metadata.patch
@@ -0,0 +1,11 @@
+--- bossogg-0.13.6/boss3/metadata/Makefile.am.old 2006-12-09 14:23:39.000000000 +0100
++++ bossogg-0.13.6/boss3/metadata/Makefile.am 2006-12-09 14:23:48.000000000 +0100
+@@ -10,7 +10,7 @@
+
+ python_LTLIBRARIES=_id3.la
+
+-_id3_la_LDFLAGS=-module @METADATA_LIBS@
++_id3_la_LDFLAGS=-module
+ _id3_la_CFLAGS=-I../bossao
+ _id3_la_CXXFLAGS=-I../bossao
+ _id3_la_SOURCES=id3.h id3.c id3_wrap.c ${USE_OGG} ${USE_ID3}
diff --git a/media-sound/bossogg/files/bossogg-0.13.6-sigkill.patch b/media-sound/bossogg/files/bossogg-0.13.6-sigkill.patch
new file mode 100644
index 000000000000..c0e915ac16d5
--- /dev/null
+++ b/media-sound/bossogg/files/bossogg-0.13.6-sigkill.patch
@@ -0,0 +1,11 @@
+--- bossogg-0.13.6/bossogg.old 2007-01-08 19:27:24.000000000 +0100
++++ bossogg-0.13.6/bossogg 2007-01-08 19:27:55.000000000 +0100
+@@ -214,8 +214,6 @@
+ interfaces = []
+
+ #Setup signal handlers
+- signal.signal(signal.SIGKILL, stopBoss)
+- signal.signal(signal.SIGSTOP, stopBoss)
+ signal.signal(signal.SIGQUIT, stopBoss)
+ signal.signal(signal.SIGTERM, stopBoss)
+ signal.signal(signal.SIGINT, stopBoss)
diff --git a/media-sound/bossogg/files/digest-bossogg-0.13.5 b/media-sound/bossogg/files/digest-bossogg-0.13.5
index 50e39bfebfdc..f1ee88e84881 100644
--- a/media-sound/bossogg/files/digest-bossogg-0.13.5
+++ b/media-sound/bossogg/files/digest-bossogg-0.13.5
@@ -1 +1,3 @@
MD5 8ce79ef7c1aef04b2bcf9d7907967462 bossogg-0.13.5.tar.gz 333613
+RMD160 d9057147c138737297a983aa7601ddfffde12511 bossogg-0.13.5.tar.gz 333613
+SHA256 2067732f1615eb4ff261d898d75015096fa0574ef84a0453efd2b820911d91ec bossogg-0.13.5.tar.gz 333613