diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-01-23 15:55:36 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-26 18:58:51 +0700 |
commit | 4f34be855a427e9edd4e27cfd4638b0c187ce1d6 (patch) | |
tree | c11435d096e1f29a53a7ec9f0223d6abee2616e9 /development/julia/julia.SlackBuild | |
parent | b061414ba2917ba0433bfeb0bb00c35964d73e43 (diff) |
development/julia: Fixed i686 build, updated DOWNLOAD & MD5SUM.
Thanks to B Watson.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/julia/julia.SlackBuild')
-rw-r--r-- | development/julia/julia.SlackBuild | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/development/julia/julia.SlackBuild b/development/julia/julia.SlackBuild index e3d2af1bc4c18..1e474f40fb4ae 100644 --- a/development/julia/julia.SlackBuild +++ b/development/julia/julia.SlackBuild @@ -28,37 +28,18 @@ VERSION_TAG=${VERSION_TAG:-b24213b893} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=${ARCH:-$(uname -m)} +case "$ARCH" in + i?86) ARCH=i686; LIBDIRSUFFIX="" ;; + x86_64) LIBDIRSUFFIX="64" ;; + *) echo "$ARCH is not supported"; exit 1 ;; +esac CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" - ARCH=i386 -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" - ARCH=i386 -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" - ARCH=x86_64 -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" - ARCH=i386 -fi - set -e rm -rf $PKG |