diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-10-01 23:44:44 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-10-01 23:44:44 +0000 |
commit | d8dd69a5863bb12c653a0b57bea4b87f1b872548 (patch) | |
tree | 7400fb095f96484d34c85773d736c3240abc6e02 /audio/xmmsctrl/files | |
parent | Remove broken mastersite. (diff) |
Add xmmsctrl.
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...
WWW: http://user.it.uu.se/~adavid/utils/
PR: ports/86534
Submitted by: Jason E. Hale <jhale@bluebottle.com>
Notes
Notes:
svn path=/head/; revision=143935
Diffstat (limited to 'audio/xmmsctrl/files')
-rw-r--r-- | audio/xmmsctrl/files/patch-Makefile | 23 | ||||
-rw-r--r-- | audio/xmmsctrl/files/patch-removefile.c | 20 |
2 files changed, 43 insertions, 0 deletions
diff --git a/audio/xmmsctrl/files/patch-Makefile b/audio/xmmsctrl/files/patch-Makefile new file mode 100644 index 000000000000..096d19a9cc47 --- /dev/null +++ b/audio/xmmsctrl/files/patch-Makefile @@ -0,0 +1,23 @@ +--- Makefile.orig Fri Apr 2 15:00:12 2004 ++++ Makefile Sun Oct 2 01:30:57 2005 +@@ -6,17 +6,15 @@ + VERSION := 1.8 + 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 += $(WARN) $(shell xmms-config --cflags) $(DEFS) $(PTHREAD_CFLAGS) ++LDFLAGS := $(shell xmms-config --libs) $(PTHREAD_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 diff --git a/audio/xmmsctrl/files/patch-removefile.c b/audio/xmmsctrl/files/patch-removefile.c new file mode 100644 index 000000000000..b99afb9fdb1e --- /dev/null +++ b/audio/xmmsctrl/files/patch-removefile.c @@ -0,0 +1,20 @@ +--- removefile.c.orig Thu Apr 1 08:26:19 2004 ++++ removefile.c Thu Sep 22 13:41:04 2005 +@@ -111,7 +111,7 @@ + DIR *dir = opendir("."); + if (dir) { + /* xmms uses absolute paths */ +- char *pwd = get_current_dir_name(); ++ char *pwd = getcwd(NULL,PATH_MAX); + struct dirent *entry; + struct stat file_stat; + +@@ -189,7 +189,7 @@ + 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; + |