aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2008-01-25 19:51:49 +0800
committerdanfe <danfe@FreeBSD.org>2008-01-25 19:51:49 +0800
commit915ad6fab902d61dee8765ca31f1e0fc53313316 (patch)
tree4518ba72d95dcc93a161416795db81a38c3339d2 /audio
parent374086dc920fa18d97f9555f5051320bfa6cd0bc (diff)
downloadfreebsd-ports-gnome-915ad6fab902d61dee8765ca31f1e0fc53313316.tar.gz
freebsd-ports-gnome-915ad6fab902d61dee8765ca31f1e0fc53313316.tar.zst
freebsd-ports-gnome-915ad6fab902d61dee8765ca31f1e0fc53313316.zip
Add port of scmpc, a client for MPD which submits your tracks to
Audioscrobbler. Submitted by: Pavel Motyrev <legioner.r(at)gmail.com> Patches obtained from: OpenBSD
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/scmpc/Makefile32
-rw-r--r--audio/scmpc/distinfo3
-rw-r--r--audio/scmpc/files/patch-Makefile.in11
-rw-r--r--audio/scmpc/files/patch-src_audioscrobbler.c11
-rw-r--r--audio/scmpc/files/patch-src_libmpd.c10
-rw-r--r--audio/scmpc/files/patch-src_mpd.c10
-rw-r--r--audio/scmpc/pkg-descr13
8 files changed, 91 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 9f00c5bdda7d..0367829fd510 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -566,6 +566,7 @@
SUBDIR += s3mod
SUBDIR += sbagen
SUBDIR += schism
+ SUBDIR += scmpc
SUBDIR += scrobbler
SUBDIR += sdl_mixer
SUBDIR += sdl_sound
diff --git a/audio/scmpc/Makefile b/audio/scmpc/Makefile
new file mode 100644
index 000000000000..869072e7cb2f
--- /dev/null
+++ b/audio/scmpc/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: scmpc
+# Date created: January 16, 2007
+# Whom: Pavel Motyrev <legioner.r@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= scmpc
+PORTVERSION= 0.2.2
+CATEGORIES= audio
+MASTER_SITES= BERLIOS
+
+MAINTAINER= legioner.r@gmail.com
+COMMENT= An Audioscrobbler client for MPD
+
+LIB_DEPENDS= argtable2.1:${PORTSDIR}/devel/argtable \
+ confuse.0:${PORTSDIR}/devel/libconfuse \
+ daemon.0:${PORTSDIR}/devel/libdaemon \
+ curl.4:${PORTSDIR}/ftp/curl
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+MAN1= scmpc.1
+PLIST_FILES= bin/scmpc share/scmpc/scmpc.conf
+PLIST_DIRS= share/scmpc
+
+.include <bsd.port.mk>
diff --git a/audio/scmpc/distinfo b/audio/scmpc/distinfo
new file mode 100644
index 000000000000..54d9b225ad62
--- /dev/null
+++ b/audio/scmpc/distinfo
@@ -0,0 +1,3 @@
+MD5 (scmpc-0.2.2.tar.bz2) = f42482e4dbf398df92a36d5610b403e5
+SHA256 (scmpc-0.2.2.tar.bz2) = 38d5992abd0b4ee55f9c7e40e979c56e90c685216e9b61fc8675e2ddece562de
+SIZE (scmpc-0.2.2.tar.bz2) = 72561
diff --git a/audio/scmpc/files/patch-Makefile.in b/audio/scmpc/files/patch-Makefile.in
new file mode 100644
index 000000000000..b1f8506e1a96
--- /dev/null
+++ b/audio/scmpc/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Wed Jan 16 12:48:28 2008
++++ Makefile.in Sun Dec 3 02:59:18 2006
+@@ -11,7 +11,7 @@
+ .SUFFIXES: .c .o
+
+ CC := @CC@
+-CFLAGS := @CFLAGS@
++CFLAGS := @CFLAGS@ @libcurl_CFLAGS@ @confuse_CFLAGS@ @libdaemon_CFLAGS@
+ LDFLAGS := @LDFLAGS@
+ LIBS := @LIBS@ @libcurl_LIBS@ @confuse_LIBS@ @libdaemon_LIBS@
+ LIBOBJS := @LIBOBJS@
diff --git a/audio/scmpc/files/patch-src_audioscrobbler.c b/audio/scmpc/files/patch-src_audioscrobbler.c
new file mode 100644
index 000000000000..64539cc8ab2f
--- /dev/null
+++ b/audio/scmpc/files/patch-src_audioscrobbler.c
@@ -0,0 +1,11 @@
+--- src/audioscrobbler.c.orig Fri Jun 22 02:50:36 2007
++++ src/audioscrobbler.c Fri Jun 22 02:50:52 2007
+@@ -743,6 +743,8 @@ static void queue_load(void)
+ }
+
+ while (getline(&line, &buffer_size, cache_file) != -1) {
++ if (line == NULL)
++ break;
+ char *p = strchr(line, '\n');
+ if (p != NULL)
+ *p = '\0';
diff --git a/audio/scmpc/files/patch-src_libmpd.c b/audio/scmpc/files/patch-src_libmpd.c
new file mode 100644
index 000000000000..10e6a8191bb3
--- /dev/null
+++ b/audio/scmpc/files/patch-src_libmpd.c
@@ -0,0 +1,10 @@
+--- src/libmpd.c.orig Sat Jun 23 00:31:14 2007
++++ src/libmpd.c Sat Jun 23 00:31:42 2007
+@@ -420,6 +420,7 @@ void mpd_disconnect(mpd_connection *mpd_conn)
+
+ shutdown(mpd_conn->sockd, SHUT_RDWR);
+ close(mpd_conn->sockd);
++ mpd_conn->status = DISCONNECTED;
+ }
+
+ int mpd_check_server(mpd_connection *mpd_conn, struct s_exception *e)
diff --git a/audio/scmpc/files/patch-src_mpd.c b/audio/scmpc/files/patch-src_mpd.c
new file mode 100644
index 000000000000..bc102df6e6bd
--- /dev/null
+++ b/audio/scmpc/files/patch-src_mpd.c
@@ -0,0 +1,10 @@
+--- src/mpd.c.orig Wed Jan 16 12:49:48 2008
++++ src/mpd.c Sun Dec 3 02:59:18 2006
+@@ -26,6 +26,7 @@
+ #include <unistd.h>
+ #include <pthread.h>
+ #include <sys/types.h>
++#include <sys/select.h>
+ #include <signal.h>
+ #include <math.h>
+ #include <string.h>
diff --git a/audio/scmpc/pkg-descr b/audio/scmpc/pkg-descr
new file mode 100644
index 000000000000..66ebcaacf167
--- /dev/null
+++ b/audio/scmpc/pkg-descr
@@ -0,0 +1,13 @@
+scmpc is a client for MPD which submits your tracks to Audioscrobbler.
+Features include:
+
+ * Can be run as a daemon, either as a user or as root
+ * Keeps unsubmitted songs in a queue which is saved to a file at a
+ configurable interval
+ * Will try to reconnect to MPD and Audioscrobbler if the network
+ connection fail
+ * Works with a password-protected MPD server
+ * Can connect to Audioscrobbler through a proxy
+ * Works when crossfading is enabled
+
+WWW: http://scmpc.berlios.de/