wok view qemu/receipt @ rev 20095

slitaz-base-files: don't backup-restore the whole /etc ($CONFIG_FILES variable exist), allow to update /etc/init.d/rc.functions
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 05 23:51:00 2017 +0300 (2017-10-05)
parents 30ff991c5681
children 3705d68ed8f3
line source
1 # SliTaz package receipt.
3 PACKAGE="qemu"
4 VERSION="2.0.2"
5 CATEGORY="misc"
6 SHORT_DESC="General-purpose full virtualizer for x86 hardware."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://qemu.org"
11 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
12 UEFIZIP="OVMF-IA32-r15214.zip"
13 EXTRA_SOURCE_FILES="$UEFIZIP"
14 TAGS="virtualization emulator"
16 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl ncurses \
17 attr util-linux-uuid libgio glib libusb"
18 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
19 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev libgio-dev \
20 glib-dev autoconf automake libtool bison flex libusb-dev ncurses-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mkdir -p $DESTDIR/usr/share/qemu/ia32
27 [ -s $SOURCES_REPOSITORY/$UEFIZIP ] || wget -P $SOURCES_REPOSITORY \
28 http://netassist.dl.sourceforge.net/project/edk2/OVMF/$UEFIZIP
29 unzip $SOURCES_REPOSITORY/$UEFIZIP OVMF.fd -d $DESTDIR/usr/share/qemu/ia32
31 patch -p0 < $stuff/cloop.u
33 TARGET="i386-softmmu, x86_64-softmmu, \
34 arm-softmmu, ppc-softmmu, mips-softmmu"
36 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
37 #--cross-prefix= --host-cc=
38 ./configure \
39 --prefix=/usr \
40 --sysconfdir=/etc \
41 --enable-sdl \
42 --enable-curses \
43 --disable-attr \
44 --audio-drv-list=alsa,oss \
45 --target-list="$TARGET" \
46 --cc=$BUILD_SYSTEM-gcc &&
47 make && make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/bin $fs/usr/share
55 # /etc/qemu is for x86_64
56 #cp -a $install/etc $fs
58 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
59 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
60 cp -a $install/usr/bin/qemu-io $fs/usr/bin
61 cp -a $install/usr/bin/qemu-img $fs/usr/bin
62 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
64 cp -a $install/usr/share/qemu $fs/usr/share
65 cp -a $src/docs $install/usr/share/doc
67 # Remove unneeded bios binaries
68 rm -f $fs/usr/share/qemu/*ppc*
69 rm -f $fs/usr/share/qemu/*sparc*
71 # Create qemu symlink
72 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
73 }