pkgsrc/misc/gkrellm-moon/patches/patch-aa

28 lines
753 B
Text

$NetBSD: patch-aa,v 1.2 2004/02/24 23:12:38 cube Exp $
--- Makefile.orig 2002-12-11 04:36:06.000000000 +0100
+++ Makefile
@@ -1,14 +1,14 @@
GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
GTK_LIB = `pkg-config gtk+-2.0 --libs`
-INSTALLDIR = ${DESTDIR}/usr/lib/gkrellm2/plugins
+INSTALLDIR = ${PREFIX}/lib/gkrellm2/plugins
FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE)
LIBS = $(GTK_LIB)
LFLAGS = -shared
-CC = gcc $(CFLAGS) $(FLAGS)
+CC += $(CFLAGS) $(FLAGS)
OBJS = gkrellmoon.o MoonRise.o CalcEphem.o Moon.o
@@ -23,4 +23,5 @@ gkrellmoon.o: gkrellmoon.c moon_60.xpm
# %.o: %.c
install: gkrellmoon.so
- install -c -s -m 644 gkrellmoon.so $(INSTALLDIR)
+ $(BSD_INSTALL_DATA_DIR) $(INSTALLDIR)
+ $(BSD_INSTALL_DATA) gkrellmoon.so $(INSTALLDIR)