summaryrefslogtreecommitdiff
path: root/development/valgrind/valgrind.SlackBuild
diff options
context:
space:
mode:
authorPeter Wang <novalazy@gmail.com>2010-05-13 00:25:42 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:25:42 +0200
commit077bc53447089e7b9160c9115d507c4bdd781d5e (patch)
tree00d731ed6b01e6d492c9cbfe7d30dc8914c8d544 /development/valgrind/valgrind.SlackBuild
parent03e910b9100143db7775413160f963b1864f4b25 (diff)
downloadslackbuilds-077bc53447089e7b9160c9115d507c4bdd781d5e.tar.gz
development/valgrind: Updated for version 3.5.0
Diffstat (limited to 'development/valgrind/valgrind.SlackBuild')
-rw-r--r--development/valgrind/valgrind.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/development/valgrind/valgrind.SlackBuild b/development/valgrind/valgrind.SlackBuild
index 1efd28b524..429f511e94 100644
--- a/development/valgrind/valgrind.SlackBuild
+++ b/development/valgrind/valgrind.SlackBuild
@@ -2,9 +2,10 @@
# Slackware build script for valgrind
# Written by Kyle Guinn <elyk03@gmail.com>
+# Updated by Peter Wang <novalazy@gmail.com>
PRGNAM=valgrind
-VERSION=3.3.0
+VERSION=3.5.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -15,10 +16,15 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
-fi
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -33,6 +39,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
|| exit 1
@@ -46,7 +53,7 @@ make install-strip DESTDIR=$PKG || exit 1
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ACKNOWLEDGEMENTS AUTHORS COPYING FAQ.txt INSTALL NEWS README* \
+cp -a AUTHORS COPYING FAQ.txt NEWS README* \
$PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/valgrind/html $PKG/usr/doc/$PRGNAM-$VERSION
# The doc directory is the only thing in $PKG/usr/share, and the only things
@@ -60,4 +67,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}