wok-current view qemu/receipt @ rev 23807
eudev: include relocated udevadm
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun May 24 12:23:14 2020 -0400 (2020-05-24) |
parents | 238f49914432 |
children | 6da35b86d228 |
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"
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
28 [ -s $SOURCES_REPOSITORY/$UEFIZIP ] || wget -P $SOURCES_REPOSITORY \
29 http://netassist.dl.sourceforge.net/project/edk2/OVMF/$UEFIZIP
30 unzip $SOURCES_REPOSITORY/$UEFIZIP OVMF.fd -d $DESTDIR/usr/share/qemu/ia32
32 patch -p0 < $stuff/cloop.u
34 TARGET="i386-softmmu, x86_64-softmmu, \
35 arm-softmmu, ppc-softmmu, mips-softmmu"
37 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
38 #--cross-prefix= --host-cc=
39 ./configure \
40 --prefix=/usr \
41 --sysconfdir=/etc \
42 --enable-sdl \
43 --enable-curses \
44 --disable-attr \
45 --audio-drv-list=alsa,oss \
46 --target-list="$TARGET" \
47 --cc=$BUILD_SYSTEM-gcc &&
48 make && make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/bin $fs/usr/share
56 # /etc/qemu is for x86_64
57 #cp -a $install/etc $fs
59 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
60 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
61 cp -a $install/usr/bin/qemu-io $fs/usr/bin
62 cp -a $install/usr/bin/qemu-img $fs/usr/bin
63 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
65 cp -a $install/usr/share/qemu $fs/usr/share
66 cp -a $src/docs $install/usr/share/doc
68 # Remove unneeded bios binaries
69 rm -f $fs/usr/share/qemu/*ppc*
70 rm -f $fs/usr/share/qemu/*sparc*
72 # Create qemu symlink
73 cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE
74 }