summaryrefslogtreecommitdiffstats
path: root/source/l/slang/slang.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/slang/slang.SlackBuild')
-rwxr-xr-xsource/l/slang/slang.SlackBuild25
1 files changed, 14 insertions, 11 deletions
diff --git a/source/l/slang/slang.SlackBuild b/source/l/slang/slang.SlackBuild
index c39d4297f..a9fbd4bb9 100755
--- a/source/l/slang/slang.SlackBuild
+++ b/source/l/slang/slang.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2008, 2009, 2010, 2011 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2011, 2013 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,9 +21,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-VERSION=${VERSION:-2.2.3}
-#DOCV=${DOCV:-2.2.3}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-2.2.4}
+#DOCV=${DOCV:-2.2.4}
+BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -35,19 +35,22 @@ if [ -z "$ARCH" ]; then
esac
fi
-NUMJOBS=${NUMJOBS:-" -j7 "}
+# This doesn't handle multiple jobs well
+NUMJOBS=${NUMJOBS:-" -j1 "}
+
+# -fno-tree-dse is needed avoid optimization bugs
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -fno-tree-dse -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-O2 -fno-tree-dse"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fno-tree-dse -fPIC"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-O2 -fno-tree-dse"
LIBDIRSUFFIX=""
fi
@@ -59,8 +62,8 @@ mkdir -p $TMP $PKG
cd $TMP
rm -rf slang-$VERSION
-tar xvf $CWD/slang-$VERSION.tar.bz2 || exit 1
-cd slang-$VERSION
+tar xvf $CWD/slang-$VERSION.tar.?z* || exit 1
+cd slang-$VERSION || exit 1
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \