wok-next view ipxe/receipt @ rev 19842

Fix gtk+3; up libgudev, libxkbcommon.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Aug 18 03:02:41 2017 +0300 (2017-08-18)
parents 18c4d15a72df
children 0e7893ac206d
line source
1 # SliTaz package receipt.
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 DEPENDS=""
15 BUILD_DEPENDS="perl liblzma-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src
22 # Fix https://git.ipxe.org/ipxe.git/commit/163f8acba0fbb6e3c44aec5286d3d076e1f44f22
23 sed -i 's/.*.section ".pages".*/.if64 ;\n&/;$a.endif' \
24 arch/x86/transitions/librm.S
26 #sed -i 's/^ASFLAGS.*/& -adhlns=$(<:.S=.lst)/' Makefile
27 sed -i 's/-llzma/& -lpthread/' Makefile.*
28 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h
29 sed -i 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
30 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
31 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
32 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
33 cp $stuff/lkrnprefix.S arch/i386/prefix
35 make all
36 separator
38 make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \
39 bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe bin/ipxe.kkpxe \
40 bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir $fs/boot
47 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
48 OFS=$((0x156))
49 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \
50 seek=$OFS count=$((0x1F0-$OFS))
51 $SHORT_DESC
52 EOT
53 }