aboutsummaryrefslogtreecommitdiff
path: root/x11/gtk-theme-switch2
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-01-01 15:26:33 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-01-01 15:26:33 +0000
commitbdbc57bfa10b3bf5fdcba9eeee32b08de9e237b4 (patch)
tree15ca890eb9fea7846df7fcab4d2bff434d68722d /x11/gtk-theme-switch2
parente1cdf136cacf5dcb86f3b27163e03487690158fe (diff)
downloadports-bdbc57bfa10b3bf5fdcba9eeee32b08de9e237b4.tar.gz
ports-bdbc57bfa10b3bf5fdcba9eeee32b08de9e237b4.zip
Notes
Diffstat (limited to 'x11/gtk-theme-switch2')
-rw-r--r--x11/gtk-theme-switch2/files/patch-Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/x11/gtk-theme-switch2/files/patch-Makefile b/x11/gtk-theme-switch2/files/patch-Makefile
new file mode 100644
index 000000000000..1f819ef5a513
--- /dev/null
+++ b/x11/gtk-theme-switch2/files/patch-Makefile
@@ -0,0 +1,34 @@
+--- Makefile.orig Wed Jun 11 01:16:36 2003
++++ Makefile Mon Dec 17 23:11:09 2007
+@@ -1,13 +1,13 @@
+-GCC = cc
+-PREFIX=/usr/local
+-CFLAGS = -O2 -Wall $(shell pkg-config --cflags gtk+-2.0)
+-LIBS = $(shell pkg-config --libs gtk+-2.0)
+-CFLAGS += -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED
++GCC = ${CC}
++PREFIX ?= /usr/local
++CFLAGS += -Wall $(shell pkg-config --cflags gtk+-2.0)
++LIBS += $(shell pkg-config --libs gtk+-2.0)
++CFLAGS += -DGTK_DISABLE_BROKEN
+
+ VERSION = 2.0.0rc2
+-all: switch
++all: switch2
+
+-switch: switch.c switch.h
++switch2: switch.c switch.h
+ ${GCC} -o switch2 switch.c ${CFLAGS} ${LIBS}
+
+ clean:
+@@ -17,8 +17,8 @@
+ strip switch2
+ mkdir -p ${PREFIX}/bin
+ mkdir -p ${PREFIX}/man
+- install -c switch2 ${PREFIX}/bin
+- install -c switch.1 ${PREFIX}/man
++ install -c -m 555 switch2 ${PREFIX}/bin
++ install -c -m 444 switch.1 ${PREFIX}/man/man1/switch2.1
+
+ dist: clean
+ rm -rf /tmp/gtk-theme-switch-$(VERSION)