1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Add despotify, a command-line client for spotify.

This commit is contained in:
Emanuel Haupt 2012-10-03 19:33:21 +00:00
parent fae5efae59
commit 00b1a7722a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305219
7 changed files with 104 additions and 0 deletions

View File

@ -35,6 +35,7 @@
SUBDIR += clutter-gst
SUBDIR += cuse4bsd-kmod
SUBDIR += cx88
SUBDIR += despotify
SUBDIR += devede
SUBDIR += dirac
SUBDIR += dtv

View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (despotify-svn0.0.521.tar.gz) = c6e331d0d6f07a5b6c53064c4fd9028ee91e044a6e8bce4ebb5cb54eb71896bd
SIZE (despotify-svn0.0.521.tar.gz) = 10882561

View File

@ -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:

View File

@ -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

View File

@ -0,0 +1,3 @@
A command-line client for spotify.
WWW: http://despotify.se/

View File

@ -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