wok-next view ipxe/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents ab0405bc4658
children 4396aed7eb01
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ipxe"
4 VERSION="41f786c"
5 CATEGORY="system-tools"
6 SHORT_DESC="Open source network boot firmware"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 UBDL"
9 WEB_SITE="http://ipxe.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GITHUB/ipxe/ipxe/tarball/$VERSION"
14 BUILD_DEPENDS="perl xz-dev"
16 compile_rules() {
17 cd $src/src
19 # Fix https://git.ipxe.org/ipxe.git/commit/163f8acba0fbb6e3c44aec5286d3d076e1f44f22
20 sed -i 's/.*.section ".pages".*/.if64 ;\n&/;$a.endif' \
21 arch/x86/transitions/librm.S
23 #sed -i 's/^ASFLAGS.*/& -adhlns=$(<:.S=.lst)/' Makefile
24 sed -i 's/-llzma/& -lpthread/' Makefile.*
25 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h
26 sed -i 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
27 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
28 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
29 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
30 cp $stuff/lkrnprefix.S arch/i386/prefix
32 make all || return 1
33 separator
35 make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \
36 bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe \
37 bin/ipxe.kkpxe bin/ipxe.kkkpxe bin/ipxe.nbi \
38 bin/ipxe.lkrn \
39 EMBED=$stuff/ipxe.cmd || return 1
41 mkdir $install/boot
42 cp -a $src/src/bin/ipxe.lkrn $install/boot/ipxe
43 OFS=$((0x156))
44 unix2dos <<EOT | dd bs=1 of=$install/boot/ipxe conv=notrunc \
45 seek=$OFS count=$((0x1F0-$OFS))
46 $SHORT_DESC
47 EOT
48 }
50 genpkg_rules() {
51 copy @std
52 }