wok-6.x annotate 8086tiny/receipt @ rev 22514
updated atftp and atftpd (0.7 -> 0.7.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 01 16:04:30 2020 +0100 (2020-01-01) |
parents | 10474d9b9802 |
children | 535c806240cc |
rev | line source |
---|---|
pascal@15802 | 1 # SliTaz package receipt. |
pascal@15802 | 2 |
pascal@15802 | 3 PACKAGE="8086tiny" |
pascal@16166 | 4 VERSION="1.25" |
pascal@15802 | 5 CATEGORY="system-tools" |
pascal@15802 | 6 SHORT_DESC="PC XT-compatible emulator/virtual machine." |
pascal@15802 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15823 | 8 LICENSE="MIT" |
pascal@15802 | 9 TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2" |
pascal@21219 | 10 WEB_SITE="https://web.archive.org/web/20151031061740/http://www.megalith.co.uk/8086tiny" |
pascal@15802 | 11 WGET_URL="$WEB_SITE/downloads/$TARBALL" |
pascal@16175 | 12 HOST_ARCH="i486 arm" |
pascal@16560 | 13 TAGS="emulator 8086" |
pascal@15802 | 14 |
pascal@15802 | 15 DEPENDS="libsdl" |
pankso@16179 | 16 BUILD_DEPENDS="libsdl-dev nasm" |
pascal@15802 | 17 |
pascal@16177 | 18 # Handle cross compilation. |
pascal@16177 | 19 case "$ARCH" in |
pankso@16179 | 20 arm*) BUILD_DEPENDS="libsdl-dev" ;; |
pascal@16177 | 21 esac |
pascal@16177 | 22 |
pascal@15802 | 23 # Rules to configure and make the package. |
pascal@15802 | 24 compile_rules() |
pascal@15802 | 25 { |
pascal@20279 | 26 patch -p0 < $stuff/8086tiny.u |
pascal@16177 | 27 case "$ARCH" in |
pankso@16179 | 28 i?86) |
pankso@16179 | 29 make CC=gcc no_graphics && |
pankso@16179 | 30 mv 8086tiny 8086tiny.nographics && |
pankso@16179 | 31 make CC=gcc && |
pankso@16179 | 32 nasm bios_source/bios.asm ;; |
pascal@16177 | 33 arm*) |
pankso@16179 | 34 make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu |
pankso@16179 | 35 nasm bios_source/bios.asm && |
pankso@16179 | 36 echo "Skipping: strip: Unable to recognise the format" ;; |
pascal@16177 | 37 esac |
pascal@15802 | 38 } |
pascal@15802 | 39 |
pankso@16179 | 40 # SliTaz package testsuite |
pankso@16179 | 41 testsuite() { |
pankso@16179 | 42 readelf -Ah ${src}/8086tiny |
pankso@16179 | 43 } |
pankso@16179 | 44 |
pascal@15802 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15802 | 46 genpkg_rules() |
pascal@15802 | 47 { |
pascal@15802 | 48 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny |
pascal@15802 | 49 cp -a $src/8086tiny $fs/usr/bin |
pankso@16179 | 50 [ -x "$src/8086tiny.nographics" ] && \ |
pankso@16179 | 51 cp -a $src/8086tiny.nographics $fs/usr/bin |
pascal@15802 | 52 cp -a $src/bios_source/bios $fs/usr/share/8086tiny |
pascal@20280 | 53 cp $stuff/8086tiny.sh $fs/usr/bin |
pascal@15802 | 54 } |