wok-next view qemu/receipt @ rev 14175
Up linux (3.2.40)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 10 13:32:17 2013 +0100 (2013-03-10) |
parents | 815296e7f2ed |
children | 9b6bb1d6033f |
line source
1 # SliTaz package receipt.
3 PACKAGE="qemu"
4 VERSION="1.2.0"
5 CATEGORY="misc"
6 SHORT_DESC="General-purpose full virtualizer for x86 hardware."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://qemu.org"
10 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
11 TAGS="virtualization"
13 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl \
14 attr util-linux-uuid libgio glib"
15 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
16 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev libgio-dev glib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
23 TARGET="i386-softmmu, x86_64-softmmu, \
24 arm-softmmu, ppc-softmmu, mips-softmmu"
26 #--cross-prefix= --host-cc=
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --enable-sdl \
31 --audio-drv-list=alsa,oss \
32 --target-list="$TARGET" \
33 --cc=$BUILD_SYSTEM-gcc &&
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin $fs/usr/share
42 # /etc/qemu is for x86_64
43 #cp -a $install/etc $fs
45 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
46 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
47 cp -a $install/usr/bin/qemu-io $fs/usr/bin
48 cp -a $install/usr/bin/qemu-img $fs/usr/bin
49 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
51 cp -a $install/usr/share/qemu $fs/usr/share
53 # Remove unneeded bios binaries
54 rm -f $fs/usr/share/qemu/*ppc*
55 rm -f $fs/usr/share/qemu/*sparc*
57 # Create qemu symlink
58 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
59 }