mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/gxemul: Updated for version 0.4.7.2
This commit is contained in:
parent
b5ad5b3042
commit
15e66c3852
4 changed files with 44 additions and 28 deletions
|
@ -1,15 +1,14 @@
|
|||
GXemul is an experimental instruction-level machine emulator. Several
|
||||
emulation modes are available. In some modes, processors and
|
||||
surrounding hardware components are emulated well enough to let
|
||||
unmodified operating systems (e.g. NetBSD) run as if they were running
|
||||
on a real machine.
|
||||
emulation modes are available. In some modes, processors and surrounding
|
||||
hardware components are emulated well enough to let unmodified operating
|
||||
systems (e.g. NetBSD) run as if they were running on a real machine.
|
||||
|
||||
The emulator is written in C, does not depend on third-party
|
||||
libraries, and should compile and run on most 64-bit and 32-bit
|
||||
Unix-like systems, with few or no modifications.
|
||||
The emulator is written in C, does not depend on third-party libraries,
|
||||
and should compile and run on most 64-bit and 32-bit Unix-like systems,
|
||||
with few or no modifications.
|
||||
|
||||
Devices and processors are not simulated with 100% accuracy. They are
|
||||
only "faked" well enough to allow guest operating systems to run
|
||||
without complaining too much. Still, the emulator could be of interest
|
||||
for academic research and experiments, such as when learning how to
|
||||
write operating system code.
|
||||
only "faked" well enough to allow guest operating systems to run without
|
||||
complaining too much. Still, the emulator could be of interest for
|
||||
academic research and experiments, such as when learning how to write
|
||||
operating system code.
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for GXemul
|
||||
|
||||
# Written by Aleksandar Samardzic <asamardzic@gmail.com>
|
||||
|
||||
PRGNAM=gxemul
|
||||
VERSION=${VERSION:-0.4.7}
|
||||
VERSION=${VERSION:-0.4.7.2}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
@ -15,10 +17,13 @@ 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"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -36,25 +41,35 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" ./configure
|
||||
make
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure
|
||||
|
||||
make
|
||||
mkdir -p $PKG/usr/bin $PKG/usr/man/man1
|
||||
install -m 0755 gxemul $PKG/usr/bin
|
||||
install -m 0644 man/gxemul.1 $PKG/usr/man/man1
|
||||
|
||||
strip --strip-unneeded $PKG/usr/bin/gxemul
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
gzip -9 $PKG/usr/man/man1/gxemul.1
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
|
||||
install -m 0644 HISTORY LICENSE README RELEASE.html TODO \
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
HISTORY LICENSE README RELEASE.html TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
install -m 0644 doc/* $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="gxemul"
|
||||
VERSION="0.4.7"
|
||||
HOMEPAGE="http://gavare.se/gxemul/"
|
||||
DOWNLOAD="http://gavare.se/gxemul/src/gxemul-0.4.7.tar.gz"
|
||||
MD5SUM="03d80b27ec351724d9c2de3adef4663d"
|
||||
VERSION="0.4.7.2"
|
||||
HOMEPAGE="http://gxemul.sourceforge.net/"
|
||||
DOWNLOAD="http://gxemul.sourceforge.net/src/gxemul-0.4.7.2.tar.gz"
|
||||
MD5SUM="a2ec4f58a831dd883c196c4fd362b702"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Aleksandar Samardzic"
|
||||
EMAIL="asamardzic@gmail.com"
|
||||
APPROVED="dsomero"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
|-----handy-ruler-------------------------------------------------------|
|
||||
gxemul: GXemul (an instruction-level machine emulator)
|
||||
gxemul:
|
||||
gxemul: GXemul emulates (networks of) real machines, consisting of
|
||||
|
@ -13,7 +13,7 @@ gxemul: processors (ARM, MIPS, PowerPC, and SuperH, emulated using
|
|||
gxemul: dynamic translation) and various surrounding hardware
|
||||
gxemul: components such as framebuffers, interrupt controllers,
|
||||
gxemul: busses, disk controllers, and serial controllers.
|
||||
gxemul:
|
||||
gxemul: GXemul home page is: http://gavare.se/gxemul/
|
||||
gxemul:
|
||||
gxemul: GXemul home page is: http://gxemul.sourceforge.net/
|
||||
gxemul:
|
||||
gxemul:
|
||||
|
|
Loading…
Reference in a new issue