aboutsummaryrefslogtreecommitdiff
path: root/system/hercules/hercules.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-03-15 20:55:19 -0500
committerErik Hanson <erik@slackbuilds.org>2010-05-13 13:27:18 +0200
commite4b78420a17b34102a0d54b18521bc4d84931ba0 (patch)
tree0a4e114ddc06469926184c153a6fde17200f7091 /system/hercules/hercules.SlackBuild
parent7e4b41d82767314b0c50d3d39ac076bfdb2cd640 (diff)
system/hercules: Updated for version 3.07.
Diffstat (limited to 'system/hercules/hercules.SlackBuild')
-rw-r--r--system/hercules/hercules.SlackBuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/system/hercules/hercules.SlackBuild b/system/hercules/hercules.SlackBuild
index 63dea84a6affe..052a73b9ecc33 100644
--- a/system/hercules/hercules.SlackBuild
+++ b/system/hercules/hercules.SlackBuild
@@ -4,12 +4,12 @@
# the System/370, ESA/390 and z/Architecture emulator
# Written by Niels Horn - niels.horn@gmail.com
-# revision date 2009/12/19
+# revision date 2010/03/10
set -e
PRGNAM=hercules
-VERSION=${VERSION:-svn_20091219}
+VERSION=${VERSION:-3.07}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -22,12 +22,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCHQUADLET=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCHQUADLET=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+ ARCHQUADLET=""
+elif [ "$ARCH" = "arm" ]; then
+ SLKCFLAGS="-O2 -march=armv4t"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET="-gnueabi"
fi
rm -rf $TMP/$PRGNAM-$VERSION $PKG
@@ -38,12 +45,6 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# Apply patch to resolve directory of Hercules modules in x86_64
-patch -p1 < $CWD/moddir.patch
-
-# Generate configure etc. first...
-sh autogen.sh
-
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -53,7 +54,7 @@ CFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-external-gui \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux$ARCHQUADLET
make
make install DESTDIR=$PKG