diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-12-31 17:49:09 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2006-12-31 17:49:09 +0000 |
commit | 18e57bc60aa1bc342bdb66a8df5a649ce16abd7f (patch) | |
tree | 87cda738d578413a45e4aeef9b4f6d1b400960fe /packages/squeezeclient/files | |
parent | de9b02eb7296b392d3b9f52aa0f30c56fe6a6299 (diff) |
squeezeclient: Add squeeze client (from #1717 with some changes)
Diffstat (limited to 'packages/squeezeclient/files')
-rw-r--r-- | packages/squeezeclient/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/squeezeclient/files/makefile.patch | 57 | ||||
-rw-r--r-- | packages/squeezeclient/files/runfix.patch | 17 | ||||
-rw-r--r-- | packages/squeezeclient/files/varinit.patch | 17 |
4 files changed, 91 insertions, 0 deletions
diff --git a/packages/squeezeclient/files/.mtn2git_empty b/packages/squeezeclient/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/squeezeclient/files/.mtn2git_empty diff --git a/packages/squeezeclient/files/makefile.patch b/packages/squeezeclient/files/makefile.patch new file mode 100644 index 0000000000..8e64a70399 --- /dev/null +++ b/packages/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/packages/squeezeclient/files/runfix.patch b/packages/squeezeclient/files/runfix.patch new file mode 100644 index 0000000000..c2c48095a2 --- /dev/null +++ b/packages/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/packages/squeezeclient/files/varinit.patch b/packages/squeezeclient/files/varinit.patch new file mode 100644 index 0000000000..5844dc67b5 --- /dev/null +++ b/packages/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);
|