wok view 8086tiny/receipt @ rev 16283

Up: tazweb (1.8.1) Bug fix
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 06 17:03:00 2014 +0200 (2014-04-06)
parents 7488364630bc
children 77400cc56de2
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"
14 DEPENDS="libsdl"
15 BUILD_DEPENDS="libsdl-dev nasm"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm*) BUILD_DEPENDS="libsdl-dev" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 case "$ARCH" in
26 i?86)
27 make CC=gcc no_graphics &&
28 mv 8086tiny 8086tiny.nographics &&
29 make CC=gcc &&
30 nasm bios_source/bios.asm ;;
31 arm*)
32 make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu
33 nasm bios_source/bios.asm &&
34 echo "Skipping: strip: Unable to recognise the format" ;;
35 esac
36 }
38 # SliTaz package testsuite
39 testsuite() {
40 readelf -Ah ${src}/8086tiny
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
47 cp -a $src/8086tiny $fs/usr/bin
48 [ -x "$src/8086tiny.nographics" ] && \
49 cp -a $src/8086tiny.nographics $fs/usr/bin
50 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
51 cat > $fs/usr/bin/8086tiny.sh <<EOT
52 #!/bin/sh
54 if [ ! -e "\$1" ]; then
55 echo "Usage: \$0 fd_image [hd_image]"
56 else
57 clear
58 stty cbreak raw -echo min 0
59 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
60 stty cooked echo
61 fi
62 EOT
63 chmod 755 $fs/usr/bin/8086tiny.sh
64 }