summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch')
-rw-r--r--x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch b/x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch
new file mode 100644
index 000000000000..df6d5b33aa21
--- /dev/null
+++ b/x11-plugins/wmmixer/files/wmmixer-1.5-respect_flags.patch
@@ -0,0 +1,35 @@
+diff -ur wmmixer-1.5.orig/Makefile wmmixer-1.5/Makefile
+--- wmmixer-1.5.orig/Makefile 2002-06-25 23:13:11.000000000 +0300
++++ wmmixer-1.5/Makefile 2008-12-23 00:34:28.000000000 +0200
+@@ -1,19 +1,12 @@
+ # $Id: wmmixer-1.5-respect_flags.patch,v 1.1 2008/12/22 22:51:03 ssuominen Exp $
+
+-prefix = /usr/local
++prefix = /usr
+ exec_prefix = ${prefix}
+ bindir = ${exec_prefix}/bin
+ mandir = ${prefix}/share/man
+
+-DESTDIR =
+-
+-CXX = g++
+-CXXFLAGS = -O -Wall
+-EXTRA_LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext
+-
+-
+-LD = g++
+-LDFLAGS = -o $(EXECUTABLE) $(EXTRA_LIBDIRS) $(EXTRA_LIBS) $(CXXFLAGS)
++CXX ?= g++
++LIBS = -lX11 -lXpm -lXext
+
+ EXECUTABLE = wmmixer
+ OBJS = xhandler.o mixctl.o wmmixer.o exception.o
+@@ -26,7 +19,7 @@
+ $(CXX) $(CXXFLAGS) -c -o $@ $<
+
+ $(EXECUTABLE): $(OBJS)
+- $(LD) $(LDFLAGS) $(OBJS)
++ $(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o $(EXECUTABLE)
+
+ all: $(EXECUTABLE)
+