summaryrefslogtreecommitdiff
path: root/x11/gtk-theme-switch/files/patch-aa
blob: e553cc87cf86ea567dcc2adbcbb6fd4f111ea9af (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
--- Makefile.orig	Wed Aug 30 09:35:43 2000
+++ Makefile	Thu Sep 14 09:54:48 2000
@@ -1,7 +1,7 @@
-GCC = gcc
-PREFIX=/usr/local
-CFLAGS = -I/usr/lib/glib/include -I/usr/X11R6/include
-LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
+GCC = ${CC}
+PREFIX?=/usr/local
+CFLAGS += `${X11BASE}/bin/gtk12-config --cflags`
+LIBS = `${X11BASE}/bin/gtk12-config --libs`
 VERSION = 0.4
 all : gthemeswitch
 
@@ -12,8 +12,8 @@
 	-rm gthemeswitch *~
 install: all
        
-	install -c gthemeswitch ${PREFIX}/bin
-	install -c switch ${PREFIX}/bin
+	${BSD_INSTALL_PROGRAM} gthemeswitch ${PREFIX}/bin
+	${BSD_INSTALL_SCRIPT} switch ${PREFIX}/bin
 
 dist: clean
 	rm -rf /tmp/gtk-theme-switch-$(VERSION)