wok-next view qemu/receipt @ rev 20558
openmotif: fix syntax error in receipt
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 07 16:14:50 2018 +0300 (2018-04-07) |
parents | d43bf7aae921 |
children | d6378d455338 |
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 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 --enable-sdl \
41 --enable-curses \
42 --audio-drv-list=alsa,oss \
43 --target-list="$TARGET" \
44 --cc=$BUILD_SYSTEM-gcc &&
45 make &&
46 make DESTDIR=$DESTDIR install || return 1
48 ln -s qemu-system-i386 $install/usr/bin/qemu
49 ln -s qemu-system-arm $install/usr/bin/qemu-arm
50 ln -s qemu-system-mips $install/usr/bin/qemu-mips
51 ln -s qemu-system-x86_64 $install/usr/bin/qemu-x86_64
52 }
54 genpkg_rules() {
55 case $PACKAGE in
56 qemu-arm)
57 copy qemu-system-arm qemu-arm
58 CAT="misc|for ARM hardware"
59 DEPENDS="qemu"
60 TAGS="virtualization"
61 ;;
62 qemu-mips)
63 copy qemu-system-mips qemu-mips
64 CAT="misc|for MIPS hardware"
65 DEPENDS="qemu"
66 TAGS="virtualization"
67 ;;
68 qemu-x86_64)
69 copy qemu-system-x86_64 qemu-x86_64 x64/OVMF.fd target-x86_64.conf
70 CAT="misc|for X86_64 CPU"
71 DEPENDS="qemu"
72 TAGS="virtualization"
73 ;;
74 qemu)
75 copy @std @rm
76 # Remove unneeded bios binaries
77 rm -f $fs/usr/share/qemu/*ppc* $fs/usr/share/qemu/*sparc*
78 CATEGORY="misc|for x86 hardware"
79 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 \
80 libcurl ncurses attr util-linux-uuid glib libusb"
81 TAGS="virtualization emulator"
82 ;;
83 esac
84 }