46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
$NetBSD: patch-aa,v 1.3 2010/02/25 18:23:45 joerg Exp $
|
|
|
|
--- Makefile.orig 2002-05-07 08:04:49.000000000 +0000
|
|
+++ Makefile
|
|
@@ -3,12 +3,11 @@
|
|
#
|
|
# updated for gkrellm2.0
|
|
|
|
-CC = gcc
|
|
-CFLAGS = -c -O -Wall -fPIC `${EXTRACONF}`
|
|
+#CC = gcc
|
|
+CFLAGS += -c -Wall -fPIC `${EXTRACONF}`
|
|
|
|
LD = $(CC)
|
|
-LDFLAGS = -shared -Wl -o
|
|
-INCPATH = -I.
|
|
+INCPATH = -I. -I${BUILDLINK_DIR}/include
|
|
INCPATH += ${GKRELL_INC}
|
|
|
|
TARGET = gkrellflynn.so
|
|
@@ -22,13 +21,13 @@ all:
|
|
@echo " make gkrellm2"
|
|
|
|
gkrellm:
|
|
- (make GKRELL_INC=-DGKRELLM EXTRACONF="gtk-config --cflags;imlib-config --cflags-gdk" ${TARGET})
|
|
+ (${MAKE} GKRELL_INC=-DGKRELLM EXTRACONF="gtk-config --cflags;imlib-config --cflags-gdk" ${TARGET})
|
|
|
|
gkrellm2:
|
|
- (make GKRELL_INC=-DGKRELLM2 EXTRACONF="pkg-config --cflags gtk+-2.0 gthread-2.0" ${TARGET})
|
|
+ (${MAKE} GKRELL_INC=-DGKRELLM2 EXTRACONF="pkg-config --cflags gtk+-2.0 gthread-2.0" ${TARGET})
|
|
|
|
${TARGET}: ${OBJS}
|
|
- ${LD} ${DEBUG} ${LDFLAGS} ${TARGET} ${OBJS}
|
|
+ ${LD} ${DEBUG} ${LDFLAGS} -shared -o ${TARGET} ${OBJS}
|
|
|
|
clean:
|
|
rm -f ${OBJS}
|
|
@@ -44,7 +43,7 @@ installgkrellm:
|
|
./install-sub.sh ${TARGET} gkrellm
|
|
|
|
installgkrellm2:
|
|
- ./install-sub.sh ${TARGET} gkrellm2
|
|
+ install -c -s -m 644 ${TARGET} ${DESTDIR}${PREFIX}/lib/gkrellm2/plugins
|
|
|
|
%.o : %.c
|
|
${CC} ${CFLAGS} $(INCPATH) -o $@ $<
|