diff options
Diffstat (limited to 'media-sound/squeezelite/files/squeezelite-1.1-gentoo-optional-codecs.patch')
-rw-r--r-- | media-sound/squeezelite/files/squeezelite-1.1-gentoo-optional-codecs.patch | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/media-sound/squeezelite/files/squeezelite-1.1-gentoo-optional-codecs.patch b/media-sound/squeezelite/files/squeezelite-1.1-gentoo-optional-codecs.patch deleted file mode 100644 index dfef099..0000000 --- a/media-sound/squeezelite/files/squeezelite-1.1-gentoo-optional-codecs.patch +++ /dev/null @@ -1,124 +0,0 @@ -diff --git a/decode.c b/decode.c -index 81589a3..6ba6680 100644 ---- a/decode.c -+++ b/decode.c -@@ -103,14 +103,24 @@ void decode_init(log_level level, const char *opt) { - // register codecs - // alc,wma,wmap,wmal,aac,spt,ogg,ogf,flc,aif,pcm,mp3 - i = 0; -+#ifndef SL_NO_AAC - if (!opt || strstr(opt, "aac")) codecs[i++] = register_faad(); -+#endif -+#ifndef SL_NO_OGG - if (!opt || strstr(opt, "ogg")) codecs[i++] = register_vorbis(); -+#endif -+#ifndef SL_NO_FLAC - if (!opt || strstr(opt, "flac")) codecs[i++] = register_flac(); -+#endif - if (!opt || strstr(opt, "pcm")) codecs[i++] = register_pcm(); - - // try mad then mpg for mp3 unless command line option passed -+#ifndef SL_NO_MAD - if ( !opt || strstr(opt, "mp3") || strstr(opt, "mad")) codecs[i] = register_mad(); -+#endif -+#ifndef SL_NO_MPG123 - if ((!opt || strstr(opt, "mp3") || strstr(opt, "mpg")) && !codecs[i]) codecs[i] = register_mpg(); -+#endif - - mutex_create(decode.mutex); - -diff --git a/faad.c b/faad.c -index a2fa14f..f95f94d 100644 ---- a/faad.c -+++ b/faad.c -@@ -20,6 +20,8 @@ - - #include "squeezelite.h" - -+#ifndef SL_NO_AAC -+ - #include <neaacdec.h> - - #define WRAPBUF_LEN 2048 -@@ -575,3 +577,5 @@ struct codec *register_faad(void) { - - return &ret; - } -+ -+#endif -diff --git a/flac.c b/flac.c -index 69e3ba6..5e15171 100644 ---- a/flac.c -+++ b/flac.c -@@ -20,6 +20,8 @@ - - #include "squeezelite.h" - -+#ifndef SL_NO_FLAC -+ - #include <FLAC/stream_decoder.h> - - struct flac { -@@ -214,3 +216,5 @@ struct codec *register_flac(void) { - - return &ret; - } -+ -+#endif -diff --git a/mad.c b/mad.c -index 8bb89f2..631b1b5 100644 ---- a/mad.c -+++ b/mad.c -@@ -20,6 +20,8 @@ - - #include "squeezelite.h" - -+#ifndef SL_NO_MAD -+ - #include <mad.h> - - #define MAD_DELAY 529 -@@ -310,3 +312,5 @@ struct codec *register_mad(void) { - - return &ret; - } -+ -+#endif -diff --git a/mpg.c b/mpg.c -index 92f2121..5ec084b 100644 ---- a/mpg.c -+++ b/mpg.c -@@ -20,6 +20,8 @@ - - #include "squeezelite.h" - -+#ifndef SL_NO_MAD -+ - #include <mpg123.h> - - #define READ_SIZE 512 -@@ -222,3 +224,5 @@ struct codec *register_mpg(void) { - - return &ret; - } -+ -+#endif -diff --git a/vorbis.c b/vorbis.c -index df335c6..67b07a7 100644 ---- a/vorbis.c -+++ b/vorbis.c -@@ -20,6 +20,8 @@ - - #include "squeezelite.h" - -+#ifndef SL_NO_OGG -+ - // automatically select between floating point (preferred) and fixed point libraries: - // NOTE: works with Tremor version here: http://svn.xiph.org/trunk/Tremor, not vorbisidec.1.0.2 currently in ubuntu - -@@ -252,3 +254,5 @@ struct codec *register_vorbis(void) { - - return &ret; - } -+ -+#endif |