wok-current annotate 8086tiny/receipt @ rev 16419

Up freerdp (1.1.0-beta+2013071101)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 17 16:05:12 2014 +0000 (2014-04-17)
parents 7488364630bc
children 77400cc56de2
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@15802 10 WEB_SITE="http://www.megalith.co.uk/8086tiny"
pascal@15802 11 WGET_URL="$WEB_SITE/downloads/$TARBALL"
pascal@16175 12 HOST_ARCH="i486 arm"
pascal@15802 13
pascal@15802 14 DEPENDS="libsdl"
pankso@16179 15 BUILD_DEPENDS="libsdl-dev nasm"
pascal@15802 16
pascal@16177 17 # Handle cross compilation.
pascal@16177 18 case "$ARCH" in
pankso@16179 19 arm*) BUILD_DEPENDS="libsdl-dev" ;;
pascal@16177 20 esac
pascal@16177 21
pascal@15802 22 # Rules to configure and make the package.
pascal@15802 23 compile_rules()
pascal@15802 24 {
pascal@16177 25 case "$ARCH" in
pankso@16179 26 i?86)
pankso@16179 27 make CC=gcc no_graphics &&
pankso@16179 28 mv 8086tiny 8086tiny.nographics &&
pankso@16179 29 make CC=gcc &&
pankso@16179 30 nasm bios_source/bios.asm ;;
pascal@16177 31 arm*)
pankso@16179 32 make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu
pankso@16179 33 nasm bios_source/bios.asm &&
pankso@16179 34 echo "Skipping: strip: Unable to recognise the format" ;;
pascal@16177 35 esac
pascal@15802 36 }
pascal@15802 37
pankso@16179 38 # SliTaz package testsuite
pankso@16179 39 testsuite() {
pankso@16179 40 readelf -Ah ${src}/8086tiny
pankso@16179 41 }
pankso@16179 42
pascal@15802 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15802 44 genpkg_rules()
pascal@15802 45 {
pascal@15802 46 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
pascal@15802 47 cp -a $src/8086tiny $fs/usr/bin
pankso@16179 48 [ -x "$src/8086tiny.nographics" ] && \
pankso@16179 49 cp -a $src/8086tiny.nographics $fs/usr/bin
pascal@15802 50 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
pankso@16179 51 cat > $fs/usr/bin/8086tiny.sh <<EOT
pascal@15802 52 #!/bin/sh
pascal@15802 53
pascal@15823 54 if [ ! -e "\$1" ]; then
pascal@15823 55 echo "Usage: \$0 fd_image [hd_image]"
pascal@15823 56 else
pascal@15823 57 clear
pascal@15823 58 stty cbreak raw -echo min 0
pascal@15823 59 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
pascal@15823 60 stty cooked echo
pascal@15823 61 fi
pascal@15802 62 EOT
pascal@15804 63 chmod 755 $fs/usr/bin/8086tiny.sh
pascal@15802 64 }