47 lines
1.5 KiB
Text
47 lines
1.5 KiB
Text
$NetBSD: patch-aa,v 1.3 2008/06/20 01:09:30 joerg Exp $
|
|
|
|
--- Makefile.orig 2003-09-21 14:47:38.000000000 +0200
|
|
+++ Makefile
|
|
@@ -4,7 +4,7 @@
|
|
GTK_CONFIG = pkg-config gtk+-2.0
|
|
SYSLIB = -lsnmp
|
|
# we need lib crypto if libsnmp has privacy support.
|
|
-SYSLIB += -lcrypto -L/usr/local/ssl/lib -L/usr/ssl/lib
|
|
+SYSLIB += -lcrypto -L$(BUILDLINK_DIR)/lib
|
|
|
|
# FreeBSD
|
|
#GTK_CONFIG = gtk12-config
|
|
@@ -12,17 +12,17 @@ SYSLIB += -lcrypto -L/usr/local/ssl/lib
|
|
#PLUGIN_DIR = /usr/X11R6/libexec/gkrellm/plugins/
|
|
|
|
USER_PLUGIN_DIR = $(HOME)/.gkrellm2/plugins
|
|
-PLUGIN_DIR = /usr/lib/gkrellm2/plugins
|
|
-GKRELLM_INCLUDE = -I/usr/X11R6/include
|
|
+PLUGIN_DIR = $(PREFIX)/lib/gkrellm2/plugins
|
|
+GKRELLM_INCLUDE = -I$(BUILDLINK_DIR)/include
|
|
|
|
GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
|
|
GTK_LIB = `$(GTK_CONFIG) --libs`
|
|
|
|
-FLAGS = -Wall -fPIC $(GTK_INCLUDE) $(GKRELLM_INCLUDE)
|
|
+FLAGS = $(CFLAGS) -Wall -fPIC $(GTK_INCLUDE) $(GKRELLM_INCLUDE) -DNETSNMP
|
|
LIBS = $(GTK_LIB) $(SYSLIB)
|
|
LFLAGS = -shared
|
|
|
|
-CC = gcc $(CFLAGS) $(FLAGS)
|
|
+#CC = gcc $(CFLAGS) $(FLAGS)
|
|
|
|
INSTALL = install -c
|
|
INSTALL_PROGRAM = $(INSTALL) -s
|
|
@@ -47,8 +47,8 @@ install-user: gkrellm_snmp.so
|
|
make PLUGIN_DIR=$(USER_PLUGIN_DIR) install
|
|
|
|
install: gkrellm_snmp.so
|
|
- $(INSTALL) -m 755 -d $(PLUGIN_DIR)
|
|
+# $(INSTALL) -m 755 -d $(PLUGIN_DIR)
|
|
- $(INSTALL_PROGRAM) -m 755 gkrellm_snmp.so $(PLUGIN_DIR)
|
|
+ $(INSTALL_PROGRAM) -m 755 gkrellm_snmp.so ${DESTDIR}$(PLUGIN_DIR)
|
|
|
|
gkrellm_snmp.o: gkrellm_snmp.c
|
|
-
|
|
+ $(CC) $(FLAGS) -c -o $(.TARGET) $(.ALLSRC)
|