wok-6.x view qemu/receipt @ rev 15183
cherokee: new init script
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Wed Aug 21 14:06:05 2013 +0000 (2013-08-21) |
parents | 9b6bb1d6033f |
children | 6c4006240de0 |
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 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 }