fb95c1bdf0
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
30 lines
921 B
Plaintext
30 lines
921 B
Plaintext
$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
|