1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-07 02:06:57 +00:00
freebsd-ports/sysutils/gkrellm2/files/patch-src:Makefile
2010-10-08 12:44:05 +00:00

46 lines
1.4 KiB
Plaintext

Index: src/Makefile
diff -u src/Makefile.orig src/Makefile
--- src/Makefile.orig 2010-10-03 01:21:01.000000000 +0900
+++ src/Makefile 2010-10-06 17:59:25.769707368 +0900
@@ -53,7 +53,8 @@
CONFIGURE_ARGS += --without-ntlm
endif
# run configure shell script
-DUMMY_VAR := $(shell ./configure $(CONFIGURE_ARGS))
+DUMMY_VAR := $(shell env OPENSSLINC=$(OPENSSLINC) OPENSSLLIB=$(OPENSSLLIB) \
+ ./configure $(CONFIGURE_ARGS))
# pull in variables set by configure script
include configure.mk
@@ -71,7 +72,7 @@
PKG_INCLUDE = `$(PKG_CONFIG) --cflags gtk+-2.0 gthread-2.0`
PKG_LIB = `$(PKG_CONFIG) --libs gtk+-2.0 gthread-2.0`
-FLAGS = -O2 -I.. -I$(SHARED_PATH) $(PKG_INCLUDE) $(GTOP_INCLUDE) $(PTHREAD_INC)\
+FLAGS = -I.. -I$(SHARED_PATH) $(PKG_INCLUDE) $(GTOP_INCLUDE) $(PTHREAD_INC)\
${SSL_INCLUDE} ${NTLM_INCLUDE} -DGKRELLM_CLIENT
LIBS = $(PKG_LIB) $(GTOP_LIBS) $(X11_LIBS) $(SYS_LIBS) $(SSL_LIBS) $(SENSORS_LIBS)\
@@ -131,13 +132,20 @@
$(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -lmd" gkrellm
endif
-freebsd3 freebsd:
+freebsd3 freebsd4:
ifeq ($(HAVE_SSL),1)
$(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -ldevstat" gkrellm
else
$(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -ldevstat -lmd" gkrellm
endif
+freebsd5 freebsd6 freebsd7 freebsd8 freebsd9 freebsd:
+ifeq ($(HAVE_SSL),1)
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-ldevstat" gkrellm
+else
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-ldevstat -lmd" gkrellm
+endif
+
# Darwin target for systems that still have libkvm
darwin:
ifeq ($(HAVE_SSL),1)