1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/net/gkrellm_snmp/files/patch-aa
Hajimu UMEMOTO e531d42910 A plugin for GKrellM which allows monitoring of SNMP-Values.
PR:		ports/21166
Submitted by:	Eike Bernhardt <eike.bernhardt@gmx.de>
2000-09-14 16:56:05 +00:00

40 lines
1.1 KiB
Plaintext

Index: Makefile
diff -u Makefile.orig Makefile
--- Makefile.orig Fri May 12 03:39:39 2000
+++ Makefile Fri Sep 15 01:11:28 2000
@@ -1,8 +1,8 @@
# Makefile for a GKrellM SNMP monitor plugin
# Linux
-GTK_CONFIG = gtk-config
-IMLIB_CONFIG = imlib-config
+GTK_CONFIG?= gtk-config
+IMLIB_CONFIG?= imlib-config
SYSLIB = -lsnmp
# we need lib crypto if libsnmp has privacy support.
SYSLIB += -lcrypto
@@ -14,8 +14,8 @@
#PLUGIN_DIR = /usr/X11R6/libexec/gkrellm/plugins/
USER_PLUGIN_DIR = $(HOME)/.gkrellm/plugins
-PLUGIN_DIR = /usr/share/gkrellm/plugins
-GKRELLM_INCLUDE = -I/usr/local/include
+PLUGIN_DIR?= /usr/share/gkrellm/plugins
+GKRELLM_INCLUDE?= -I/usr/local/include
GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
GTK_LIB = `$(GTK_CONFIG) --libs`
@@ -24,11 +24,9 @@
IMLIB_LIB = `$(IMLIB_CONFIG) --libs-gdk`
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
+CFLAGS += -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
LIBS = $(GTK_LIB) $(IMLIB_LIB) $(SYSLIB)
LFLAGS = -shared
-
-CC = gcc $(CFLAGS) $(FLAGS)
INSTALL = install -c
INSTALL_PROGRAM = $(INSTALL) -s