aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gkrellmms/files/patch-aa
blob: d9c0fded1a21b9add1d93bf50f22533fcb84a627 (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
34
35
36
37
38
39
40
41
42
Index: Makefile
diff -u Makefile.orig Makefile
--- Makefile.orig   Sun Jan 21 05:28:38 2001
+++ Makefile    Mon Feb  5 19:01:26 2001
@@ -3,29 +3,29 @@
 # You may want to rename the binary-file.
 BIN_FILENAME = gkrellmms
 
-GTK_INCLUDE = `gtk-config --cflags`
-GTK_LIB = `gtk-config --libs`
+GTK_INCLUDE = `$(GTK_CONFIG) --cflags gthread`
+GTK_LIB = `$(GTK_CONFIG) --libs gthread`
 IMLIB_INCLUDE = `imlib-config --cflags-gdk`
 IMLIB_LIB = `imlib-config --libs-gdk`
 XMMS_INCLUDE = `xmms-config --cflags`
 XMMS_LIB = `xmms-config --libs`
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(XMMS_INCLUDE)
+CFLAGS += -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(XMMS_INCLUDE)
 LIBS = $(GTK_LIB) $(IMLIB_LIB) $(XMMS_LIB)
-LFLAGS = -shared -lpthread
-
-CC = gcc $(CFLAGS) $(FLAGS)
+LFLAGS = -shared
 
 OBJS = gkrellmms.o options.o playlist.o
 
+all:   $(BIN_FILENAME).so
+
 $(BIN_FILENAME).so: $(OBJS)
-   $(CC) $(OBJS) -o $(BIN_FILENAME).so $(LFLAGS) $(LIBS)
+   $(CC) $(CFLAGS) $(OBJS) -o $(BIN_FILENAME).so $(LFLAGS) $(LIBS)
 
 clean:
    rm -f *.o core *.so* *.bak *~
 
 install: 
-   install -c -s -m 755 $(BIN_FILENAME).so /usr/share/gkrellm/plugins
+   install -c -s -m 755 $(BIN_FILENAME).so $(PREFIX)/libexec/gkrellm/plugins
 
 gkrellmms.c.o: gkrellmms.c
 options.c.o: options.c