wok annotate qemu/receipt @ rev 7744
Up: pidgin-musictracker to 0.4.22.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Dec 20 17:42:23 2010 +0000 (2010-12-20) |
parents | ca2a832193d8 |
children | 9feb6e96b183 |
rev | line source |
---|---|
pascal@438 | 1 # SliTaz package receipt. |
pascal@438 | 2 |
pascal@438 | 3 PACKAGE="qemu" |
slaxemulator@6880 | 4 VERSION="0.13.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" |
pankso@3425 | 11 BUILD_DEPENDS="alsa-lib-dev gettext libsdl-dev" |
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 } |