summaryrefslogtreecommitdiff
path: root/libraries/rrdtool/rrdtool.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-04-08 22:20:06 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-15 10:26:54 +0200
commit22f98c0cea108490e9eec406a84de64b7b6ad5ad (patch)
treede0d3cce58fe96d8edf181facae2ed5f5aa4801c /libraries/rrdtool/rrdtool.SlackBuild
parent72216a774394298b225382181d4aa1c4bf0b5494 (diff)
downloadslackbuilds-22f98c0cea108490e9eec406a84de64b7b6ad5ad.tar.gz
libraries/rrdtool: Updated for version 1.4.3.
Diffstat (limited to 'libraries/rrdtool/rrdtool.SlackBuild')
-rw-r--r--libraries/rrdtool/rrdtool.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/libraries/rrdtool/rrdtool.SlackBuild b/libraries/rrdtool/rrdtool.SlackBuild
index 317131322f..6752c01c2e 100644
--- a/libraries/rrdtool/rrdtool.SlackBuild
+++ b/libraries/rrdtool/rrdtool.SlackBuild
@@ -5,13 +5,12 @@
# Originally written by <youngmug@animeneko.net>
# Modified by the SlackBuilds.org team.
# Versions >= 1.4.2 maintained by Niels Horn <niels.horn@gmail.com>
-# revision date: 2009/12/08
+# revision date: 2010/03/31
-# Exit on most errors
set -e
PRGNAM=rrdtool
-VERSION=1.4.2
+VERSION=1.4.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -26,12 +25,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCHQUADLET=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCHQUADLET=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+ ARCHQUADLET=""
+elif [ "$ARCH" = "arm" ]; then
+ SLKCFLAGS="-O2 -march=armv4t"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET="-gnueabi"
fi
rm -rf $PKG
@@ -51,6 +57,7 @@ RRDDOCDIR=/usr/doc/$PRGNAM-$VERSION \
--mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--disable-static \
+ --build=$ARCH-slackware-linux$ARCHQUADLET \
--with-perl-options='INSTALLDIRS=vendor'
make
@@ -63,9 +70,9 @@ make install DESTDIR=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
+ xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
+ xargs strip --strip-unneeded 2> /dev/null || true
)
( cd $PKG/usr/man