wok view qemu/receipt @ rev 24475

updated dfu-util (0.9 -> 0.11)
author Hans-G?nter Theisgen
date Thu Feb 17 17:41:58 2022 +0100 (2022-02-17)
parents e919c5a2742d
children 8acc87b18a99
line source
1 # SliTaz package receipt.
3 PACKAGE="qemu"
4 VERSION="2.0.2"
5 CATEGORY="misc"
6 SHORT_DESC="General-purpose full virtualizer for x86 hardware."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://qemu.org"
11 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
12 UEFIZIP="OVMF-IA32-r15214.zip OVMF-X64-r15214.zip"
13 EXTRA_SOURCE_FILES="$UEFIZIP"
14 TAGS="virtualization emulator"
16 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl ncurses \
17 attr util-linux-uuid libgio glib libusb zlib liblzma"
18 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
19 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev libgio-dev \
20 glib-dev autoconf automake libtool bison flex libusb-dev ncurses-dev xz-dev file"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $WEB_SITE 2>/dev/null | sed '/tar..z/!d;s|.*">||;s|</.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's|uname -m|echo i486|' roms/openbios/utils/devbios/Makefile*
32 mkdir -p $DESTDIR/usr/share/qemu/ia32 $DESTDIR/usr/share/qemu/x64
34 for i in $UEFIZIP ; do
35 [ -s $SOURCES_REPOSITORY/$i ] || wget -P $SOURCES_REPOSITORY \
36 $SF_MIRROR/project/edk2/OVMF/$i
37 unzip $SOURCES_REPOSITORY/$i OVMF.fd -d \
38 $DESTDIR/usr/share/qemu/$(echo $i | sed 's|OVMF-\(.*\)-.*|\1|;y|AIX|aix|')
39 done
41 patch -p0 < $stuff/cloop.u
43 TARGET="i386-softmmu, x86_64-softmmu, \
44 arm-softmmu, ppc-softmmu, mips-softmmu, mipsel-softmmu"
46 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
47 #--cross-prefix= --host-cc=
48 ./configure \
49 --prefix=/usr \
50 --sysconfdir=/etc \
51 --enable-sdl \
52 --enable-curses \
53 --disable-attr \
54 --audio-drv-list=alsa,oss \
55 --target-list="$TARGET" \
56 --cc=$BUILD_SYSTEM-gcc &&
57 make && make DESTDIR=$DESTDIR install
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 mkdir -p $fs/usr/bin $fs/usr/share
65 # /etc/qemu is for x86_64
66 #cp -a $install/etc $fs
68 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
69 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
70 cp -a $install/usr/bin/qemu-io $fs/usr/bin
71 cp -a $install/usr/bin/qemu-img $fs/usr/bin
72 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
74 cp -a $install/usr/share/qemu $fs/usr/share
75 cp -a $src/docs $install/usr/share/doc
77 # Remove unneeded bios binaries
78 rm -f $fs/usr/share/qemu/*ppc*
79 rm -f $fs/usr/share/qemu/*sparc*
81 # Create qemu symlink
82 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
83 }