wok-next view qemu-light/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | 1cfe6fd269ef |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt.
3 PACKAGE="qemu-light"
4 VERSION="2.0.2"
5 CATEGORY="misc"
6 SHORT_DESC="Light Qemu i386-softmmu target (without xen, vde, bluez, blobs, tls)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="qemu"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.qemu.org/"
12 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
13 TAGS="virtualization"
14 CONFLICT="qemu"
16 DEPENDS="alsa-lib libsdl util-linux-uuid"
17 BUILD_DEPENDS="gettext perl alsa-lib-dev libsdl-dev util-linux-uuid-dev python \
18 glib-dev zlib-dev autoconf automake libtool bison flex"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 mkdir -p $DESTIDR/usr/share/qemu/ia32
25 [ -s $SOURCES_REPOSITORY/$UEFIZIP ] || wget -P $SOURCES_REPOSITORY \
26 http://netassist.dl.sourceforge.net/project/edk2/OVMF/$UEFIZIP
27 unzip $SOURCES_REPOSITORY/$UEFIZIP OVMF.fd -d $DESTIDR/usr/share/qemu/ia32
29 patch -p0 < $stuff/cloop.u
31 TARGET="i386-softmmu"
33 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
34 #--cross-prefix= --host-cc=
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --disable-xen \
39 --disable-vnc-sasl \
40 --disable-vnc-tls \
41 --disable-curl \
42 --disable-bluez \
43 --disable-curses \
44 --disable-vde \
45 --audio-drv-list=alsa \
46 --target-list="$TARGET" \
47 --cc=$BUILD_SYSTEM-gcc &&
48 make && make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share/qemu
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/share/qemu/keymaps $fs/usr/share/qemu
57 for bin in bios.bin vgabios-cirrus.bin pxe-e1000.rom linuxboot.bin
58 do
59 cp -a $install/usr/share/qemu/$bin $fs/usr/share/qemu
60 done
61 # Create qemu symlink
62 cd $fs/usr/bin && ln -s qemu-system-i386 qemu
63 }