$NetBSD: patch-aa,v 1.1.1.1 2001/10/31 00:30:21 damon Exp $ --- Makefile.orig Sun Sep 9 10:12:41 2001 +++ Makefile @@ -12,6 +12,9 @@ GTK_CONFIG = gtk-config endif +ifeq ($(OS),NetBSD) + GTK_CONFIG = gtk-config +endif GTK_INCLUDE = `$(GTK_CONFIG) --cflags gthread` GTK_LIB = `$(GTK_CONFIG) --libs gthread` @@ -20,17 +23,17 @@ IMLIB_LIB = `imlib-config --libs-gdk` -FLAGS = -g -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(INCLUDE) +CFLAGS += -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(INCLUDE) -I${PREFIX}/include LIBS = $(GTK_LIB) $(IMLIB_LIB) LFLAGS = -shared -CC = gcc $(CFLAGS) $(FLAGS) +CC = gcc $(CFLAGS) OBJS = wireless.o INSTALL = install -c -s INSTALL_PERMS = -m 755 -PLUGIN_DIR = /usr/lib/gkrellm/plugins +PLUGIN_DIR = ${PREFIX}/lib/gkrellm/plugins all: wireless.so