wok view qemu/receipt @ rev 8199

imported patch toolchain/make.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:50 2011 +0100 (2011-01-27)
parents ca2a832193d8
children 9feb6e96b183
line source
1 # SliTaz package receipt.
3 PACKAGE="qemu"
4 VERSION="0.13.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.gz"
9 WEB_SITE="http://www.nongnu.org/qemu/"
10 WGET_URL="http://download.savannah.gnu.org/releases/qemu/$TARBALL"
11 BUILD_DEPENDS="alsa-lib-dev gettext libsdl-dev"
12 DEPENDS="alsa-lib gnutls libsdl zlib bluez libtasn1 libsasl vde2"
13 TAGS="virtualization"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 TARGET="i386-softmmu,i386-linux-user, \
21 x86_64-softmmu,x86_64-linux-user, \
22 arm-softmmu,arm-linux-user, \
23 ppc-softmmu,ppc-linux-user, \
24 mips-softmmu,mips-linux-user"
26 ./configure \
27 --prefix=/usr \
28 --disable-curl \
29 --enable-system \
30 --enable-user \
31 --enable-linux-user \
32 --target-list="$TARGET"&&
33 make &&
34 make DESTDIR=$PWD/_pkg 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 cp -a $_pkg/usr/bin/qemu $fs/usr/bin
43 cp -a $_pkg/usr/bin/qemu-io $fs/usr/bin
44 cp -a $_pkg/usr/bin/qemu-img $fs/usr/bin
45 cp -a $_pkg/usr/bin/qemu-nbd $fs/usr/bin
47 cp -a $_pkg/usr/share/qemu $fs/usr/share
49 # move softmmu to separate packages.
50 rm -f $fs/usr/bin/qemu-system*
52 # Remove unneeded bios binaries
53 rm -f $fs/usr/share/qemu/*ppc*
54 rm -f $fs/usr/share/qemu/*sparc*
55 }