summaryrefslogtreecommitdiffstats
path: root/development/valgrind/valgrind.SlackBuild
diff options
context:
space:
mode:
author Peter Wang2016-07-30 16:06:13 +0200
committer Willy Sudiarto Raharjo2016-07-30 16:06:13 +0200
commita40868b2ca08bd0b112d83677413593c487681fd (patch)
treeaf270921dac705f8a48b7ca89b9a347a3518ca87 /development/valgrind/valgrind.SlackBuild
parent35146ee3697008c41de0af3e0a598c96c7d53610 (diff)
downloadslackbuilds-a40868b2ca08bd0b112d83677413593c487681fd.tar.gz
development/valgrind: Updated for version 3.11.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/valgrind/valgrind.SlackBuild')
-rw-r--r--development/valgrind/valgrind.SlackBuild39
1 files changed, 19 insertions, 20 deletions
diff --git a/development/valgrind/valgrind.SlackBuild b/development/valgrind/valgrind.SlackBuild
index 069252eeb1..63dbb27682 100644
--- a/development/valgrind/valgrind.SlackBuild
+++ b/development/valgrind/valgrind.SlackBuild
@@ -6,13 +6,13 @@
# Updated by Willy Sudiarto Raharjo <willysr@slackware-id.org>
PRGNAM=valgrind
-VERSION=${VERSION:-3.10.1}
+VERSION=${VERSION:-3.11.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -23,17 +23,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- # The valgrind build system already passes -fpic
- # and forcing -fPIC results in a build failure.
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX="64"
+ # The valgrind build system already passes -fpic
+ # and forcing -fPIC results in a build failure.
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -47,22 +47,21 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
find -L . \
-\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
--exec chmod 755 {} \; -o \
-\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
--exec chmod 644 {} \;
-
-# For compatibility with -current; thanks to Gethyn ThomasQuail for the report.
-patch -p1 < $CWD/configure.patch || exit 1
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux \
|| exit 1
make || exit 1
@@ -70,7 +69,7 @@ make install DESTDIR=$PKG || exit 1
# Do NOT strip the shared objects, as recommended by the developers.
find $PKG -print0 | xargs -0 file | grep -e "executable" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done