wok-next view linld/receipt @ rev 20637
ghostscript: update (b)deps (avoid jpeg / libjpeg-turbo to be in the same package)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 16:32:16 2018 +0300 (2018-04-27) |
parents | d4e883bda420 |
children | a3c581bf52b8 |
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 mkdir -p $install/usr/share/boot $install/usr/share/doc $install/usr/bin
48 cp linld.com $install/usr/share/boot
49 cp $stuff/linld.txt $install/usr/share/doc
50 cp tobzimage $install/usr/bin
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/share
57 cp -a $install/usr/share/boot $fs/usr/share
58 }