wok-current view qemu/receipt @ rev 15650
Up: libcss (0.1.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 10 16:14:37 2013 +0000 (2013-12-10) |
parents | 6c4006240de0 |
children | 1f00b27b3afb |
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 \
18 glib-dev autoconf automake libtool bison flex libusb-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
25 TARGET="i386-softmmu, x86_64-softmmu, \
26 arm-softmmu, ppc-softmmu, mips-softmmu"
28 #--cross-prefix= --host-cc=
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --enable-sdl \
33 --audio-drv-list=alsa,oss \
34 --target-list="$TARGET" \
35 --cc=$BUILD_SYSTEM-gcc &&
36 make && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin $fs/usr/share
44 # /etc/qemu is for x86_64
45 #cp -a $install/etc $fs
47 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
48 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
49 cp -a $install/usr/bin/qemu-io $fs/usr/bin
50 cp -a $install/usr/bin/qemu-img $fs/usr/bin
51 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
53 cp -a $install/usr/share/qemu $fs/usr/share
55 # Remove unneeded bios binaries
56 rm -f $fs/usr/share/qemu/*ppc*
57 rm -f $fs/usr/share/qemu/*sparc*
59 # Create qemu symlink
60 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
61 }