wok-next view linld/receipt @ rev 21597
updated dosbox (0.74-2 -> 0.74.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 14:18:09 2020 +0100 (2020-06-24) |
parents | a3c581bf52b8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="linld"
4 VERSION="0.97"
5 CATEGORY="system-tools"
6 SHORT_DESC="Boot loader for DOS/Win9x"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 SUFFIX="${VERSION//./}"
10 WEB_SITE="https://busybox.net/~vda/linld/README.txt"
12 TARBALL="$PACKAGE${SUFFIX}devel.tar.bz2"
13 WGET_URL="https://busybox.net/~vda/linld/$TARBALL"
15 BUILD_DEPENDS="dosbox upx"
17 compile_rules() {
18 mv DIST $src 2>/dev/null
19 cd $src
20 rm LINLD$SUFFIX/CRTL.CPP
21 cp $stuff/src/* LINLD$SUFFIX/
22 cp -a LINLD$SUFFIX TAZBOOT
23 sed -i 's/-3/-DNO386/' TAZBOOT/BCCOPT.OPT
24 unix2dos > MAKE.BAT <<EOT
25 d:
26 cd linld$SUFFIX
27 $(cat LINLD$SUFFIX/!COMPILE.BAT)
28 cd ..
29 cd tazboot
30 $(cat TAZBOOT/!COMPILEX.BAT)
31 EOT
32 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \
33 2>&1 | grep -v 'ALSA lib'
34 grep Error: */LNK.LOG && return 1
35 cp LINLD$SUFFIX/LINLD.COM linld.com
36 cp TAZBOOT/TAZBOOT.COM tazboot.com
37 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
38 linld.com > linld.lst
39 upx -5 --8086 linld.com
40 upx -5 --8086 tazboot.com
41 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
42 objcopy -O binary tobzimage.o tobzimage.bin
43 cp $stuff/tobzimage .
44 ./tobzimage --build
45 mkdir -p $install/usr/share/boot $install/usr/share/doc $install/usr/bin
46 cp linld.com $install/usr/share/boot
47 cp $stuff/linld.txt $install/usr/share/doc
48 cp tobzimage $install/usr/bin
49 }
51 genpkg_rules() {
52 mkdir -p $fs/usr/share
53 cp -a $install/usr/share/boot $fs/usr/share
54 }