wok-next annotate qemu/receipt @ rev 11849
busybox, uclibc-cross-compiler-i486: update bdeps again....
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 09:08:44 2012 +0100 (2012-02-27) |
parents | 18b27dcdc244 |
children | 73641efed1cc |
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@10623 | 14 attr util-linux-ng-uuid" |
pankso@10623 | 15 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \ |
slaxemulator@10814 | 16 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-ng-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 } |