wok view qemu/receipt @ rev 15399
Up: libgcrypt-dev (1.5.3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Nov 02 21:10:18 2013 +0100 (2013-11-02) |
parents | 7896f0694ef6 |
children | 15030aba419f |
line source
1 # SliTaz package receipt.
3 PACKAGE="qemu"
4 VERSION="1.5.3"
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 TAGS="virtualization emulator"
14 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl \
15 attr util-linux-uuid libgio glib"
16 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
17 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev libgio-dev glib-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
24 TARGET="i386-softmmu, x86_64-softmmu, \
25 arm-softmmu, ppc-softmmu, mips-softmmu"
27 #--cross-prefix= --host-cc=
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --enable-sdl \
32 --audio-drv-list=alsa,oss \
33 --target-list="$TARGET" \
34 --cc=$BUILD_SYSTEM-gcc &&
35 make && make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin $fs/usr/share
43 # /etc/qemu is for x86_64
44 #cp -a $install/etc $fs
46 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
47 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
48 cp -a $install/usr/bin/qemu-io $fs/usr/bin
49 cp -a $install/usr/bin/qemu-img $fs/usr/bin
50 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
52 cp -a $install/usr/share/qemu $fs/usr/share
54 # Remove unneeded bios binaries
55 rm -f $fs/usr/share/qemu/*ppc*
56 rm -f $fs/usr/share/qemu/*sparc*
58 # Create qemu symlink
59 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
60 }