wok-current view 8086tiny/receipt @ rev 25712

Use symlink for libxvmc-mesa
author Stanislas Leduc <shann@slitaz.org>
date Mon Jun 10 20:42:21 2024 +0000 (6 months ago)
parents d70ed9488748
children
line source
1 # SliTaz package receipt.
3 PACKAGE="8086tiny"
4 VERSION="1.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="PC XT-compatible emulator/virtual machine."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2"
10 WEB_SITE="https://web.archive.org/web/20151031061740/http://www.megalith.co.uk/8086tiny"
11 WGET_URL="$WEB_SITE/downloads/$TARBALL"
12 HOST_ARCH="i486 arm"
13 TAGS="emulator 8086"
15 DEPENDS="libsdl"
16 BUILD_DEPENDS="libsdl-dev nasm"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm*) BUILD_DEPENDS="libsdl-dev" ;;
21 esac
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - https://github.com/adriancable/8086tiny/commits/master 2>/dev/null | \
27 sed '/Revision/!d;s|.*sion ||;s|<.*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 patch -p0 < $stuff/8086tiny.u
34 case "$ARCH" in
35 i?86)
36 make CC=gcc no_graphics &&
37 mv 8086tiny 8086tiny.nographics &&
38 make CC=gcc &&
39 nasm bios_source/bios.asm ;;
40 arm*)
41 make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu
42 nasm bios_source/bios.asm &&
43 echo "Skipping: strip: Unable to recognise the format" ;;
44 esac
45 }
47 # SliTaz package testsuite
48 testsuite() {
49 readelf -Ah ${src}/8086tiny
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny
56 cp -a $src/8086tiny $fs/usr/bin
57 [ -x "$src/8086tiny.nographics" ] && \
58 cp -a $src/8086tiny.nographics $fs/usr/bin
59 cp -a $src/bios_source/bios $fs/usr/share/8086tiny
60 cp $stuff/8086tiny.sh $fs/usr/bin
61 }