wok-next annotate 8086tiny/receipt @ rev 18973

splashutils: fix build, update URLs, add description
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Mar 12 14:29:04 2016 +0200 (2016-03-12)
parents 70416dacfe5f
children c4e53a39395a
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@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@16177 26 case "$ARCH" in
pankso@16179 27 i?86)
pankso@16179 28 make CC=gcc no_graphics &&
pankso@16179 29 mv 8086tiny 8086tiny.nographics &&
pankso@16179 30 make CC=gcc &&
pankso@16179 31 nasm bios_source/bios.asm ;;
pascal@16177 32 arm*)
pankso@16179 33 make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu
pankso@16179 34 nasm bios_source/bios.asm &&
pankso@16179 35 echo "Skipping: strip: Unable to recognise the format" ;;
pascal@16177 36 esac
pascal@15802 37 }
pascal@15802 38
pankso@16179 39 # SliTaz package testsuite
pankso@16179 40 testsuite() {
pankso@16179 41 readelf -Ah ${src}/8086tiny
pankso@16179 42 }
pankso@16179 43
pascal@15802 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15802 45 genpkg_rules()
pascal@15802 46 {
pascal@15802 47 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
pascal@15802 48 cp -a $src/8086tiny $fs/usr/bin
pankso@16179 49 [ -x "$src/8086tiny.nographics" ] && \
pankso@16179 50 cp -a $src/8086tiny.nographics $fs/usr/bin
pascal@15802 51 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
pankso@16179 52 cat > $fs/usr/bin/8086tiny.sh <<EOT
pascal@15802 53 #!/bin/sh
pascal@15802 54
pascal@15823 55 if [ ! -e "\$1" ]; then
pascal@15823 56 echo "Usage: \$0 fd_image [hd_image]"
pascal@15823 57 else
pascal@15823 58 clear
pascal@15823 59 stty cbreak raw -echo min 0
pascal@15823 60 \${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
pascal@15823 61 stty cooked echo
pascal@15823 62 fi
pascal@15802 63 EOT
pascal@15804 64 chmod 755 $fs/usr/bin/8086tiny.sh
pascal@15802 65 }