wok view 8086tiny/receipt @ rev 20279
8086tiny: fix DAA/DAS/shift opcodes
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 23 13:08:29 2018 +0100 (2018-03-23) |
parents | 77400cc56de2 |
children | 10474d9b9802 |
line source
1 # SliTaz package receipt.
3 PACKAGE="8086tiny"
4 VERSION="1.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="PC XT-compatible emulator/virtual machine."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2"
10 WEB_SITE="http://www.megalith.co.uk/8086tiny"
11 WGET_URL="$WEB_SITE/downloads/$TARBALL"
12 HOST_ARCH="i486 arm"
13 TAGS="emulator 8086"
15 DEPENDS="libsdl"
16 BUILD_DEPENDS="libsdl-dev nasm"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm*) BUILD_DEPENDS="libsdl-dev" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 patch -p0 < $stuff/8086tiny.u
27 case "$ARCH" in
28 i?86)
29 make CC=gcc no_graphics &&
30 mv 8086tiny 8086tiny.nographics &&
31 make CC=gcc &&
32 nasm bios_source/bios.asm ;;
33 arm*)
34 make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu
35 nasm bios_source/bios.asm &&
36 echo "Skipping: strip: Unable to recognise the format" ;;
37 esac
38 }
40 # SliTaz package testsuite
41 testsuite() {
42 readelf -Ah ${src}/8086tiny
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
49 cp -a $src/8086tiny $fs/usr/bin
50 [ -x "$src/8086tiny.nographics" ] && \
51 cp -a $src/8086tiny.nographics $fs/usr/bin
52 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
53 cat > $fs/usr/bin/8086tiny.sh <<EOT
54 #!/bin/sh
56 if [ ! -e "\$1" ]; then
57 echo "Usage: \$0 fd_image [hd_image]"
58 else
59 clear
60 stty cbreak raw -echo min 0
61 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
62 stty cooked echo
63 fi
64 EOT
65 chmod 755 $fs/usr/bin/8086tiny.sh
66 }