wok-6.x annotate qemu/receipt @ rev 12911

glibc-base: ARM use Eglibc and files in sysroot with standard paths
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 29 17:48:30 2012 +0000 (2012-05-29)
parents 07dcaa73b187
children 815296e7f2ed
rev   line source
pascal@438 1 # SliTaz package receipt.
pascal@438 2
pascal@438 3 PACKAGE="qemu"
pankso@10623 4 VERSION="0.12.5"
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"
jozee@4971 11 TAGS="virtualization"
pascal@438 12
pankso@10623 13 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl \
pankso@12481 14 attr util-linux-uuid"
pankso@10623 15 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
pankso@12481 16 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev"
pankso@10623 17
pascal@438 18 # Rules to configure and make the package.
pascal@438 19 compile_rules()
pascal@438 20 {
pascal@438 21 cd $src
erjo@6068 22
pankso@10623 23 TARGET="i386-softmmu, x86_64-softmmu, \
pankso@10623 24 arm-softmmu, ppc-softmmu, mips-softmmu"
pankso@3171 25
pankso@10623 26 #--cross-prefix= --host-cc=
pankso@10623 27 ./configure \
pankso@3171 28 --prefix=/usr \
pankso@10623 29 --enable-sdl \
pankso@10623 30 --audio-drv-list=alsa,oss \
pankso@10623 31 --target-list="$TARGET" \
pankso@10623 32 --cc=$BUILD_SYSTEM-gcc &&
pankso@10623 33 make && make DESTDIR=$DESTDIR install
pascal@438 34 }
pascal@438 35
pascal@438 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@438 37 genpkg_rules()
pascal@438 38 {
erjo@6068 39 mkdir -p $fs/usr/bin $fs/usr/share
pankso@10626 40
pankso@10626 41 # Ther is /etc/qemu in 0.14.1
pankso@10626 42 #cp -a $_pkg/etc $fs
pankso@10623 43
erjo@6068 44 cp -a $_pkg/usr/bin/qemu $fs/usr/bin
erjo@6068 45 cp -a $_pkg/usr/bin/qemu-io $fs/usr/bin
erjo@6068 46 cp -a $_pkg/usr/bin/qemu-img $fs/usr/bin
erjo@6068 47 cp -a $_pkg/usr/bin/qemu-nbd $fs/usr/bin
erjo@6068 48
erjo@6068 49 cp -a $_pkg/usr/share/qemu $fs/usr/share
erjo@6068 50
erjo@6068 51 # move softmmu to separate packages.
pankso@10623 52 #rm -f $fs/usr/bin/qemu-system*
erjo@6068 53
erjo@6068 54 # Remove unneeded bios binaries
erjo@6068 55 rm -f $fs/usr/share/qemu/*ppc*
erjo@6068 56 rm -f $fs/usr/share/qemu/*sparc*
pascal@438 57 }