wok rev 15802

Add 8086tiny
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 22 18:13:11 2014 +0100 (2014-01-22)
parents bf783a1bf96f
children 2971c10a5bad
files 8086tiny/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/8086tiny/receipt	Wed Jan 22 18:13:11 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="8086tiny"
     1.7 +VERSION="1.00"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="PC XT-compatible emulator/virtual machine."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="CC-SA"
    1.12 +TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2"
    1.13 +WEB_SITE="http://www.megalith.co.uk/8086tiny"
    1.14 +WGET_URL="$WEB_SITE/downloads/$TARBALL"
    1.15 +
    1.16 +DEPENDS="libsdl"
    1.17 +BUILD_DEPENDS="nasm libsdl-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	sed -i 's/.*time.h/#include <stdio.h>\n&/' 8086tiny.c
    1.23 +	sed 's/#OPTS/OPTS/' < Makefile > Makefile.nographics
    1.24 +	make -f Makefile.nographics CC=gcc &&
    1.25 +	mv 8086tiny 8086tiny.nographics &&
    1.26 +	make CC=gcc &&
    1.27 +	nasm bios_source/bios.asm
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
    1.34 +	cp -a $src/8086tiny $fs/usr/bin
    1.35 +	cp -a $src/8086tiny.nographics $fs/usr/bin
    1.36 +	cp -a $src/bios_source/bios $fs/usr/share/8086tiny
    1.37 +	cat > $src/8086tiny.sh <<EOT
    1.38 +#!/bin/sh
    1.39 +
    1.40 +clear
    1.41 +stty cbreak raw -echo min 0
    1.42 +${8086TINY:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "$@"
    1.43 +stty cooked echo
    1.44 +EOT
    1.45 +	chmod 755 $src/8086tiny.sh
    1.46 +}