aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/despotify/Makefile28
-rw-r--r--multimedia/despotify/distinfo2
-rw-r--r--multimedia/despotify/files/patch-Makefile40
-rw-r--r--multimedia/despotify/files/patch-lib__local.mk20
-rw-r--r--multimedia/despotify/pkg-descr3
-rw-r--r--multimedia/despotify/pkg-plist10
7 files changed, 104 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 50f97c4351b7..b225e2cc8bbf 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -35,6 +35,7 @@
SUBDIR += clutter-gst
SUBDIR += cuse4bsd-kmod
SUBDIR += cx88
+ SUBDIR += despotify
SUBDIR += devede
SUBDIR += dirac
SUBDIR += dtv
diff --git a/multimedia/despotify/Makefile b/multimedia/despotify/Makefile
new file mode 100644
index 000000000000..d96b20e66639
--- /dev/null
+++ b/multimedia/despotify/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= despotify
+PORTVERSION= 0.0.${SVN_REV}
+DISTVERSIONPREFIX= svn
+CATEGORIES= multimedia
+MASTER_SITES= CRITICAL
+
+MAINTAINER= ehaupt@FreeBSD.org
+COMMENT= A command-line client for spotify
+
+LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis \
+ ao:${PORTSDIR}/audio/libao
+BUILD_DEPENDS= libtool:${PORTSDIR}/devel/libtool
+
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+
+SVN_REV= 521
+
+WRKSRC= ${WRKDIR}/${PORTNAME}/src
+
+CFLAGS+= -L${LOCALBASE}/lib -I${LOCALBASE}/include
+LDFLAGS+= -lpthread -lao -L${LOCALBASE}/lib
+
+MAKE_ENV+= V=1 LDFLAGS="${LDFLAGS}" INSTALL_PREFIX=${PREFIX}
+
+.include <bsd.port.mk>
diff --git a/multimedia/despotify/distinfo b/multimedia/despotify/distinfo
new file mode 100644
index 000000000000..fd22953ea7d4
--- /dev/null
+++ b/multimedia/despotify/distinfo
@@ -0,0 +1,2 @@
+SHA256 (despotify-svn0.0.521.tar.gz) = c6e331d0d6f07a5b6c53064c4fd9028ee91e044a6e8bce4ebb5cb54eb71896bd
+SIZE (despotify-svn0.0.521.tar.gz) = 10882561
diff --git a/multimedia/despotify/files/patch-Makefile b/multimedia/despotify/files/patch-Makefile
new file mode 100644
index 000000000000..738406c36206
--- /dev/null
+++ b/multimedia/despotify/files/patch-Makefile
@@ -0,0 +1,40 @@
+--- ./Makefile.orig 2012-10-03 13:03:34.000000000 +0200
++++ ./Makefile 2012-10-03 13:21:19.000000000 +0200
+@@ -5,8 +5,8 @@
+
+ export
+
+-CFLAGS = -Wall -Wextra -ggdb -std=gnu99
+-LDFLAGS = -lz -lvorbisfile
++CFLAGS += -Wall -Wextra -ggdb -std=gnu99
++LDFLAGS += -lz -lvorbisfile
+
+ LD = $(CC)
+
+@@ -69,22 +69,22 @@
+
+ clean:
+ for dir in $(SUBDIRS); do \
+- $(MAKE) -C $$dir -f local.mk clean || exit $$?; \
++ $(MAKE_ENV) $(MAKE) -C $$dir -f local.mk clean || exit $$?; \
+ done
+
+ clients: $(CLIENTS)
+ $(CLIENTS): lib
+ $(SUBDIRS):
+- $(MAKE) $(SILENTDIR) -C $@ -f local.mk
++ $(MAKE_ENV) $(MAKE) $(SILENTDIR) -C $@ -f local.mk
+
+ install: $(SUBDIRS)
+ for dir in $(SUBDIRS); do \
+- $(MAKE) -C $$dir -f local.mk install || exit $$?; \
++ $(MAKE_ENV) $(MAKE) -C $$dir -f local.mk install || exit $$?; \
+ done
+
+ uninstall:
+ for dir in $(SUBDIRS); do \
+- $(MAKE) -C $$dir -f local.mk uninstall || exit $$?; \
++ $(MAKE_ENV) $(MAKE) -C $$dir -f local.mk uninstall || exit $$?; \
+ done
+
+ Makefile.local.mk:
diff --git a/multimedia/despotify/files/patch-lib__local.mk b/multimedia/despotify/files/patch-lib__local.mk
new file mode 100644
index 000000000000..b1f27372ca97
--- /dev/null
+++ b/multimedia/despotify/files/patch-lib__local.mk
@@ -0,0 +1,20 @@
+--- ./lib/local.mk.orig 2012-10-03 13:21:24.000000000 +0200
++++ ./lib/local.mk 2012-10-03 13:22:42.000000000 +0200
+@@ -49,14 +49,13 @@
+ $(LT) --mode=clean rm -f $(LIB_OBJS) Makefile.dep
+
+ install: libdespotify.la
+- install -d $(INSTALL_PREFIX)/lib/pkgconfig
++ install -d $(INSTALL_PREFIX)/libdata/pkgconfig
+
+ $(LT) --mode=install install libdespotify.la $(INSTALL_PREFIX)/lib/libdespotify.la
+- $(LDCONFIG) -n $(INSTALL_PREFIX)/lib
+ install -d $(INSTALL_PREFIX)/include/
+ install despotify.h $(INSTALL_PREFIX)/include/
+- install -d $(INSTALL_PREFIX)/lib/pkgconfig/
+- install despotify.pc $(INSTALL_PREFIX)/lib/pkgconfig/despotify.pc
++ install -d $(INSTALL_PREFIX)/libdata/pkgconfig/
++ install despotify.pc $(INSTALL_PREFIX)/libdata/pkgconfig/despotify.pc
+
+ uninstall:
+ $(LT) --mode=uninstall rm -f $(INSTALL_PREFIX)/lib/libdespotify.la
diff --git a/multimedia/despotify/pkg-descr b/multimedia/despotify/pkg-descr
new file mode 100644
index 000000000000..5a667b141145
--- /dev/null
+++ b/multimedia/despotify/pkg-descr
@@ -0,0 +1,3 @@
+A command-line client for spotify.
+
+WWW: http://despotify.se/
diff --git a/multimedia/despotify/pkg-plist b/multimedia/despotify/pkg-plist
new file mode 100644
index 000000000000..680e3f330732
--- /dev/null
+++ b/multimedia/despotify/pkg-plist
@@ -0,0 +1,10 @@
+bin/despotify
+bin/despotify-gateway
+bin/despotify-simple
+include/despotify.h
+lib/libdespotify.a
+lib/libdespotify.la
+lib/libdespotify.so
+lib/libdespotify.so.0
+libdata/pkgconfig/despotify.pc
+@dirrmtry libdata/pkgconfig