summaryrefslogtreecommitdiffstats
path: root/system/hercules/hercules.SlackBuild
diff options
context:
space:
mode:
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 63dea84a6a..052a73b9ec 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