diff options
Diffstat (limited to 'libraries/rrdtool/rrdtool.SlackBuild')
-rw-r--r-- | libraries/rrdtool/rrdtool.SlackBuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libraries/rrdtool/rrdtool.SlackBuild b/libraries/rrdtool/rrdtool.SlackBuild index 012a10e20167d..d48c5bd747465 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 |