aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gkrellmvolume2/files/patch-aa
blob: 4b561de154a2ecd5ddfd2152a44720687cd297cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Index: Makefile
diff -u Makefile.orig Makefile
--- Makefile.orig   Fri Aug 30 03:01:56 2002
+++ Makefile    Fri Aug 30 22:00:06 2002
@@ -3,17 +3,15 @@
 GTK_CONFIG = pkg-config gtk+-2.0
 
 PLUGIN_DIR ?= /usr/local/lib/gkrellm2/plugins
-GKRELLM_INCLUDE = -I/usr/local/include
+GKRELLM_INCLUDE = -I${PREFIX}/include
 
 GTK_CFLAGS = `$(GTK_CONFIG) --cflags` 
 GTK_LIB = `$(GTK_CONFIG) --libs`
 
-FLAGS = -O2 -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
+CFLAGS += -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
 LIBS = $(GTK_LIB)
 LFLAGS = -shared
 
-CC = gcc $(CFLAGS) $(FLAGS)
-
 INSTALL = install -c
 INSTALL_PROGRAM = $(INSTALL) -s
 
@@ -22,7 +20,7 @@
 all:   volume.so
 
 volume.so: $(OBJS)
-   $(CC) $(OBJS) -o volume.so $(LIBS) $(LFLAGS)
+   $(CC) $(CFLAGS) $(OBJS) -o volume.so $(LIBS) $(LFLAGS)
 
 clean:
    rm -f *.o core *.so* *.bak *~