wok-6.x view qemu/receipt @ rev 18284
cups-filters: stop dep loop with cups
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Aug 10 11:33:16 2015 -0400 (2015-08-10) |
parents | 9c8ef3fd3dcf |
children | acb8ffc53deb |
line source
1 # SliTaz package receipt.
3 PACKAGE="qemu"
4 VERSION="2.0.2"
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 ncurses \
15 attr util-linux-uuid libgio glib libusb"
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 ncurses-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 patch -p0 < $stuff/cloop.u
25 TARGET="i386-softmmu, x86_64-softmmu, \
26 arm-softmmu, ppc-softmmu, mips-softmmu"
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
29 #--cross-prefix= --host-cc=
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --enable-sdl \
34 --enable-curses \
35 --audio-drv-list=alsa,oss \
36 --target-list="$TARGET" \
37 --cc=$BUILD_SYSTEM-gcc &&
38 make && make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin $fs/usr/share
46 # /etc/qemu is for x86_64
47 #cp -a $install/etc $fs
49 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
50 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
51 cp -a $install/usr/bin/qemu-io $fs/usr/bin
52 cp -a $install/usr/bin/qemu-img $fs/usr/bin
53 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
55 cp -a $install/usr/share/qemu $fs/usr/share
57 # Remove unneeded bios binaries
58 rm -f $fs/usr/share/qemu/*ppc*
59 rm -f $fs/usr/share/qemu/*sparc*
61 # Create qemu symlink
62 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
63 }