summaryrefslogtreecommitdiff
path: root/audio/gkrellm1-volume/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gkrellm1-volume/patches/patch-aa')
-rw-r--r--audio/gkrellm1-volume/patches/patch-aa57
1 files changed, 57 insertions, 0 deletions
diff --git a/audio/gkrellm1-volume/patches/patch-aa b/audio/gkrellm1-volume/patches/patch-aa
new file mode 100644
index 00000000000..43dbdfbb8e8
--- /dev/null
+++ b/audio/gkrellm1-volume/patches/patch-aa
@@ -0,0 +1,57 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/24 22:33:50 cube Exp $
+
+--- Makefile.orig Fri Jun 23 19:47:00 2000
++++ Makefile
+@@ -1,27 +1,19 @@
+ # Makefile for GKrellM volume plugin
+
+-# Linux
+-GTK_CONFIG = gtk-config
+-SYSLIB = -lpthread
+-
+-# FreeBSD
+-#GTK_CONFIG = gtk12-config
+-#SYSLIB =
+-
+-PLUGIN_DIR = /usr/share/gkrellm/plugins
++PLUGIN_DIR = ${LOCALBASE}/lib/gkrellm/plugins
+ GKRELLM_INCLUDE = -I/usr/local/include
+
+-GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
+-GTK_LIB = `$(GTK_CONFIG) --libs`
++GTK_INCLUDE = `gtk-config --cflags`
++GTK_LIB = `gtk-config --libs`
+
+ IMLIB_INCLUDE = `imlib-config --cflags-gdk`
+ IMLIB_LIB = `imlib-config --libs-gdk`
+
+-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
+-LIBS = $(GTK_LIB) $(IMLIB_LIB) $(SYSLIB)
+-LFLAGS = -shared
++CFLAGS+= -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
++LIBS+= $(GTK_LIB) $(IMLIB_LIB) $(SYSLIB)
++LFLAGS+= -shared -lpthread -lossaudio
+
+-CC = gcc $(CFLAGS) $(FLAGS)
++CC = gcc $(CFLAGS)
+
+ INSTALL = install -c
+ INSTALL_PROGRAM = $(INSTALL) -s
+@@ -30,9 +22,6 @@
+
+ all: volume.so
+
+-freebsd:
+- make GTK_CONFIG=gtk12-config SYSLIB=all
+-
+ volume.so: $(OBJS)
+ $(CC) $(OBJS) -o volume.so $(LIBS) $(LFLAGS)
+
+@@ -40,6 +29,7 @@
+ rm -f *.o core *.so* *.bak *~
+
+ install:
++ mkdir -p $(PLUGIN_DIR)
+ $(INSTALL_PROGRAM) volume.so $(PLUGIN_DIR)
+
+ volume.c.o: volume.c