wok-6.x view qemu/receipt @ rev 24092
Up get-pcem-roms (2.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 18 13:15:53 2021 +0000 (2021-07-18) |
parents | 6da35b86d228 |
children | e919c5a2742d |
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 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|uname -m|echo i486|' roms/openbios/utils/devbios/Makefile*
26 mkdir -p $DESTDIR/usr/share/qemu/ia32 $DESTDIR/usr/share/qemu/x64
28 for i in $UEFIZIP ; do
29 [ -s $SOURCES_REPOSITORY/$i ] || wget -P $SOURCES_REPOSITORY \
30 $SF_MIRROR/project/edk2/OVMF/$i
31 unzip $SOURCES_REPOSITORY/$i OVMF.fd -d \
32 $DESTDIR/usr/share/qemu/$(echo $i | sed 's|OVMF-\(.*\)-.*|\1|;y|AIX|aix|')
33 done
35 patch -p0 < $stuff/cloop.u
37 TARGET="i386-softmmu, x86_64-softmmu, \
38 arm-softmmu, ppc-softmmu, mips-softmmu, mipsel-softmmu"
40 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
41 #--cross-prefix= --host-cc=
42 ./configure \
43 --prefix=/usr \
44 --sysconfdir=/etc \
45 --enable-sdl \
46 --enable-curses \
47 --disable-attr \
48 --audio-drv-list=alsa,oss \
49 --target-list="$TARGET" \
50 --cc=$BUILD_SYSTEM-gcc &&
51 make && make DESTDIR=$DESTDIR install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/bin $fs/usr/share
59 # /etc/qemu is for x86_64
60 #cp -a $install/etc $fs
62 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
63 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
64 cp -a $install/usr/bin/qemu-io $fs/usr/bin
65 cp -a $install/usr/bin/qemu-img $fs/usr/bin
66 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
68 cp -a $install/usr/share/qemu $fs/usr/share
69 cp -a $src/docs $install/usr/share/doc
71 # Remove unneeded bios binaries
72 rm -f $fs/usr/share/qemu/*ppc*
73 rm -f $fs/usr/share/qemu/*sparc*
75 # Create qemu symlink
76 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
77 }