wok-next annotate qemu/receipt @ rev 18550

Up cookutils(769)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 07 16:02:32 2015 +0200 (2015-11-07)
parents 9c8ef3fd3dcf
children acb8ffc53deb
rev   line source
pascal@438 1 # SliTaz package receipt.
pascal@438 2
pascal@438 3 PACKAGE="qemu"
pascal@17629 4 VERSION="2.0.2"
pascal@438 5 CATEGORY="misc"
pascal@438 6 SHORT_DESC="General-purpose full virtualizer for x86 hardware."
pascal@438 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pankso@13346 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@12978 10 WEB_SITE="http://qemu.org"
pankso@12978 11 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
pascal@14528 12 TAGS="virtualization emulator"
pascal@438 13
pascal@18000 14 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl ncurses \
pascal@17266 15 attr util-linux-uuid libgio glib libusb"
pankso@10623 16 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
pascal@15643 17 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev libgio-dev \
pascal@18000 18 glib-dev autoconf automake libtool bison flex libusb-dev ncurses-dev"
pankso@10623 19
pascal@438 20 # Rules to configure and make the package.
pascal@438 21 compile_rules()
pascal@438 22 {
pascal@17989 23 patch -p0 < $stuff/cloop.u
erjo@6068 24
pankso@10623 25 TARGET="i386-softmmu, x86_64-softmmu, \
pankso@10623 26 arm-softmmu, ppc-softmmu, mips-softmmu"
pankso@12978 27
pascal@18000 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pankso@10623 29 #--cross-prefix= --host-cc=
pankso@10623 30 ./configure \
pankso@3171 31 --prefix=/usr \
pankso@12978 32 --sysconfdir=/etc \
pankso@10623 33 --enable-sdl \
pascal@18000 34 --enable-curses \
pankso@10623 35 --audio-drv-list=alsa,oss \
pankso@10623 36 --target-list="$TARGET" \
pankso@10623 37 --cc=$BUILD_SYSTEM-gcc &&
pankso@10623 38 make && make DESTDIR=$DESTDIR install
pascal@438 39 }
pascal@438 40
pascal@438 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@438 42 genpkg_rules()
pascal@438 43 {
erjo@6068 44 mkdir -p $fs/usr/bin $fs/usr/share
pankso@10626 45
pankso@12978 46 # /etc/qemu is for x86_64
pankso@12978 47 #cp -a $install/etc $fs
pankso@12978 48
pankso@12978 49 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
pankso@12978 50 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
pankso@12978 51 cp -a $install/usr/bin/qemu-io $fs/usr/bin
pankso@12978 52 cp -a $install/usr/bin/qemu-img $fs/usr/bin
pankso@12978 53 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
pankso@12978 54
pankso@12978 55 cp -a $install/usr/share/qemu $fs/usr/share
pankso@12978 56
erjo@6068 57 # Remove unneeded bios binaries
erjo@6068 58 rm -f $fs/usr/share/qemu/*ppc*
erjo@6068 59 rm -f $fs/usr/share/qemu/*sparc*
pankso@12978 60
pankso@12978 61 # Create qemu symlink
pankso@12978 62 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
pascal@438 63 }