import xmmsctrl 1.9

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.

by Gleydson Soares (MAINTAINER) with tweaks by me
This commit is contained in:
jasper 2007-10-26 20:22:42 +00:00
parent a1a34f4946
commit fb95c1bdf0
6 changed files with 99 additions and 0 deletions

33
audio/xmmsctrl/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/10/26 20:22:42 jasper Exp $
COMMENT= small utility to control XMMS from the command line
DISTNAME= xmmsctrl-1.9
CATEGORIES= audio
HOMEPAGE= http://www.cs.aau.dk/~adavid/utils/
MASTER_SITES= ${HOMEPAGE}
MAINTAINER= Gleydson Soares <gsoares@trusted.com.br>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= xmms::audio/xmms
WANTLIB= X11 Xext Xi c gdk glib gmodule gtk m
MODULES= devel/gettext
USE_GMAKE= Yes
NO_REGRESS= Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xmmsctrl ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xmmsctrl
${INSTALL_DATA} ${WRKSRC}/samples/* ${PREFIX}/share/examples/xmmsctrl
.include <bsd.port.mk>

5
audio/xmmsctrl/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (xmmsctrl-1.9.tar.gz) = fanLc9ru7Jm/2qk90oYupg==
RMD160 (xmmsctrl-1.9.tar.gz) = 6HjlElMP4DyVaSbdDSBye6GOn4o=
SHA1 (xmmsctrl-1.9.tar.gz) = dxUAq/UEB3yF9AUvCXemByRPguE=
SHA256 (xmmsctrl-1.9.tar.gz) = JrqaS55tvHg5uKb8I0d0+iqcxOiH6UfNZoHT1CZ0sss=
SIZE (xmmsctrl-1.9.tar.gz) = 14336

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2007/10/26 20:22:42 jasper Exp $
--- Makefile.orig Fri Apr 2 16:48:38 2004
+++ Makefile Fri Oct 26 22:02:38 2007
@@ -1,22 +1,17 @@
# The prefix is ignored if you are not the super user and
# xmmsctrl will be installed in your $HOME/bin
-PREFIX := /usr/local
TARGET := xmmsctrl
VERSION := 1.9
-DIRNAME := $(shell basename $(PWD))
-CC := gcc
-WARN := -Wall -Wshadow -Wmissing-prototypes -W
DEFS := -DPRETTY_PRINT -D_GNU_SOURCE -DVERSION=\"$(VERSION)\"
-CFLAGS := $(WARN) -O2 $(shell xmms-config --cflags) $(DEFS)
-LDFLAGS := $(shell xmms-config --libs)
+CFLAGS += $(shell xmms-config --cflags) $(DEFS)
+LDFLAGS += $(shell xmms-config --libs)
-all : $(TARGET) HELP
+all : $(TARGET)
$(TARGET) : xmmsctrl.c removefile.c
$(CC) -o $(TARGET) xmmsctrl.c removefile.c $(CFLAGS) $(LDFLAGS)
- strip xmmsctrl
HELP : xmmsctrl
./xmmsctrl > HELP || true

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-removefile_c,v 1.1.1.1 2007/10/26 20:22:42 jasper Exp $
--- removefile.c.orig Wed Oct 3 17:23:48 2007
+++ removefile.c Wed Oct 3 17:25:15 2007
@@ -193,7 +193,7 @@ void remove_file(gint session, char *filename) {
gint *remove_pos = (gint*) malloc(list_size*sizeof(gint));
if (remove_pos) {
- char *pwd = get_current_dir_name();
+ char *pwd = getcwd(NULL,PATH_MAX);
int root_len = strlen(pwd)+1; /* +1: jump appended / */
gint i;

5
audio/xmmsctrl/pkg/DESCR Normal file
View File

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

15
audio/xmmsctrl/pkg/PLIST Normal file
View File

@ -0,0 +1,15 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/10/26 20:22:42 jasper Exp $
bin/xmmsctrl
share/examples/xmmsctrl/
share/examples/xmmsctrl/emacs-transcriber
share/examples/xmmsctrl/keylaunchrc
share/examples/xmmsctrl/pause_stop_play.sh
share/examples/xmmsctrl/play_pause.sh
share/examples/xmmsctrl/play_unpause_next.sh
share/examples/xmmsctrl/playlist2html.sh
share/examples/xmmsctrl/twmrc_bindings
share/examples/xmmsctrl/win_playlist.sh
share/examples/xmmsctrl/window_shown.sh
share/examples/xmmsctrl/xmmsnext.sh
share/examples/xmmsctrl/xmmsprev.sh
share/examples/xmmsctrl/xmmsswitch.sh