openbsd-ports/x11/gtk2-theme-switch/patches/patch-Makefile

35 lines
1006 B
Plaintext
Raw Normal View History

$OpenBSD: patch-Makefile,v 1.1.1.1 2005/10/31 20:14:11 alek Exp $
--- Makefile.orig Wed Jun 11 07:16:36 2003
+++ Makefile Mon Oct 31 16:15:19 2005
@@ -1,24 +1,22 @@
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
+CFLAGS += -O2 -Wall `pkg-config --cflags gtk+-2.0`
+LIBS = `pkg-config --libs gtk+-2.0`
+CFLAGS += -DGTK_DISABLE_BROKEN
VERSION = 2.0.0rc2
all: switch
switch: switch.c switch.h
- ${GCC} -o switch2 switch.c ${CFLAGS} ${LIBS}
+ ${CC} -o switch2 switch.c ${CFLAGS} ${LIBS}
clean:
-rm -f switch2 *~
install: all
- strip switch2
mkdir -p ${PREFIX}/bin
mkdir -p ${PREFIX}/man
- install -c switch2 ${PREFIX}/bin
- install -c switch.1 ${PREFIX}/man
+ ${BSD_INSTALL_PROGRAM} switch2 ${PREFIX}/bin/gtk-theme-switch2
+ ${BSD_INSTALL_MAN} switch.1 ${PREFIX}/man/man1/gtk-theme-switch2.1
dist: clean
rm -rf /tmp/gtk-theme-switch-$(VERSION)