openbsd-ports/sysutils/gkrellm/patches/patch-src_Makefile_src
jcs cf0a5f4d1c update to gkrellm-1.2.13
apm support works on macppc, patch sent upstream
all from peter hessler <phessler at sfobug.org>
2002-07-29 03:46:28 +00:00

42 lines
1.2 KiB
Plaintext

$OpenBSD: patch-src_Makefile_src,v 1.6 2002/07/29 03:46:28 jcs Exp $
--- src/Makefile.src.orig Sun Jun 30 21:13:04 2002
+++ src/Makefile.src Sun Jul 28 22:35:14 2002
@@ -9,8 +9,7 @@
MANMODE ?= 644
MANDIRMODE ?= 755
INSTALL ?= install
-LINK_FLAGS ?= -Wl,-E
-CC ?= gcc
+LINK_FLAGS ?= -Wl
STRIP ?= -s
GKRELLM_INCLUDES = gkrellm.h gkrellm_public_proto.h
@@ -21,7 +20,7 @@
GTK_LIB = `$(GTK_CONFIG) --libs gthread`
IMLIB_LIB = `imlib-config --libs-gdk`
-FLAGS = -O2 -I.. $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GTOP_INCLUDE)
+FLAGS = -I.. $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GTOP_INCLUDE)
FLAGS+= $(PTHREAD_INC)
LIBS = $(GTK_LIB) $(IMLIB_LIB) $(GTOP_LIBS) $(SYS_LIBS)
@@ -38,7 +37,7 @@
FLAGS += -DHAVE_GETADDRINFO
endif
-CC += -Wall $(FLAGS)
+CFLAGS += $(FLAGS)
OBJS = main.o alerts.o apm.o base64.o clock.o cpu.o disk.o fs.o hostname.o \
inet.o mail.o meminfo.o net.o proc.o sensors.o uptime.o \
@@ -70,6 +69,9 @@
netbsd:
$(MAKE) PTHREAD_INC=-I/usr/local/include \
GTK_CONFIG=gtk-config GTOP_LIBS= EXTRAOBJS= SYS_LIBS="-lkvm" gkrellm
+
+openbsd:
+ $(MAKE) GTK_CONFIG=gtk-config GTOP_LIBS= SYS_LIBS="-lkvm -pthread" gkrellm
solaris:
$(MAKE) CFLAGS="-Wno-implicit-int" \