wok-current annotate qemu-light/receipt @ rev 25733

Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author Stanislas Leduc <shann@slitaz.org>
date Fri Dec 20 16:13:23 2024 +0000 (8 days ago)
parents b7f1bd1b9ac7
children
rev   line source
pankso@10694 1 # SliTaz package receipt.
pankso@10694 2
pankso@10694 3 PACKAGE="qemu-light"
pankso@13346 4 VERSION="1.2.0"
pankso@10694 5 CATEGORY="misc"
pankso@10694 6 SHORT_DESC="Light Qemu i386-softmmu target (without xen, vde, bluez, blobs, tls)."
pankso@10694 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pankso@10694 9 SOURCE="qemu"
pankso@13346 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@25515 11 WEB_SITE="https://www.qemu.org/"
pascal@25515 12 WGET_URL="https://wiki.qemu.org/download/$TARBALL"
pankso@10694 13 TAGS="virtualization"
pankso@10749 14 CONFLICT="qemu"
pankso@10694 15
pankso@12481 16 DEPENDS="alsa-lib libsdl util-linux-uuid"
pankso@12978 17 BUILD_DEPENDS="perl alsa-lib-dev libsdl-dev util-linux-uuid-dev python \
pankso@12978 18 libgio-dev glib-dev"
pankso@10694 19
pascal@24713 20 # What is the latest version available today?
pascal@24713 21 current_version()
pascal@24713 22 {
pascal@24713 23 wget -O - http://qemu.org/ 2>/dev/null | sed '/tar..z/!d;s|.*">||;s|</.*||;q'
pascal@24713 24 }
pascal@24713 25
pankso@10694 26 # Rules to configure and make the package.
pankso@10694 27 compile_rules()
pankso@10694 28 {
pankso@10694 29 TARGET="i386-softmmu"
pascal@20212 30 sed -i 's|uname -m|echo i486|' roms/openbios/utils/devbios/Makefile*
pankso@10694 31 ./configure \
pankso@10694 32 --prefix=/usr \
pankso@10694 33 --disable-xen \
pankso@10694 34 --disable-vnc-sasl \
pankso@10694 35 --disable-vnc-tls \
pankso@10694 36 --disable-curl \
pankso@10694 37 --disable-bluez \
pankso@10694 38 --disable-curses \
pankso@10694 39 --disable-vde \
pascal@19735 40 --disable-attr \
pankso@10694 41 --audio-drv-list=alsa \
pankso@10694 42 --target-list="$TARGET" \
pankso@10694 43 --cc=$BUILD_SYSTEM-gcc &&
pankso@10694 44 make && make DESTDIR=$DESTDIR install
pankso@10694 45 }
pankso@10694 46
pankso@10694 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10694 48 genpkg_rules()
pankso@10694 49 {
pankso@10749 50 mkdir -p $fs/usr/share/qemu
pankso@10749 51 cp -a $install/usr/bin $fs/usr
pankso@10749 52 cp -a $install/usr/share/qemu/keymaps $fs/usr/share/qemu
pascal@15035 53 for bin in bios.bin vgabios-cirrus.bin pxe-e1000.rom linuxboot.bin
pankso@10749 54 do
pankso@10749 55 cp -a $install/usr/share/qemu/$bin $fs/usr/share/qemu
pankso@10749 56 done
pankso@12978 57 # Create qemu symlink
pankso@12978 58 cd $fs/usr/bin && ln -s qemu-system-i386 qemu
pankso@10694 59 }