Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / misc / gkrellm-flynn / patches / patch-aa
blobff5d3ab05cd916d789fae267ac7fa255da1aba0e
1 $NetBSD$
3 --- Makefile.orig       2002-05-07 08:04:49.000000000 +0000
4 +++ Makefile
5 @@ -3,12 +3,11 @@
6  #
7  # updated for gkrellm2.0
8  
9 -CC = gcc
10 -CFLAGS = -c -O -Wall -fPIC `${EXTRACONF}`
11 +#CC = gcc
12 +CFLAGS += -c -Wall -fPIC `${EXTRACONF}`
14  LD = $(CC)
15 -LDFLAGS = -shared -Wl -o
16 -INCPATH  = -I.
17 +INCPATH  = -I. -I${BUILDLINK_DIR}/include
18  INCPATH += ${GKRELL_INC}
20  TARGET = gkrellflynn.so
21 @@ -22,13 +21,13 @@ all:
22         @echo "     make gkrellm2"
24  gkrellm:
25 -       (make GKRELL_INC=-DGKRELLM EXTRACONF="gtk-config --cflags;imlib-config --cflags-gdk" ${TARGET})
26 +       (${MAKE} GKRELL_INC=-DGKRELLM EXTRACONF="gtk-config --cflags;imlib-config --cflags-gdk" ${TARGET})
28  gkrellm2:
29 -       (make GKRELL_INC=-DGKRELLM2 EXTRACONF="pkg-config --cflags gtk+-2.0 gthread-2.0" ${TARGET})
30 +       (${MAKE} GKRELL_INC=-DGKRELLM2 EXTRACONF="pkg-config --cflags gtk+-2.0 gthread-2.0" ${TARGET})
32  ${TARGET}:     ${OBJS}
33 -               ${LD} ${DEBUG} ${LDFLAGS} ${TARGET} ${OBJS}
34 +               ${LD} ${DEBUG} ${LDFLAGS} -shared -o ${TARGET} ${OBJS}
36  clean:
37         rm -f ${OBJS}
38 @@ -44,7 +43,7 @@ installgkrellm:
39         ./install-sub.sh        ${TARGET} gkrellm
41  installgkrellm2: 
42 -       ./install-sub.sh        ${TARGET} gkrellm2
43 +       install -c -s -m 644 ${TARGET} ${DESTDIR}${PREFIX}/lib/gkrellm2/plugins
45  %.o :  %.c
46         ${CC} ${CFLAGS} $(INCPATH) -o $@ $<