wok annotate qemu/receipt @ rev 9107

esmart: update BUILD_DEPENDS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 05 09:48:12 2011 +0100 (2011-03-05)
parents 9feb6e96b183
children 499a3bba5bb1
rev   line source
pascal@438 1 # SliTaz package receipt.
pascal@438 2
pascal@438 3 PACKAGE="qemu"
slaxemulator@8711 4 VERSION="0.14.0"
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@438 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@3171 9 WEB_SITE="http://www.nongnu.org/qemu/"
pankso@3171 10 WGET_URL="http://download.savannah.gnu.org/releases/qemu/$TARBALL"
pascal@8909 11 BUILD_DEPENDS="gettext perl"
pascal@7505 12 DEPENDS="alsa-lib gnutls libsdl zlib bluez libtasn1 libsasl vde2"
jozee@4971 13 TAGS="virtualization"
pascal@438 14
pascal@438 15 # Rules to configure and make the package.
pascal@438 16 compile_rules()
pascal@438 17 {
pascal@438 18 cd $src
erjo@6068 19
erjo@6068 20 TARGET="i386-softmmu,i386-linux-user, \
erjo@6068 21 x86_64-softmmu,x86_64-linux-user, \
erjo@6068 22 arm-softmmu,arm-linux-user, \
erjo@6068 23 ppc-softmmu,ppc-linux-user, \
erjo@6068 24 mips-softmmu,mips-linux-user"
pankso@3171 25
erjo@6068 26 ./configure \
pankso@3171 27 --prefix=/usr \
erjo@6068 28 --disable-curl \
erjo@6068 29 --enable-system \
erjo@6068 30 --enable-user \
erjo@6068 31 --enable-linux-user \
erjo@6068 32 --target-list="$TARGET"&&
pascal@1553 33 make &&
pascal@438 34 make DESTDIR=$PWD/_pkg install
pascal@438 35 }
pascal@438 36
pascal@438 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@438 38 genpkg_rules()
pascal@438 39 {
erjo@6068 40 mkdir -p $fs/usr/bin $fs/usr/share
erjo@6068 41
erjo@6068 42 cp -a $_pkg/usr/bin/qemu $fs/usr/bin
erjo@6068 43 cp -a $_pkg/usr/bin/qemu-io $fs/usr/bin
erjo@6068 44 cp -a $_pkg/usr/bin/qemu-img $fs/usr/bin
erjo@6068 45 cp -a $_pkg/usr/bin/qemu-nbd $fs/usr/bin
erjo@6068 46
erjo@6068 47 cp -a $_pkg/usr/share/qemu $fs/usr/share
erjo@6068 48
erjo@6068 49 # move softmmu to separate packages.
erjo@6068 50 rm -f $fs/usr/bin/qemu-system*
erjo@6068 51
erjo@6068 52 # Remove unneeded bios binaries
erjo@6068 53 rm -f $fs/usr/share/qemu/*ppc*
erjo@6068 54 rm -f $fs/usr/share/qemu/*sparc*
pascal@438 55 }