summaryrefslogtreecommitdiff
path: root/libraries/rrdtool/rrdtool.SlackBuild
diff options
context:
space:
mode:
authorMichael Johnson <youngmug@animeneko.net>2010-05-11 19:45:27 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 19:45:27 +0200
commitbaff76123853450479b1c65d721af7ddf5aecb98 (patch)
tree7506994738c59e3c82e6cec2211defeb8e60f8a2 /libraries/rrdtool/rrdtool.SlackBuild
parent0e847162d997815099b66bdb9b2a2362411a7aee (diff)
downloadslackbuilds-baff76123853450479b1c65d721af7ddf5aecb98.tar.gz
libraries/rrdtool: Updated for version 1.2.19
Diffstat (limited to 'libraries/rrdtool/rrdtool.SlackBuild')
-rw-r--r--libraries/rrdtool/rrdtool.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/libraries/rrdtool/rrdtool.SlackBuild b/libraries/rrdtool/rrdtool.SlackBuild
index 012a10e201..d48c5bd747 100644
--- a/libraries/rrdtool/rrdtool.SlackBuild
+++ b/libraries/rrdtool/rrdtool.SlackBuild
@@ -13,6 +13,8 @@ VERSION=1.2.19
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PYTHON=$( python -c 'import sys; print sys.version[:3]' )
+PERL=$( eval "`perl -V:version`"; echo $version )
CWD=`pwd`
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -34,13 +36,14 @@ chown -R root:root .
chmod -R a-s,u+w,go+r-w .
# The python library is not added by default in the linking stage
-sed -i -r 's/^(LIBS = .*)/\0 -lpython2.4/' bindings/python/Makefile.in
+sed -i -r "s/^(LIBS = .*)/\0 -lpython${PYTHON}/" bindings/python/Makefile.in
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
RRDDOCDIR=/usr/doc/$PRGNAM-$VERSION \
./configure \
--prefix=/usr \
+ --disable-static \
--enable-perl-site-install
make
@@ -72,8 +75,8 @@ make install DESTDIR=$PKG
)
# And remove the directory leftovers
-rm -rf $PKG/usr/lib/perl5/5.8.8
-rm -rf $PKG/usr/lib/perl5/site_perl/5.8.8/i486-linux/auto/RRDp
+rm -rf $PKG/usr/lib/perl5/${PERL}
+rm -rf $PKG/usr/lib/perl5/site_perl/${PERL}/i486-linux/auto/RRDp
# Set correct permissions (mostly on the Perl bindings)
( cd $PKG