wok-next view qemu/receipt @ rev 20763
Add csso-cli
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 18:53:48 2018 +0300 (2018-06-05) |
parents | bc4842f06e07 |
children | d5aab818505e |
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="http://qemu.org"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
14 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-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="qemu-arm qemu-mips qemu-x86_64 qemu"
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 -j 1 DESTDIR=$DESTDIR 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 CATEGORY="misc|for x86 hardware"
81 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 \
82 libcurl ncurses attr util-linux-uuid glib libusb"
83 TAGS="virtualization emulator"
84 ;;
85 esac
86 }