diff options
Diffstat (limited to 'net/gkrellm-multiping/patches/patch-aa')
-rw-r--r-- | net/gkrellm-multiping/patches/patch-aa | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net/gkrellm-multiping/patches/patch-aa b/net/gkrellm-multiping/patches/patch-aa new file mode 100644 index 00000000000..5c88db0199b --- /dev/null +++ b/net/gkrellm-multiping/patches/patch-aa @@ -0,0 +1,38 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/02/24 23:41:56 cube Exp $ + +--- Makefile.orig 2004-01-16 08:48:09.000000000 +0100 ++++ Makefile +@@ -1,26 +1,27 @@ +-INSTALLDIR = /usr/local/lib/gkrellm2/plugins ++INSTALLDIR = $(PREFIX)/lib/gkrellm2/plugins + VERSION = 2.0.8 + PKGNAME = gkrellm-multiping + #OPT = -march=athlon -O2 + #CC = gcc-3.0 +-CC = gcc ++#CC = gcc ++CFLAGS+= -I$(BUILDLINK_DIR)/include + + all: pinger multiping.so + + pinger: pinger.c +- $(CC) `pkg-config glib-2.0 --cflags` $(OPT) -lpthread `pkg-config glib-2.0 --libs` -Wall -o pinger pinger.c ++ $(CC) $(PTHREAD_CFLAGS) $(CFLAGS) `pkg-config glib-2.0 --cflags` $(OPT) $(PTHREAD_DFLAGS) `pkg-config glib-2.0 --libs` -Wall -o pinger pinger.c + + multiping.o: multiping.c decal_multiping_status.xpm +- $(CC) -Wall -fPIC -Wall `pkg-config gtk+-2.0 --cflags` $(OPT) -DVERSION=\"$(VERSION)\" -c multiping.c ++ $(CC) $(CFLAGS) -Wall -fPIC -Wall `pkg-config gtk+-2.0 --cflags` $(OPT) -DVERSION=\"$(VERSION)\" -c multiping.c + + multiping.so: multiping.o +- $(CC) -shared -Wl -ggdb `pkg-config gtk+-2.0 --libs`-o multiping.so multiping.o ++ $(CC) $(CFLAGS) -shared -Wl `pkg-config gtk+-2.0 --libs`-o multiping.so multiping.o + + clean: + rm -f *.o *.so core + + install: pinger multiping.so +- install -d $(INSTALLDIR) ++# install -d $(INSTALLDIR) + install -c -s -m 644 multiping.so $(INSTALLDIR) + install -c -s -m 4755 pinger $(INSTALLDIR) + echo "pinger helper is installed suid root" |