[47859] trunk/dports/multimedia/despotify

toby at macports.org toby at macports.org
Sun Mar 8 12:56:26 PDT 2009


Revision: 47859
          http://trac.macports.org/changeset/47859
Author:   toby at macports.org
Date:     2009-03-08 12:56:25 -0700 (Sun, 08 Mar 2009)
Log Message:
-----------
despotify update (#18758)

Modified Paths:
--------------
    trunk/dports/multimedia/despotify/Portfile
    trunk/dports/multimedia/despotify/files/patch-Makefile.diff

Added Paths:
-----------
    trunk/dports/multimedia/despotify/files/patch-Makefile.local.mk.dist.diff
    trunk/dports/multimedia/despotify/files/patch-clients-despotify-local.mk.diff
    trunk/dports/multimedia/despotify/files/patch-lib-local.mk.diff

Modified: trunk/dports/multimedia/despotify/Portfile
===================================================================
--- trunk/dports/multimedia/despotify/Portfile	2009-03-08 19:31:46 UTC (rev 47858)
+++ trunk/dports/multimedia/despotify/Portfile	2009-03-08 19:56:25 UTC (rev 47859)
@@ -4,9 +4,9 @@
 PortSystem          1.0
 
 name                despotify
-version             r761
+version             20090307
 categories          multimedia
-maintainers         mail at carljohancrafoord.se
+maintainers         carljohancrafoord.se:mail
 description         Open source Spotify client
 long_description    An open source Spotify client and gateway to their service
 homepage            http://despotify.se/
@@ -16,23 +16,30 @@
                     port:openssl \
                     port:zlib \
                     port:libvorbis \
-                    port:expat \
-                    port:gstreamer \
-                    port:gst-plugins-base
+                    port:expat
 
-master_sites        sourceforge
-checksums           md5 05a0e497717ad9fb6cc0c7b592f257f6 \
-                    sha1 014679badd64ef392c58502251bcf3cc767dd724 \
-                    rmd160 7ecc7c98aa2b29ea2b08838c6a2bd7ce767fe974
+fetch.type          svn
+svn.url             https://despotify.svn.sourceforge.net/svnroot/despotify/src
+svn.tag             164
 
-patchfiles          patch-Makefile.diff
+worksrcdir          src
+
+patchfiles          patch-Makefile.diff \
+                    patch-Makefile.local.mk.dist.diff \
+                    patch-clients-despotify-local.mk.diff \
+                    patch-lib-local.mk.diff
+
 post-patch {
-    reinplace s|@PREFIX@|${prefix}|g Makefile
+    reinplace s|@PREFIX@|${prefix}|g \
+        ${worksrcpath}/Makefile.local.mk.dist \
+        ${worksrcpath}/clients/despotify/local.mk \
+        ${worksrcpath}/lib/local.mk
 }
 
 use_configure       no
 
-destroot {
-          xinstall -m 0755 ${worksrcpath}/gateway ${destroot}${prefix}/bin
-          xinstall -m 0755 ${worksrcpath}/despotify ${destroot}${prefix}/bin
+pre-destroot {
+    reinplace s|@DESTROOT@|${destroot}|g \
+        ${worksrcpath}/clients/despotify/local.mk \
+        ${worksrcpath}/lib/local.mk
 }

Modified: trunk/dports/multimedia/despotify/files/patch-Makefile.diff
===================================================================
--- trunk/dports/multimedia/despotify/files/patch-Makefile.diff	2009-03-08 19:31:46 UTC (rev 47858)
+++ trunk/dports/multimedia/despotify/files/patch-Makefile.diff	2009-03-08 19:56:25 UTC (rev 47859)
@@ -1,14 +1,11 @@
---- Makefile.orig	2009-03-03 02:19:56.000000000 +0100
-+++ Makefile	2009-03-03 02:23:11.000000000 +0100
-@@ -2,9 +2,9 @@
- # $Id: Makefile 761 2009-02-24 08:20:20Z x $
- # 
- #
--CFLAGS = -Wall -ggdb -DGUI
-+CFLAGS = -Wall -ggdb -DGUI -I at PREFIX@/include
- #CFLAGS = -Wall -ggdb -DGUI -DDEBUG
--LDFLAGS = -lcrypto -lz -lresolv -lexpat -lvorbisfile 
-+LDFLAGS = -lcrypto -lz -lresolv -lexpat -lvorbisfile -L at PREFIX@/lib
+--- Makefile.orig	2009-03-08 00:06:25.000000000 +0100
++++ Makefile	2009-03-08 00:06:42.000000000 +0100
+@@ -46,7 +46,7 @@
  
- CORE_OBJS = aes.o auth.o buffer.o channel.o commands.o dns.o event.o handlers.o keyexchange.o packet.o playlist.o puzzle.o session.o shn.o util.o xml.o
- DESPOTIFY_OBJS = ADMclubbing.o audio.o despotify.o ui-core.o ui-help.o ui-player.o ui-playlist.o ui-search.o ui-userdata.o sndqueue.o
+ 
+ 
+-CLIENTS = clients/despotify clients/gateway clients/simple
++CLIENTS = clients/despotify
+ SUBDIRS = lib $(CLIENTS)
+ 
+ .PHONY: all clean $(SUBDIRS) install uninstall

Added: trunk/dports/multimedia/despotify/files/patch-Makefile.local.mk.dist.diff
===================================================================
--- trunk/dports/multimedia/despotify/files/patch-Makefile.local.mk.dist.diff	                        (rev 0)
+++ trunk/dports/multimedia/despotify/files/patch-Makefile.local.mk.dist.diff	2009-03-08 19:56:25 UTC (rev 47859)
@@ -0,0 +1,10 @@
+--- Makefile.local.mk.dist.orig	2009-03-07 22:40:55.000000000 +0100
++++ Makefile.local.mk.dist	2009-03-07 22:40:56.000000000 +0100
+@@ -15,3 +15,7 @@
+ ## Add more CFLAGS
+ # CFLAGS += -DDEBUG_SNDQUEUE
+ # CFLAGS += -DDEBUG_PACKETS
++CFLAGS += -I at PREFIX@/include
++LDFLAGS += -L at PREFIX@/lib
++
++

Added: trunk/dports/multimedia/despotify/files/patch-clients-despotify-local.mk.diff
===================================================================
--- trunk/dports/multimedia/despotify/files/patch-clients-despotify-local.mk.diff	                        (rev 0)
+++ trunk/dports/multimedia/despotify/files/patch-clients-despotify-local.mk.diff	2009-03-08 19:56:25 UTC (rev 47859)
@@ -0,0 +1,13 @@
+--- clients/despotify/local.mk.orig	2009-03-07 23:17:52.000000000 +0100
++++ clients/despotify/local.mk	2009-03-07 23:18:49.000000000 +0100
+@@ -36,8 +36,8 @@
+ 	rm -f $(DESPOTIFY_OBJS) Makefile.dep
+ 
+ install: despotify 
+-	@echo "Copying despotify binary to /usr/bin/despotify"
+-	$(LT) --mode=install install despotify /usr/bin/despotify
++	@echo "Copying despotify binary to @DESTROOT@@PREFIX@/bin/despotify"
++	$(LT) --mode=install install despotify @DESTROOT@@PREFIX@/bin/despotify
+ 
+ uninstall:
+ 	@echo "Removing despotify..."

Added: trunk/dports/multimedia/despotify/files/patch-lib-local.mk.diff
===================================================================
--- trunk/dports/multimedia/despotify/files/patch-lib-local.mk.diff	                        (rev 0)
+++ trunk/dports/multimedia/despotify/files/patch-lib-local.mk.diff	2009-03-08 19:56:25 UTC (rev 47859)
@@ -0,0 +1,23 @@
+--- lib/local.mk.orig	2009-03-08 01:20:15.000000000 +0100
++++ lib/local.mk	2009-03-08 01:21:51.000000000 +0100
+@@ -5,7 +5,7 @@
+ 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
+ 
+ CFLAGS += -Igstapp/
+-LDFLAGS += -rpath /usr/lib
++LDFLAGS += -rpath @PREFIX@/lib
+ 
+ .PHONY: all clean install uninstall
+ 
+@@ -83,9 +83,8 @@
+ 	$(LT) --mode=clean rm -f $(LIB_OBJS) Makefile.dep
+ 
+ install: libdespotify.la
+-	# install despotify.h /usr/include
+-	$(LT) --mode=install install libdespotify.la /usr/lib/libdespotify.la
+-	ldconfig -n /usr/lib
++	# install despotify.h @DESTROOT@@PREFIX@/include
++	$(LT) --mode=install install libdespotify.la @DESTROOT@@PREFIX@/lib/libdespotify.la
+ 
+ uninstall:
+ 	# rm -f /usr/include/despotify.h 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090308/cd527572/attachment.html>


More information about the macports-changes mailing list