development/julia: Fixed i686 build, updated DOWNLOAD & MD5SUM.

Thanks to B Watson.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-01-23 15:55:36 +00:00 committed by Willy Sudiarto Raharjo
parent b061414ba2
commit 4f34be855a
2 changed files with 8 additions and 27 deletions

View file

@ -28,37 +28,18 @@ VERSION_TAG=${VERSION_TAG:-b24213b893}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then ARCH=${ARCH:-$(uname -m)}
case "$( uname -m )" in case "$ARCH" in
i?86) ARCH=i486 ;; i?86) ARCH=i686; LIBDIRSUFFIX="" ;;
arm*) ARCH=arm ;; x86_64) LIBDIRSUFFIX="64" ;;
*) ARCH=$( uname -m ) ;; *) echo "$ARCH is not supported"; exit 1 ;;
esac esac
fi
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} 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 set -e
rm -rf $PKG rm -rf $PKG

View file

@ -1,8 +1,8 @@
PRGNAM="julia" PRGNAM="julia"
VERSION="0.3.3" VERSION="0.3.3"
HOMEPAGE="http://julialang.org" HOMEPAGE="http://julialang.org"
DOWNLOAD="https://julialang.s3.amazonaws.com/bin/linux/x86/0.3/julia-0.3.3-linux-i386.tar.gz" DOWNLOAD="https://julialang.s3.amazonaws.com/bin/linux/x86/0.3/julia-0.3.3-linux-i686.tar.gz"
MD5SUM="b6af0cf30a80d753520d0942ef551bf6" MD5SUM="4bd53b8daaa1a99b0b040fd07a2e3846"
DOWNLOAD_x86_64="https://julialang.s3.amazonaws.com/bin/linux/x64/0.3/julia-0.3.3-linux-x86_64.tar.gz" DOWNLOAD_x86_64="https://julialang.s3.amazonaws.com/bin/linux/x64/0.3/julia-0.3.3-linux-x86_64.tar.gz"
MD5SUM_x86_64="84138ce908792e22a3a5cc2e48e420b9" MD5SUM_x86_64="84138ce908792e22a3a5cc2e48e420b9"
REQUIRES="" REQUIRES=""