diff options
Diffstat (limited to 'libraries/rrdtool/rrdtool.SlackBuild')
-rw-r--r-- | libraries/rrdtool/rrdtool.SlackBuild | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/libraries/rrdtool/rrdtool.SlackBuild b/libraries/rrdtool/rrdtool.SlackBuild index e2836af187..43b06bb7a3 100644 --- a/libraries/rrdtool/rrdtool.SlackBuild +++ b/libraries/rrdtool/rrdtool.SlackBuild @@ -2,8 +2,9 @@ # Slackware build script for RRDTool -# Copyright 2007-2008 Michael Johnson <youngmug at animeneko dot net> -# Copyright 2009-2010,2012 Niels Horn, Rio de Janeiro, RJ, Brazil +# Copyright 2007, 2008 Michael Johnson <youngmug at animeneko dot net> +# Copyright 2009, 2010, 2012 Niels Horn, Rio de Janeiro, RJ, Brazil +# Copyright 2014, 2015 Mario Preksavec, Zagreb, HR # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -12,7 +13,7 @@ # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, @@ -23,10 +24,8 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# revision date: 2012/02/22 - PRGNAM=rrdtool -VERSION=${VERSION:-1.4.7} +VERSION=${VERSION:-1.4.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,6 +59,20 @@ else LIBDIRSUFFIX="" fi +# Use libdbi by default +LIBDBI=${LIBDBI:-yes} +case "$LIBDBI" in + no) LIBDBI="--disable-libdbi" ;; + *) LIBDBI="" ;; +esac + +# Use Lua by default +LUA=${LUA:-yes} +case "$LUA" in + no) LUA="--disable-lua" ;; + *) LUA="" ;; +esac + set -e rm -rf $PKG @@ -86,6 +99,8 @@ RRDDOCDIR=/usr/doc/$PRGNAM-$VERSION \ --mandir=/usr/man \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --disable-static \ + $LIBDBI \ + $LUA \ --build=$ARCH-slackware-linux \ --with-perl-options='INSTALLDIRS=vendor' \ --with-ruby-options="sitedir=\${DESTDIR}/usr/lib${LIBDIRSUFFIX}/ruby/vendor_ruby" |