openbsd-ports/x11/gtk2-theme-switch/patches/patch-Makefile
alek a5f927a88e Import gtk-theme-switch 2.0.0rc2
GTK Theme Switch is a small and fast command line utility to switch GTK themes
on the fly. It also has an optional GUI to preview the requested theme and
change the font used with it, an optional GUI dock, and it can install themes
downloaded from http://gtk.themes.org, preview them, or switch to them
immediately.
2005-10-31 20:14:11 +00:00

35 lines
1006 B
Plaintext

$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)