wok-6.x annotate qemu/receipt @ rev 14412
new: python-evas-dev
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Apr 23 18:30:36 2013 +0200 (2013-04-23) |
parents | 815296e7f2ed |
children | 9b6bb1d6033f |
rev | line source |
---|---|
pascal@438 | 1 # SliTaz package receipt. |
pascal@438 | 2 |
pascal@438 | 3 PACKAGE="qemu" |
pankso@13346 | 4 VERSION="1.2.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" |
pankso@13346 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@12978 | 9 WEB_SITE="http://qemu.org" |
pankso@12978 | 10 WGET_URL="http://wiki.qemu.org/download/$TARBALL" |
jozee@4971 | 11 TAGS="virtualization" |
pascal@438 | 12 |
pankso@10623 | 13 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl \ |
pankso@12978 | 14 attr util-linux-uuid libgio glib" |
pankso@10623 | 15 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \ |
pankso@12978 | 16 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev libgio-dev glib-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@12978 | 25 |
pankso@10623 | 26 #--cross-prefix= --host-cc= |
pankso@10623 | 27 ./configure \ |
pankso@3171 | 28 --prefix=/usr \ |
pankso@12978 | 29 --sysconfdir=/etc \ |
pankso@10623 | 30 --enable-sdl \ |
pankso@10623 | 31 --audio-drv-list=alsa,oss \ |
pankso@10623 | 32 --target-list="$TARGET" \ |
pankso@10623 | 33 --cc=$BUILD_SYSTEM-gcc && |
pankso@10623 | 34 make && make DESTDIR=$DESTDIR 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 |
pankso@10626 | 41 |
pankso@12978 | 42 # /etc/qemu is for x86_64 |
pankso@12978 | 43 #cp -a $install/etc $fs |
pankso@12978 | 44 |
pankso@12978 | 45 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin |
pankso@12978 | 46 cp -a $install/usr/bin/qemu-ga $fs/usr/bin |
pankso@12978 | 47 cp -a $install/usr/bin/qemu-io $fs/usr/bin |
pankso@12978 | 48 cp -a $install/usr/bin/qemu-img $fs/usr/bin |
pankso@12978 | 49 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin |
pankso@12978 | 50 |
pankso@12978 | 51 cp -a $install/usr/share/qemu $fs/usr/share |
pankso@12978 | 52 |
erjo@6068 | 53 # Remove unneeded bios binaries |
erjo@6068 | 54 rm -f $fs/usr/share/qemu/*ppc* |
erjo@6068 | 55 rm -f $fs/usr/share/qemu/*sparc* |
pankso@12978 | 56 |
pankso@12978 | 57 # Create qemu symlink |
pankso@12978 | 58 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE |
pascal@438 | 59 } |