summaryrefslogtreecommitdiff
path: root/misc/gkrellm-moon/patches/patch-aa
blob: 9216ebc2d2713589587225ebedfbd83eaa1c51b1 (plain)
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
26
27
28
29
30
31
32
33
$NetBSD: patch-aa,v 1.1.1.1 2001/10/30 13:24:25 damon Exp $

--- Makefile.orig	Sat Oct 20 01:40:33 2001
+++ Makefile
@@ -4,17 +4,19 @@
 IMLIB_INCLUDE = `imlib-config --cflags-gdk`
 IMLIB_LIB = `imlib-config --libs-gdk`
 THREAD_LIB = -lpthread
-INSTALLDIR = /usr/share/gkrellm/plugins
+INSTALLDIR = ${PREFIX}/lib/gkrellm/plugins
 
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE)
+CFLAGS += -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) -I${PREFIX}/include
 LIBS = $(GTK_LIB) $(IMLIB_LIB) $(THREAD_LIB)
 LFLAGS = -shared
 
-CC = gcc $(CFLAGS) $(FLAGS)
+CC = gcc $(CFLAGS)
 
 OBJS = gkrellmoon.o MoonRise.o CalcEphem.o Moon.o
 
+all: gkrellmoon.so
+
 gkrellmoon.so: $(OBJS)
 	$(CC) $(OBJS) -o gkrellmoon.so $(LFLAGS) $(LIBS)
 
@@ -26,4 +28,4 @@
 # %.o: %.c
 
 install: gkrellmoon.so
-	sudo install -c -s -m 644 gkrellmoon.so $(INSTALLDIR)
+	install -c -s -m 644 gkrellmoon.so $(INSTALLDIR)