diff options
author | minskim <minskim> | 2004-05-09 04:42:46 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-05-09 04:42:46 +0000 |
commit | ccf60dfd5cfcc6c0ea6aa082fb28cd969963ed14 (patch) | |
tree | 14c8a4af62d8fe70f17cef3605ed5b01a76581b7 | |
parent | 355f3b221e01f8731cb8a69df8d3debe5bb79458 (diff) | |
download | pkgsrc-ccf60dfd5cfcc6c0ea6aa082fb28cd969963ed14.tar.gz |
Import xmmsctrl from pkgsrc-wip. Packaged by Michal Pasternak and
modified by me.
xmmsctrl is a small utility to control xmms from the command line.
Its goal is to be used coupled with sh to test xmms state and perform
an appropriate action, e.g. if playing then pause else play. The
interest of this is to bind keys in a window manager to have control
over xmms with keys that do play/next/pause, prev, control sound...
-rw-r--r-- | audio/xmmsctrl/DESCR | 5 | ||||
-rw-r--r-- | audio/xmmsctrl/Makefile | 20 | ||||
-rw-r--r-- | audio/xmmsctrl/PLIST | 2 | ||||
-rw-r--r-- | audio/xmmsctrl/distinfo | 6 | ||||
-rw-r--r-- | audio/xmmsctrl/patches/patch-aa | 13 | ||||
-rw-r--r-- | audio/xmmsctrl/patches/patch-ab | 18 |
6 files changed, 64 insertions, 0 deletions
diff --git a/audio/xmmsctrl/DESCR b/audio/xmmsctrl/DESCR new file mode 100644 index 00000000000..95f54a23445 --- /dev/null +++ b/audio/xmmsctrl/DESCR @@ -0,0 +1,5 @@ +xmmsctrl is a small utility to control xmms from the command line. +Its goal is to be used coupled with sh to test xmms state and perform +an appropriate action, e.g. if playing then pause else play. The +interest of this is to bind keys in a window manager to have control +over xmms with keys that do play/next/pause, prev, control sound... diff --git a/audio/xmmsctrl/Makefile b/audio/xmmsctrl/Makefile new file mode 100644 index 00000000000..9d365efe2e9 --- /dev/null +++ b/audio/xmmsctrl/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/05/09 04:42:46 minskim Exp $ +# + +DISTNAME= xmmsctrl-1.6 +CATEGORIES= audio +MASTER_SITES= http://www.docs.uu.se/~adavid/utils/ + +MAINTAINER= dotz@irc.pl +HOMEPAGE= http://www.docs.uu.se/~adavid/utils/ +COMMENT= Small utility to control xmms from the command line + +USE_BUILDLINK3= YES +USE_GNU_TOOLS+= make + +.include "../../audio/xmms/buildlink3.mk" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/xmmsctrl ${PREFIX}/bin + +.include "../../mk/bsd.pkg.mk" diff --git a/audio/xmmsctrl/PLIST b/audio/xmmsctrl/PLIST new file mode 100644 index 00000000000..44cd10424cb --- /dev/null +++ b/audio/xmmsctrl/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/09 04:42:46 minskim Exp $ +bin/xmmsctrl diff --git a/audio/xmmsctrl/distinfo b/audio/xmmsctrl/distinfo new file mode 100644 index 00000000000..a4cfc895ed8 --- /dev/null +++ b/audio/xmmsctrl/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/05/09 04:42:46 minskim Exp $ + +SHA1 (xmmsctrl-1.6.tar.gz) = 0cfb33cf841eba3bbc0230f66f22d1fa3347a799 +Size (xmmsctrl-1.6.tar.gz) = 7843 bytes +SHA1 (patch-aa) = 0284292749623dbd435ee6e4b64a0932a5f78bf8 +SHA1 (patch-ab) = 1e208da231e3b547a9dccf8cfcf406b7143732c8 diff --git a/audio/xmmsctrl/patches/patch-aa b/audio/xmmsctrl/patches/patch-aa new file mode 100644 index 00000000000..55d1861d8a2 --- /dev/null +++ b/audio/xmmsctrl/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/05/09 04:42:46 minskim Exp $ + +--- xmmsctrl.c~ Wed Nov 21 18:45:56 2001 ++++ xmmsctrl.c Sun Sep 21 22:34:00 2003 +@@ -38,7 +38,7 @@ + /* This declaration seems to be missing on my system + * Comment it if your are running Debian + */ +-void usleep(unsigned long usec); ++/* void usleep(unsigned long usec); */ + + /* returns true if xmms is playing a stream */ + static gboolean is_stream_playing(gint); diff --git a/audio/xmmsctrl/patches/patch-ab b/audio/xmmsctrl/patches/patch-ab new file mode 100644 index 00000000000..63143cb4d38 --- /dev/null +++ b/audio/xmmsctrl/patches/patch-ab @@ -0,0 +1,18 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/05/09 04:42:46 minskim Exp $ + +--- Makefile.orig 2001-11-21 12:45:56.000000000 -0600 ++++ Makefile +@@ -6,10 +6,10 @@ TARGET = xmmsctrl + VERSION = 1.6 + DIRNAME = $(shell basename $(PWD)) + +-CC = gcc ++#CC = gcc + WARN = -Wall -ansi -pedantic -Wshadow -Wmissing-prototypes -W +-CFLAGS = $(WARN) -O2 $(shell xmms-config --cflags) -DVERSION=\"$(VERSION)\" +-LDFLAGS = $(shell xmms-config --libs) ++CFLAGS += $(shell xmms-config --cflags) -DVERSION=\"$(VERSION)\" ++LDFLAGS += $(shell xmms-config --libs) + + all : $(TARGET) HELP + |