wok-next view qemu/receipt @ rev 21280
gimp: added build dependencies
author | Hans-G?nter Theisgen |
---|---|
date | Sat Dec 07 17:24:40 2019 +0100 (2019-12-07) |
parents | e7e7475e84c9 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="qemu"
4 VERSION="2.0.2"
5 CATEGORY="misc"
6 SHORT_DESC="General-purpose full virtualizer"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.qemu.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
14 BUILD_DEPENDS="gettext-dev perl alsa-lib-dev gnutls-dev sdl-dev bluez-dev \
15 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev \
16 glib-dev autoconf automake libtool bison flex libusb-dev ncurses-dev"
17 SPLIT="$PACKAGE-arm $PACKAGE-mips $PACKAGE-x86_64 $PACKAGE"
19 compile_rules() {
20 UEFIZIP="OVMF-IA32-r15214.zip"
21 [ -s $SRC/$UEFIZIP ] ||
22 wget -P $SRC $SF_MIRROR/edk2/$UEFIZIP
23 mkdir -p $install/usr/share/qemu/ia32/
24 unzip $SRC/$UEFIZIP OVMF.fd -d $install/usr/share/qemu/ia32/
26 UEFIZIP="OVMF-X64-r15214.zip"
27 [ -s $SRC/$UEFIZIP ] ||
28 wget -P $SRC $SF_MIRROR/edk2/$UEFIZIP
29 mkdir -p $install/usr/share/qemu/x64/
30 unzip $SRC/$UEFIZIP OVMF.fd -d $install/usr/share/qemu/x64/
32 TARGET="i386-softmmu, x86_64-softmmu, \
33 arm-softmmu, ppc-softmmu, mips-softmmu"
35 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
36 #--cross-prefix= --host-cc=
38 # interference between our variable $install and configure's inner variable $install
39 install=install \
40 ./configure \
41 --prefix=/usr \
42 --enable-sdl \
43 --enable-curses \
44 --audio-drv-list=alsa,oss \
45 --target-list="$TARGET" \
46 --cc=$BUILD_SYSTEM-gcc &&
47 make &&
48 make -j1 DESTDIR=$install install || return 1
50 ln -s qemu-system-i386 $install/usr/bin/qemu
51 ln -s qemu-system-arm $install/usr/bin/qemu-arm
52 ln -s qemu-system-mips $install/usr/bin/qemu-mips
53 ln -s qemu-system-x86_64 $install/usr/bin/qemu-x86_64
54 }
56 genpkg_rules() {
57 case $PACKAGE in
58 qemu-arm)
59 copy qemu-system-arm qemu-arm
60 CAT="misc|for ARM hardware"
61 DEPENDS="qemu"
62 TAGS="virtualization"
63 ;;
64 qemu-mips)
65 copy qemu-system-mips qemu-mips
66 CAT="misc|for MIPS hardware"
67 DEPENDS="qemu"
68 TAGS="virtualization"
69 ;;
70 qemu-x86_64)
71 copy qemu-system-x86_64 qemu-x86_64 x64/OVMF.fd target-x86_64.conf
72 CAT="misc|for X86_64 CPU"
73 DEPENDS="qemu"
74 TAGS="virtualization"
75 ;;
76 qemu)
77 copy @std @rm
78 # Remove unneeded bios binaries
79 rm -f $fs/usr/share/qemu/*ppc* $fs/usr/share/qemu/*sparc*
80 CAT="misc|for x86 hardware"
81 DEPENDS="alsa-lib gnutls sdl bluez libtasn1 libsasl vde2 \
82 libcurl ncurses attr util-linux-uuid glib libusb"
83 TAGS="virtualization emulator"
84 ;;
85 esac
86 }