wok-6.x annotate linld/receipt @ rev 20411

ppp/ppp.cgi: add gsm/bluetooth support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 01 09:50:52 2018 +0200 (2018-08-01)
parents e6f0efe26374
children f4bc280fe3c4
rev   line source
pascal@2330 1 # SliTaz package receipt.
pascal@2330 2
pascal@2330 3 PACKAGE="linld"
pascal@2330 4 VERSION="0.97"
pascal@2330 5 CATEGORY="system-tools"
pascal@2330 6 SHORT_DESC="Boot loader for DOS/Win9x."
pascal@2330 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15379 8 LICENSE="GPL"
pascal@19410 9 SUFFIX="$(echo $VERSION | sed 's/[^0-9]//')"
pascal@19410 10 TARBALL="${PACKAGE}${SUFFIX}devel.tar.bz2"
pascal@2330 11 BASE_SITE="http://busybox.net/~vda/$PACKAGE"
pascal@2330 12 WEB_SITE="$BASE_SITE/README.txt"
pascal@2330 13 WGET_URL="$BASE_SITE/$TARBALL"
pascal@2330 14
pascal@19410 15 BUILD_DEPENDS="dosbox upx"
pascal@17446 16
pascal@2330 17 # Rules to configure and make the package.
pascal@2330 18 compile_rules()
pascal@2330 19 {
pascal@2330 20 mv DIST $src 2> /dev/null
pascal@2330 21 cd $src
pascal@19515 22 rm LINLD$SUFFIX/CRTL.CPP
pascal@19515 23 cp $stuff/src/* LINLD$SUFFIX/
pascal@19515 24 cp -a LINLD$SUFFIX TAZBOOT
pascal@19515 25 sed -i 's/-3/-DNO386/' TAZBOOT/BCCOPT.OPT
pascal@17446 26 unix2dos > MAKE.BAT <<EOT
pascal@17446 27 d:
pascal@19410 28 cd linld$SUFFIX
pascal@19515 29 $(cat LINLD$SUFFIX/!COMPILE.BAT)
pascal@19515 30 cd ..
pascal@19515 31 cd tazboot
pascal@19515 32 $(cat TAZBOOT/!COMPILEX.BAT)
pascal@17446 33 EOT
pascal@19736 34 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \
pascal@19736 35 2>&1 | grep -v 'ALSA lib'
pascal@19899 36 grep Error: */LNK.LOG && return 1
pascal@19410 37 cp LINLD$SUFFIX/LINLD.COM linld.com
pascal@19515 38 cp TAZBOOT/TAZBOOT.COM tazboot.com
pascal@19414 39 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
pascal@19414 40 linld.com > linld.lst
pascal@19870 41 upx -5 --8086 linld.com
pascal@19870 42 upx -5 --8086 tazboot.com
pascal@18230 43 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
pascal@18230 44 objcopy -O binary tobzimage.o tobzimage.bin
pascal@18230 45 cp $stuff/tobzimage .
pascal@18230 46 ./tobzimage --build
pascal@2330 47 }
pascal@2330 48
pascal@2330 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2330 50 genpkg_rules()
pascal@2330 51 {
pascal@19494 52 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc
pascal@19410 53 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
pascal@19494 54 cp $stuff/linld.txt $install/usr/share/doc
pascal@19465 55 #cp $src/tobzimage $fs/usr/bin
pascal@2330 56 }