wok-6.x annotate 8086tiny/receipt @ rev 15904
8086tiny: update compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 14 13:48:01 2014 +0000 (2014-02-14) |
parents | d0d74920c618 |
children | 41a47f812461 |
rev | line source |
---|---|
pascal@15802 | 1 # SliTaz package receipt. |
pascal@15802 | 2 |
pascal@15802 | 3 PACKAGE="8086tiny" |
pascal@15903 | 4 VERSION="1.15" |
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@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@15904 | 19 make CC=gcc no_graphics && |
pascal@15802 | 20 mv 8086tiny 8086tiny.nographics && |
pascal@15802 | 21 make CC=gcc && |
pascal@15802 | 22 nasm bios_source/bios.asm |
pascal@15802 | 23 } |
pascal@15802 | 24 |
pascal@15802 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15802 | 26 genpkg_rules() |
pascal@15802 | 27 { |
pascal@15802 | 28 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny |
pascal@15802 | 29 cp -a $src/8086tiny $fs/usr/bin |
pascal@15802 | 30 cp -a $src/8086tiny.nographics $fs/usr/bin |
pascal@15802 | 31 cp -a $src/bios_source/bios $fs/usr/share/8086tiny |
pascal@15804 | 32 cat > $fs/usr/bin//8086tiny.sh <<EOT |
pascal@15802 | 33 #!/bin/sh |
pascal@15802 | 34 |
pascal@15823 | 35 if [ ! -e "\$1" ]; then |
pascal@15823 | 36 echo "Usage: \$0 fd_image [hd_image]" |
pascal@15823 | 37 else |
pascal@15823 | 38 clear |
pascal@15823 | 39 stty cbreak raw -echo min 0 |
pascal@15823 | 40 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@" |
pascal@15823 | 41 stty cooked echo |
pascal@15823 | 42 fi |
pascal@15802 | 43 EOT |
pascal@15804 | 44 chmod 755 $fs/usr/bin/8086tiny.sh |
pascal@15802 | 45 } |