summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorsbd <sbd>2013-03-29 07:19:05 +0000
committersbd <sbd>2013-03-29 07:19:05 +0000
commit15a1c3eb5a88d758410f2229101a453de1ece8ce (patch)
treec2ea94004af924d8e3303d01183ea946ad6c5990 /net
parente1ef096b61063a956be355c7a0e6b1a3455a43c7 (diff)
downloadpkgsrc-15a1c3eb5a88d758410f2229101a453de1ece8ce.tar.gz
Add extra compiler flags to build correctly on Linux.
Diffstat (limited to 'net')
-rw-r--r--net/xymon/distinfo3
-rw-r--r--net/xymon/patches/patch-build_Makefile.Linux22
2 files changed, 24 insertions, 1 deletions
diff --git a/net/xymon/distinfo b/net/xymon/distinfo
index 379710a071d..16d1a75f3f6 100644
--- a/net/xymon/distinfo
+++ b/net/xymon/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2012/10/11 18:42:19 spz Exp $
+$NetBSD: distinfo,v 1.11 2013/03/29 07:19:05 sbd Exp $
SHA1 (xymon-4.3.10.tar.gz) = d37765da5741adc4282e081e3ad59862eb22353f
RMD160 (xymon-4.3.10.tar.gz) = df5e01ab4528bc1146cdf784bbf69616f743bfa1
@@ -11,6 +11,7 @@ SHA1 (patch-ae) = 7519eaeecab9f5d4b6956e0fd426548ec7990a0b
SHA1 (patch-af) = e8c3fd4ed1de6f7a74db8fac152534a1fe9f29f5
SHA1 (patch-ah) = 03fee4b97cc3301339ace1ce459e7b679b83f96a
SHA1 (patch-build_Makefile.FreeBSD) = e58b50f35068cba6fed89cc21bcc4eb7d30efd23
+SHA1 (patch-build_Makefile.Linux) = eea6d1ced23a622d115aa97dc10d352f9dd622b0
SHA1 (patch-build_rrd.sh) = cfafece75defb13b413917bfddedb41cb9bb3c8b
SHA1 (patch-build_snmp.sh) = 4141c6e2bebea078ac662b7585e579f2af8ee64f
SHA1 (patch-configure) = 7b71ed7a567124a2aa36d9bf9188209649e88a4d
diff --git a/net/xymon/patches/patch-build_Makefile.Linux b/net/xymon/patches/patch-build_Makefile.Linux
new file mode 100644
index 00000000000..fd63be13daa
--- /dev/null
+++ b/net/xymon/patches/patch-build_Makefile.Linux
@@ -0,0 +1,22 @@
+$NetBSD: patch-build_Makefile.Linux,v 1.1 2013/03/29 07:19:06 sbd Exp $
+
+--- build/Makefile.Linux.orig 2012-07-23 11:29:13.000000000 +0000
++++ build/Makefile.Linux
+@@ -6,12 +6,15 @@ OSDEF = -DLINUX
+ NETLIBS =
+
+ # Compile flags for normal build
++PKGDIR?=/usr/pkg
+ CC = gcc
+ GCCVER := $(shell gcc -dumpversion|cut -d. -f1)
+ ifeq ($(GCCVER),4)
+- CFLAGS = -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT $(LFSDEF) $(OSDEF)
++ CFLAGS = -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT $(LFSDEF) $(OSDEF) \
++ -I${PKGDIR}/include -L${PKGDIR}/lib -Wl,--rpath=${PKGDIR}/lib
+ else
+- CFLAGS = -g -O2 -Wall -Wno-unused -D_REENTRANT $(LFSDEF) $(OSDEF)
++ CFLAGS = -g -O2 -Wall -Wno-unused -D_REENTRANT $(LFSDEF) $(OSDEF) \
++ -I${PKGDIR}/include -L${PKGDIR}/lib -Wl,--rpath=${PKGDIR}/lib
+ endif
+
+ ifndef PKGBUILD