wok-next annotate 8086tiny/receipt @ rev 15802
Add 8086tiny
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 22 18:13:11 2014 +0100 (2014-01-22) |
parents | |
children | 2971c10a5bad |
rev | line source |
---|---|
pascal@15802 | 1 # SliTaz package receipt. |
pascal@15802 | 2 |
pascal@15802 | 3 PACKAGE="8086tiny" |
pascal@15802 | 4 VERSION="1.00" |
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@15802 | 8 LICENSE="CC-SA" |
pascal@15802 | 9 TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2" |
pascal@15802 | 10 WEB_SITE="http://www.megalith.co.uk/8086tiny" |
pascal@15802 | 11 WGET_URL="$WEB_SITE/downloads/$TARBALL" |
pascal@15802 | 12 |
pascal@15802 | 13 DEPENDS="libsdl" |
pascal@15802 | 14 BUILD_DEPENDS="nasm libsdl-dev" |
pascal@15802 | 15 |
pascal@15802 | 16 # Rules to configure and make the package. |
pascal@15802 | 17 compile_rules() |
pascal@15802 | 18 { |
pascal@15802 | 19 sed -i 's/.*time.h/#include <stdio.h>\n&/' 8086tiny.c |
pascal@15802 | 20 sed 's/#OPTS/OPTS/' < Makefile > Makefile.nographics |
pascal@15802 | 21 make -f Makefile.nographics CC=gcc && |
pascal@15802 | 22 mv 8086tiny 8086tiny.nographics && |
pascal@15802 | 23 make CC=gcc && |
pascal@15802 | 24 nasm bios_source/bios.asm |
pascal@15802 | 25 } |
pascal@15802 | 26 |
pascal@15802 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15802 | 28 genpkg_rules() |
pascal@15802 | 29 { |
pascal@15802 | 30 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny |
pascal@15802 | 31 cp -a $src/8086tiny $fs/usr/bin |
pascal@15802 | 32 cp -a $src/8086tiny.nographics $fs/usr/bin |
pascal@15802 | 33 cp -a $src/bios_source/bios $fs/usr/share/8086tiny |
pascal@15802 | 34 cat > $src/8086tiny.sh <<EOT |
pascal@15802 | 35 #!/bin/sh |
pascal@15802 | 36 |
pascal@15802 | 37 clear |
pascal@15802 | 38 stty cbreak raw -echo min 0 |
pascal@15802 | 39 ${8086TINY:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "$@" |
pascal@15802 | 40 stty cooked echo |
pascal@15802 | 41 EOT |
pascal@15802 | 42 chmod 755 $src/8086tiny.sh |
pascal@15802 | 43 } |