summaryrefslogtreecommitdiff
path: root/misc/gkrellm1-weather/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'misc/gkrellm1-weather/patches/patch-aa')
-rw-r--r--misc/gkrellm1-weather/patches/patch-aa49
1 files changed, 49 insertions, 0 deletions
diff --git a/misc/gkrellm1-weather/patches/patch-aa b/misc/gkrellm1-weather/patches/patch-aa
new file mode 100644
index 00000000000..4ed2acdc36e
--- /dev/null
+++ b/misc/gkrellm1-weather/patches/patch-aa
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/24 23:10:43 cube Exp $
+
+--- Makefile.orig Sat Oct 20 01:16:36 2001
++++ Makefile
+@@ -5,14 +5,16 @@
+ IMLIB_LIB = `imlib-config --libs-gdk`
+
+
+-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE)
++CFLAGS += -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) -I${PREFIX}/include
+ LIBS = $(GTK_LIB) $(IMLIB_LIB)
+ LFLAGS = -shared
+
+-CC = gcc $(CFLAGS) $(FLAGS)
++CC = gcc $(CFLAGS)
+
+ OBJS = gkrellweather.o
+
++all: gkrellweather.so
++
+ gkrellweather.so: $(OBJS)
+ $(CC) $(OBJS) -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
+
+@@ -22,23 +24,7 @@
+ gkrellweather.o: gkrellweather.c
+
+ install:
+- if [ -d /usr/lib/gkrellm/plugins/ ] ; then \
+- install -c -s -m 644 gkrellweather.so /usr/lib/gkrellm/plugins/ ; \
+- elif [ -d /usr/share/gkrellm/plugins/ ] ; then \
+- install -c -s -m 644 gkrellweather.so /usr/share/gkrellm/plugins/ ; \
+- elif [ -d /usr/local/lib/gkrellm/plugins/ ] ; then \
+- install -c -s -m 644 gkrellweather.so /usr/local/lib/gkrellm/plugins/ ; \
+- elif [ -d /usr/lib/gkrellm/plugins/ ] ; then \
+- install -c -s -m 644 gkrellweather.so /usr/lib/gkrellm/plugins/ ; \
+- else \
+- install -D -c -s -m 644 gkrellweather.so /usr/lib/gkrellm/plugins/gkrellweather.so ; \
+- fi
+- install -c -m 755 GrabWeather /usr/X11R6/bin
++ install -c -s -m 644 gkrellweather.so ${PREFIX}/lib/gkrellm/plugins/
+
+ uninstall:
+- rm -f /usr/lib/gkrellm/plugins/gkrellweather.so
+- rm -f /usr/share/gkrellm/plugins/gkrellweather.so
+- rm -f /usr/local/lib/gkrellm/plugins/gkrellweather.so
+- rm -f /usr/lib/gkrellm/plugins/gkrellweather.so
+- rm -f /usr/X11R6/bin/GrabWeather
+-
++ rm -f ${PREFIX}/lib/plugins/gkrellweather.so