wok annotate 8086tiny/receipt @ rev 24587
updated gdb, gdb-dev and gdb-python (7.7 -> 11.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 28 14:51:19 2022 +0100 (2022-02-28) |
parents | d70ed9488748 |
children | a66f312c374b |
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@24465 | 23 # What is the latest version available today? |
pascal@24465 | 24 current_version() |
pascal@24465 | 25 { |
pascal@24465 | 26 wget -O - https://github.com/adriancable/8086tiny/commits/master 2>/dev/null | \ |
pascal@24465 | 27 sed '/Revision/!d;s|.*sion ||;s|<.*||;q' |
pascal@24465 | 28 } |
pascal@24465 | 29 |
pascal@15802 | 30 # Rules to configure and make the package. |
pascal@15802 | 31 compile_rules() |
pascal@15802 | 32 { |
pascal@20279 | 33 patch -p0 < $stuff/8086tiny.u |
pascal@16177 | 34 case "$ARCH" in |
pankso@16179 | 35 i?86) |
pankso@16179 | 36 make CC=gcc no_graphics && |
pankso@16179 | 37 mv 8086tiny 8086tiny.nographics && |
pankso@16179 | 38 make CC=gcc && |
pankso@16179 | 39 nasm bios_source/bios.asm ;; |
pascal@16177 | 40 arm*) |
pankso@16179 | 41 make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu |
pankso@16179 | 42 nasm bios_source/bios.asm && |
pankso@16179 | 43 echo "Skipping: strip: Unable to recognise the format" ;; |
pascal@16177 | 44 esac |
pascal@15802 | 45 } |
pascal@15802 | 46 |
pankso@16179 | 47 # SliTaz package testsuite |
pankso@16179 | 48 testsuite() { |
pankso@16179 | 49 readelf -Ah ${src}/8086tiny |
pankso@16179 | 50 } |
pankso@16179 | 51 |
pascal@15802 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15802 | 53 genpkg_rules() |
pascal@15802 | 54 { |
pascal@15802 | 55 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny |
pascal@15802 | 56 cp -a $src/8086tiny $fs/usr/bin |
pankso@16179 | 57 [ -x "$src/8086tiny.nographics" ] && \ |
pankso@16179 | 58 cp -a $src/8086tiny.nographics $fs/usr/bin |
pascal@15802 | 59 cp -a $src/bios_source/bios $fs/usr/share/8086tiny |
pascal@20280 | 60 cp $stuff/8086tiny.sh $fs/usr/bin |
pascal@15802 | 61 } |