diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/squeezeclient/files | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/squeezeclient/files')
-rw-r--r-- | recipes/squeezeclient/files/makefile.patch | 57 | ||||
-rw-r--r-- | recipes/squeezeclient/files/runfix.patch | 17 | ||||
-rw-r--r-- | recipes/squeezeclient/files/varinit.patch | 17 |
3 files changed, 91 insertions, 0 deletions
diff --git a/recipes/squeezeclient/files/makefile.patch b/recipes/squeezeclient/files/makefile.patch new file mode 100644 index 0000000000..8e64a70399 --- /dev/null +++ b/recipes/squeezeclient/files/makefile.patch @@ -0,0 +1,57 @@ +--- + makefile.linux | 30 +++++++++++++++++------------- + 1 file changed, 17 insertions(+), 13 deletions(-) + +Index: SlimProtoLib/makefile.linux +=================================================================== +--- SlimProtoLib.orig/makefile.linux 2006-12-31 11:09:10.000000000 +0000 ++++ SlimProtoLib/makefile.linux 2006-12-31 12:34:11.000000000 +0000 +@@ -1,6 +1,4 @@ +-CC=gcc +- +-CFLAGS=-Wall -Werror -DSLIMPROTO_DEBUG -g ++CFLAGS+=-Wall -DSLIMPROTO_DEBUG -g + + INCLUDE=-Ilib/portaudio_v18/pa_common -Ilib/portaudio_v18/pablio -Ilib/portmixer/px_common -Isrc + +@@ -20,24 +18,30 @@ SQUEEZESLAVEFILES:=src/squeezeslave/sque + + all : bin/squeezeslave + +-lib/libportaudio.a: $(PORTAUDIOFILES:.c=.o) +- ar cru lib/libportaudio.a $^ +- ranlib lib/libportaudio.a ++LIBVERSION:=3.0.0 + +-lib/libslimproto.a: $(SLIMPROTOFILES:.c=.o) +- ar cru lib/libslimproto.a $^ +- ranlib lib/libslimproto.a ++lib/libportaudio.so.$(LIBVERSION): $(PORTAUDIOFILES:.c=.o) ++ ${CC} $^ $(CFLAGS) $(LDFLAGS) $(INCLUDE) -shared -Wl,-soname,$(@F) -Wl,--as-needed -o $@ ++ ln -s $(@F) lib/libportaudio.so + +-bin/squeezeslave : $(SQUEEZESLAVEFILES:.c=.o) $(PORTMIXERFILES:.c=.o) lib/libslimproto.a lib/libportaudio.a +- ${CC} -o bin/squeezeslave $^ /usr/local/lib/libmad.a /usr/local/lib/libFLAC.a /usr/lib/libvorbisfile.a /usr/lib/libvorbis.a /usr/lib/libogg.a -lpthread -lm ++lib/libslimproto.so.$(LIBVERSION): $(SLIMPROTOFILES:.c=.o) ++ ${CC} $^ $(CFLAGS) $(LDFLAGS) $(INCLUDE) -shared -Wl,-soname,$(@F) -Wl,--as-needed -o $@ ++ ln -s $(@F) lib/libslimproto.so + ++lib/libportmixer.so.$(LIBVERSION): $(PORTMIXERFILES:.c=.o) ++ ${CC} $^ $(CFLAGS) $(LDFLAGS) $(INCLUDE) -shared -Wl,-soname,$(@F) -Wl,--as-needed -o $@ ++ ln -s $(@F) lib/libportmixer.so ++ ++bin/squeezeslave: $(SQUEEZESLAVEFILES:.c=.o) lib/libportaudio.so.$(LIBVERSION) lib/libportmixer.so.$(LIBVERSION) lib/libslimproto.so.$(LIBVERSION) ++ ${CC} -o bin/squeezeslave $(LDFLAGS) $(LDFLAGS) $^ -Llib -lmad -lFLAC -lvorbisfile -lvorbis -logg -lpthread -lm -lslimproto -lportaudio -lportmixer + + clean: + @{ for FILE in $(PORTAUDIOFILES:.c=.o) \ + $(SLIMPROTOFILES:.c=.o) \ + $(SQUEEZESLAVEFILES:.c=.o) \ +- lib/libportaudio.a \ +- lib/libslimproto.a \ ++ lib/libportaudio*.so \ ++ lib/libportmixer*.so \ ++ lib/libslimproto*.so \ + bin/squeezeslave; do \ + test -e $$FILE && echo $$FILE || true; \ + test -e $$FILE && $(RM) $$FILE 2>/dev/null || true; \ diff --git a/recipes/squeezeclient/files/runfix.patch b/recipes/squeezeclient/files/runfix.patch new file mode 100644 index 0000000000..c2c48095a2 --- /dev/null +++ b/recipes/squeezeclient/files/runfix.patch @@ -0,0 +1,17 @@ +--- + src/squeezeslave/squeezeslave.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: SlimProtoLib/src/squeezeslave/squeezeslave.c +=================================================================== +--- SlimProtoLib.orig/src/squeezeslave/squeezeslave.c 2006-12-31 11:09:09.000000000 +0000 ++++ SlimProtoLib/src/squeezeslave/squeezeslave.c 2006-12-31 13:44:04.000000000 +0000 +@@ -41,7 +41,7 @@ char macaddress[6] = { 1, 1, 1, 1, 1, 1 + int main(int argc, char *argv[]) {
+ char *slimserver_address = "127.0.0.1";
+ int output_device_id = -1;
+- char c;
++ int c;
+ int i;
+
+ while (1) {
diff --git a/recipes/squeezeclient/files/varinit.patch b/recipes/squeezeclient/files/varinit.patch new file mode 100644 index 0000000000..5844dc67b5 --- /dev/null +++ b/recipes/squeezeclient/files/varinit.patch @@ -0,0 +1,17 @@ +--- + src/slimaudio/slimaudio_http.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: SlimProtoLib/src/slimaudio/slimaudio_http.c +=================================================================== +--- SlimProtoLib.orig/src/slimaudio/slimaudio_http.c 2006-12-31 11:09:09.000000000 +0000 ++++ SlimProtoLib/src/slimaudio/slimaudio_http.c 2006-12-31 11:16:37.000000000 +0000 +@@ -91,7 +91,7 @@ int slimaudio_http_close(slimaudio_t *au + static void *http_thread(void *ptr) {
+ slimaudio_t *audio = (slimaudio_t *) ptr;
+ #ifdef SLIMPROTO_DEBUG
+- int last_state;
++ int last_state=0;
+ #endif
+
+ pthread_mutex_lock(&audio->http_mutex);
|