wok view linld/receipt @ rev 19938
Up liboping (1.9.0)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Apr 30 14:09:19 2017 +0100 (2017-04-30) |
parents | e6f0efe26374 |
children | f4bc280fe3c4 |
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="$(echo $VERSION | sed 's/[^0-9]//')"
10 TARBALL="${PACKAGE}${SUFFIX}devel.tar.bz2"
11 BASE_SITE="http://busybox.net/~vda/$PACKAGE"
12 WEB_SITE="$BASE_SITE/README.txt"
13 WGET_URL="$BASE_SITE/$TARBALL"
15 BUILD_DEPENDS="dosbox upx"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mv DIST $src 2> /dev/null
21 cd $src
22 rm LINLD$SUFFIX/CRTL.CPP
23 cp $stuff/src/* LINLD$SUFFIX/
24 cp -a LINLD$SUFFIX TAZBOOT
25 sed -i 's/-3/-DNO386/' TAZBOOT/BCCOPT.OPT
26 unix2dos > MAKE.BAT <<EOT
27 d:
28 cd linld$SUFFIX
29 $(cat LINLD$SUFFIX/!COMPILE.BAT)
30 cd ..
31 cd tazboot
32 $(cat TAZBOOT/!COMPILEX.BAT)
33 EOT
34 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \
35 2>&1 | grep -v 'ALSA lib'
36 grep Error: */LNK.LOG && return 1
37 cp LINLD$SUFFIX/LINLD.COM linld.com
38 cp TAZBOOT/TAZBOOT.COM tazboot.com
39 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
40 linld.com > linld.lst
41 upx -5 --8086 linld.com
42 upx -5 --8086 tazboot.com
43 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
44 objcopy -O binary tobzimage.o tobzimage.bin
45 cp $stuff/tobzimage .
46 ./tobzimage --build
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc
53 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
54 cp $stuff/linld.txt $install/usr/share/doc
55 #cp $src/tobzimage $fs/usr/bin
56 }