From b061414ba2917ba0433bfeb0bb00c35964d73e43 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Sat, 23 Jan 2016 14:18:37 +0000 Subject: graphics/Alchemy: Fixed build on i586. Signed-off-by: David Spencer --- graphics/Alchemy/Alchemy.SlackBuild | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) (limited to 'graphics/Alchemy') diff --git a/graphics/Alchemy/Alchemy.SlackBuild b/graphics/Alchemy/Alchemy.SlackBuild index b1108caa3c..9763f41871 100644 --- a/graphics/Alchemy/Alchemy.SlackBuild +++ b/graphics/Alchemy/Alchemy.SlackBuild @@ -27,10 +27,17 @@ VERSION=${VERSION:-008} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -case "$( uname -m )" in - i?86) ARCH=i686 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; +ARCH=${ARCH:-$(uname -m)} +case "$ARCH" in + i?86) SRCSUFFIX="" + LIBDIRSUFFIX="" + ;; + x86_64) SRCSUFFIX="-x86_64" + LIBDIRSUFFIX="64" + ;; + *) echo "$ARCH is not supported" + exit 1 + ;; esac CWD=$(pwd) @@ -38,20 +45,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -71,7 +64,7 @@ mkdir -p $PKG/usr/share/$PRGNAM cp -r {modules,shapes} $PKG/usr/share/$PRGNAM cp {Alchemy,Alchemy.jar,AlchemyOpenGL} $PKG/usr/share/$PRGNAM mkdir -p $PKG/lib$LIBDIRSUFFIX -cp lib/libjpen-2-2-$ARCH.so $PKG/lib$LIBDIRSUFFIX/ +cp lib/libjpen-2-2$SRCSUFFIX.so $PKG/lib$LIBDIRSUFFIX/ mkdir -p $PKG/usr/bin cp $CWD/files/{alchemy,alchemyOpenGL} $PKG/usr/bin chmod +x $PKG/usr/bin/* -- cgit v1.2.3