wok-current view 8086tiny/receipt @ rev 24218
updated perl-http-cookies (6.08 -> 6.10)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 16:37:13 2021 +0100 (2021-12-31) |
parents | 10474d9b9802 |
children | 535c806240cc |
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="https://web.archive.org/web/20151031061740/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 cp $stuff/8086tiny.sh $fs/usr/bin
54 }