From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- .../valgrind/valgrind-3.6.0-glibcversion.patch.xz | Bin 0 -> 452 bytes development/valgrind/valgrind.SlackBuild | 98 +++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 development/valgrind/valgrind-3.6.0-glibcversion.patch.xz create mode 100755 development/valgrind/valgrind.SlackBuild (limited to 'development/valgrind') diff --git a/development/valgrind/valgrind-3.6.0-glibcversion.patch.xz b/development/valgrind/valgrind-3.6.0-glibcversion.patch.xz new file mode 100644 index 0000000..bf46f04 Binary files /dev/null and b/development/valgrind/valgrind-3.6.0-glibcversion.patch.xz differ diff --git a/development/valgrind/valgrind.SlackBuild b/development/valgrind/valgrind.SlackBuild new file mode 100755 index 0000000..4d503a2 --- /dev/null +++ b/development/valgrind/valgrind.SlackBuild @@ -0,0 +1,98 @@ +#!/bin/sh + +CWD=`pwd` +NAME=valgrind +VERSION=3.6.0 +ARCH=i586 +BUILD=1 +PKGNAME=$NAME +PKGVER=$VERSION +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR.tar.bz2 +REPOSITORY=http://valgrind.org/downloads +FLAGS="-O2 -march=pentium -mtune=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi + +# Compile +cd /tmp +tar jxvf $CWD/$ARCHIVE +cd $BASEDIR +xzcat $CWD/$NAME-$VERSION-glibcversion.patch.xz | patch -p1 -s +CFLAGS=$FLAGS CXXFLAGS=$FLAGS ./configure \ + --build=${ARCH}-slackware-linux \ + --disable-dependency-tracking \ + --prefix=/usr \ + --mandir=/usr/man \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir=/usr/share/html +make + +# Install +make install DESTDIR=$PKG +mkdir -p $PKG/install $PKG/usr/doc/$NAME-$VERSION $PKG/usr/share/html +cat > $PKG/install/slack-desc < /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.txz -- cgit v1.2.3-70-g09d2