Files
pkgsrc-ng/net/xymon/patches/patch-build_rrd.sh
2013-09-26 17:14:40 +02:00

20 lines
475 B
Bash

$NetBSD: patch-build_rrd.sh,v 1.3 2012/10/11 18:42:19 spz Exp $
make it possible to deal with nonstandard locations of libpng* and libz*
--- build/rrd.sh.orig 2012-07-31 13:51:12.000000000 +0000
+++ build/rrd.sh
@@ -70,6 +70,12 @@
if test "$USERRRDLIB" != ""; then
RRDLIB="$USERRRDLIB"
fi
+ if test "$USERPNGCONFIG" != ""; then
+ PNGLIB=`$USERPNGCONFIG --ldflags`
+ fi
+ if test "$USERZLIB" != ""; then
+ ZLIB="$USERZLIB"
+ fi
# See if it builds
RRDOK="YES"