wok-next annotate qemu/receipt @ rev 21037

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 06 16:35:54 2018 +0200 (2018-11-06)
parents def8a009cd97
children d457c4e37c1b
rev   line source
pascal@20145 1 # SliTaz package receipt v2.
pascal@438 2
pascal@438 3 PACKAGE="qemu"
pascal@17629 4 VERSION="2.0.2"
pascal@438 5 CATEGORY="misc"
al@20534 6 SHORT_DESC="General-purpose full virtualizer"
pascal@438 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://qemu.org/"
al@20534 10
pankso@13346 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@12978 12 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
pascal@438 13
al@21020 14 BUILD_DEPENDS="gettext-dev perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
al@19779 15 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev \
pascal@18000 16 glib-dev autoconf automake libtool bison flex libusb-dev ncurses-dev"
al@21020 17 SPLIT="$PACKAGE-arm $PACKAGE-mips $PACKAGE-x86_64 $PACKAGE"
pankso@10623 18
al@20534 19 compile_rules() {
al@20534 20 UEFIZIP="OVMF-IA32-r15214.zip"
al@20534 21 [ -s $SRC/$UEFIZIP ] ||
al@20534 22 wget -P $SRC $SF_MIRROR/edk2/$UEFIZIP
al@20534 23 mkdir -p $install/usr/share/qemu/ia32/
al@20534 24 unzip $SRC/$UEFIZIP OVMF.fd -d $install/usr/share/qemu/ia32/
pascal@19446 25
al@20534 26 UEFIZIP="OVMF-X64-r15214.zip"
al@20534 27 [ -s $SRC/$UEFIZIP ] ||
al@20534 28 wget -P $SRC $SF_MIRROR/edk2/$UEFIZIP
al@20534 29 mkdir -p $install/usr/share/qemu/x64/
al@20534 30 unzip $SRC/$UEFIZIP OVMF.fd -d $install/usr/share/qemu/x64/
pascal@19446 31
pankso@10623 32 TARGET="i386-softmmu, x86_64-softmmu, \
pankso@10623 33 arm-softmmu, ppc-softmmu, mips-softmmu"
pankso@12978 34
pascal@18000 35 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pankso@10623 36 #--cross-prefix= --host-cc=
al@20670 37
al@20670 38 # interference between our variable $install and configure's inner variable $install
al@20670 39 install=install \
pankso@10623 40 ./configure \
al@20671 41 --prefix=/usr \
pankso@10623 42 --enable-sdl \
pascal@18000 43 --enable-curses \
pankso@10623 44 --audio-drv-list=alsa,oss \
pankso@10623 45 --target-list="$TARGET" \
pankso@10623 46 --cc=$BUILD_SYSTEM-gcc &&
al@20534 47 make &&
al@21020 48 make -j1 DESTDIR=$install install || return 1
al@20534 49
al@20534 50 ln -s qemu-system-i386 $install/usr/bin/qemu
al@20534 51 ln -s qemu-system-arm $install/usr/bin/qemu-arm
al@20534 52 ln -s qemu-system-mips $install/usr/bin/qemu-mips
al@20534 53 ln -s qemu-system-x86_64 $install/usr/bin/qemu-x86_64
pascal@438 54 }
pascal@438 55
al@20534 56 genpkg_rules() {
pascal@20145 57 case $PACKAGE in
al@20534 58 qemu-arm)
al@20534 59 copy qemu-system-arm qemu-arm
al@20534 60 CAT="misc|for ARM hardware"
al@20534 61 DEPENDS="qemu"
al@20534 62 TAGS="virtualization"
al@20534 63 ;;
al@20534 64 qemu-mips)
al@20534 65 copy qemu-system-mips qemu-mips
al@20534 66 CAT="misc|for MIPS hardware"
al@20534 67 DEPENDS="qemu"
al@20534 68 TAGS="virtualization"
al@20534 69 ;;
al@20534 70 qemu-x86_64)
al@20534 71 copy qemu-system-x86_64 qemu-x86_64 x64/OVMF.fd target-x86_64.conf
al@20534 72 CAT="misc|for X86_64 CPU"
al@20534 73 DEPENDS="qemu"
al@20534 74 TAGS="virtualization"
al@20534 75 ;;
al@20534 76 qemu)
al@20534 77 copy @std @rm
al@20534 78 # Remove unneeded bios binaries
al@20534 79 rm -f $fs/usr/share/qemu/*ppc* $fs/usr/share/qemu/*sparc*
al@20534 80 CATEGORY="misc|for x86 hardware"
al@20534 81 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 \
pascal@20145 82 libcurl ncurses attr util-linux-uuid glib libusb"
al@20534 83 TAGS="virtualization emulator"
al@20534 84 ;;
pascal@20145 85 esac
pascal@438 86 }