Ticket #30635: despotify-20110115.diff
File despotify-20110115.diff, 6.0 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
files/patch-Makefile.diff
1 --- Makefile.orig 2009-03-08 00:06:25.000000000 +01002 +++ Makefile 2009-03-08 00:06:42.000000000 +01003 @@ -46,7 +46,7 @@4 5 6 7 -CLIENTS = clients/despotify clients/gateway clients/simple8 +CLIENTS = clients/despotify9 SUBDIRS = lib $(CLIENTS)10 11 .PHONY: all clean $(SUBDIRS) install uninstall -
files/patch-Makefile.local.mk.dist.diff
1 --- Makefile.local.mk.dist.orig 2009-03-07 22:40:55.000000000 +0100 2 +++ Makefile.local.mk.dist 2009-03-07 22:40:56.000000000 +0100 3 @@ -15,3 +15,7 @@ 4 ## Add more CFLAGS 5 # CFLAGS += -DDEBUG_SNDQUEUE 6 # CFLAGS += -DDEBUG_PACKETS 1 Index: Makefile.local.mk.dist 2 =================================================================== 3 --- Makefile.local.mk.dist (revision 515) 4 +++ Makefile.local.mk.dist (working copy) 5 @@ -31,5 +31,5 @@ 6 7 ## If you're on Mac OS X and have installed libvorbisfile 8 ## via 'port install ..', try uncommenting these lines 9 -# CFLAGS += -I/opt/local/include 10 -# LDFLAGS += -L/opt/local/lib 7 11 +CFLAGS += -I@PREFIX@/include 8 12 +LDFLAGS += -L@PREFIX@/lib 9 +10 + -
files/patch-clients-despotify-local.mk.diff
1 --- clients/despotify/local.mk.orig 2009-03-07 23:17:52.000000000 +01002 +++ clients/despotify/local.mk 2009-03-07 23:18:49.000000000 +01003 @@ -36,8 +36,8 @@4 rm -f $(DESPOTIFY_OBJS) Makefile.dep5 6 install: despotify7 - @echo "Copying despotify binary to /usr/bin/despotify"8 - $(LT) --mode=install install despotify /usr/bin/despotify9 + @echo "Copying despotify binary to @DESTROOT@@PREFIX@/bin/despotify"10 + $(LT) --mode=install install despotify @DESTROOT@@PREFIX@/bin/despotify11 12 uninstall:13 @echo "Removing despotify..." -
files/patch-lib-sndqueue.h.diff
1 Index: lib/sndqueue.h 2 =================================================================== 3 --- lib/sndqueue.h (revision 515) 4 +++ lib/sndqueue.h (working copy) 5 @@ -13,9 +13,12 @@ 6 7 #if defined(__linux__) 8 #include <endian.h> 9 -#endif 10 -#if defined(__FreeBSD__) 11 +#elif defined(__APPLE__) 12 #include <machine/endian.h> 13 + #define __BYTE_ORDER BYTE_ORDER 14 + #define __LITTLE_ENDIAN LITTLE_ENDIAN 15 +#elif defined(__FreeBSD__) 16 + #include <machine/endian.h> 17 #define __BYTE_ORDER _BYTE_ORDER 18 #define __LITTLE_ENDIAN _LITTLE_ENDIAN 19 #endif -
files/patch-lib-local.mk.diff
1 --- lib/local.mk.orig 2009-03-08 01:20:15.000000000 +0100 2 +++ lib/local.mk 2009-03-08 01:21:51.000000000 +0100 3 @@ -5,7 +5,7 @@ 4 LIB_OBJS = aes.lo audio.lo auth.lo buffer.lo channel.lo commands.lo dns.lo esbuf.lo handlers.lo keyexchange.lo packet.lo playlist.lo puzzle.lo session.lo shn.lo sndqueue.lo util.lo xml.lo network.lo despotify.lo sha1.lo hmac.lo 1 Index: lib/local.mk 2 =================================================================== 3 --- lib/local.mk (revision 515) 4 +++ lib/local.mk (working copy) 5 @@ -4,7 +4,7 @@ 5 6 6 CFLAGS += -Igstapp/ 7 LIB_OBJS = aes.lo auth.lo buf.lo cache.lo channel.lo commands.lo dns.lo ezxml.lo handlers.lo keyexchange.lo packet.lo puzzle.lo session.lo shn.lo sndqueue.lo util.lo network.lo despotify.lo sha1.lo hmac.lo xml.lo 8 7 9 -LDFLAGS += -rpath /usr/lib 8 10 +LDFLAGS += -rpath @PREFIX@/lib 11 LDCONFIG = ldconfig 9 12 10 13 .PHONY: all clean install uninstall 11 12 @@ -83,9 +83,8 @@13 $(LT) --mode=clean rm -f $(LIB_OBJS) Makefile.dep14 15 install: libdespotify.la16 - # install despotify.h /usr/include17 - $(LT) --mode=install install libdespotify.la /usr/lib/libdespotify.la18 - ldconfig -n /usr/lib19 + # install despotify.h @DESTROOT@@PREFIX@/include20 + $(LT) --mode=install install libdespotify.la @DESTROOT@@PREFIX@/lib/libdespotify.la21 22 uninstall:23 # rm -f /usr/include/despotify.h -
Portfile
4 4 PortSystem 1.0 5 5 6 6 name despotify 7 version 20090307 8 revision 1 7 version 20110115 9 8 categories multimedia 10 9 maintainers carljohancrafoord.se:mail 11 10 description Open source Spotify client … … 21 20 22 21 fetch.type svn 23 22 svn.url https://despotify.svn.sourceforge.net/svnroot/despotify/src 24 svn.revision 16423 svn.revision 515 25 24 26 25 worksrcdir src 27 26 28 patchfiles patch-Makefile.diff \ 29 patch-Makefile.local.mk.dist.diff \ 30 patch-clients-despotify-local.mk.diff \ 31 patch-lib-local.mk.diff 27 patchfiles patch-Makefile.local.mk.dist.diff \ 28 patch-lib-local.mk.diff \ 29 patch-lib-sndqueue.h.diff 32 30 33 31 post-patch { 34 32 reinplace s|@PREFIX@|${prefix}|g \ 35 33 ${worksrcpath}/Makefile.local.mk.dist \ 36 ${worksrcpath}/clients/despotify/local.mk \37 34 ${worksrcpath}/lib/local.mk 38 35 } 39 36 40 37 use_configure no 41 38 42 pre-destroot { 43 reinplace s|@DESTROOT@|${destroot}|g \ 44 ${worksrcpath}/clients/despotify/local.mk \ 45 ${worksrcpath}/lib/local.mk 46 } 39 build.args CC="${configure.cc} ${configure.cc_archflags}" \ 40 CLIENT_DESPOTIFY=1 41 42 destroot.args INSTALL_PREFIX=${destroot}${prefix}