wok view qemu/receipt @ rev 14867

Up: perl-glib (1.301)
author Claudinei Pereira <claudinei@slitaz.org>
date Mon Jul 22 19:46:29 2013 -0300 (2013-07-22)
parents c70a6613800f
children 7896f0694ef6
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 emulator"
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 }