wok-next view qemu/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | e70c0b9c5adf |
children | d43bf7aae921 |
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 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"
13 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
14 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev \
15 glib-dev autoconf automake libtool bison flex libusb-dev ncurses-dev"
16 SPLIT="qemu qemu-arm qemu-mips qemu-x86_64"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p $DESTIDR/usr/share/qemu/ia32
23 [ -s $SOURCES_REPOSITORY/$UEFIZIP ] || wget -P $SOURCES_REPOSITORY \
24 http://netassist.dl.sourceforge.net/project/edk2/OVMF/$UEFIZIP
25 unzip $SOURCES_REPOSITORY/$UEFIZIP OVMF.fd -d $DESTIDR/usr/share/qemu/ia32
27 patch -p0 < $stuff/cloop.u
29 TARGET="i386-softmmu, x86_64-softmmu, \
30 arm-softmmu, ppc-softmmu, mips-softmmu"
32 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
33 #--cross-prefix= --host-cc=
34 ./configure \
35 --prefix=/usr \
36 --sysconfdir=/etc \
37 --enable-sdl \
38 --enable-curses \
39 --audio-drv-list=alsa,oss \
40 --target-list="$TARGET" \
41 --cc=$BUILD_SYSTEM-gcc &&
42 make && make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 case $PACKAGE in
49 qemu)
50 UEFIZIP="OVMF-IA32-r15214.zip"
51 EXTRA_SOURCE_FILES="$UEFIZIP"
52 TAGS="virtualization emulator"
53 DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 \
54 libcurl ncurses attr util-linux-uuid glib libusb"
55 mkdir -p $fs/usr/bin $fs/usr/share
57 # /etc/qemu is for x86_64
58 #cp -a $install/etc $fs
60 cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin
61 cp -a $install/usr/bin/qemu-ga $fs/usr/bin
62 cp -a $install/usr/bin/qemu-io $fs/usr/bin
63 cp -a $install/usr/bin/qemu-img $fs/usr/bin
64 cp -a $install/usr/bin/qemu-nbd $fs/usr/bin
66 cp -a $install/usr/share/qemu $fs/usr/share
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 ;;
75 qemu-arm)
76 CAT="misc|General-purpose full virtualizer for ARM hardware."
77 TAGS="virtualization"
78 DEPENDS="qemu"
79 mkdir -p $fs/usr/bin
80 cp -a $install/usr/bin/qemu-*${PACKAGE#qemu-} $fs/usr/bin
81 cd $fs/usr/bin && ln -s qemu-system-${PACKAGE#qemu-} $PACKAGE
82 ;;
83 qemu-mips)
84 CAT="misc|General-purpose full virtualizer for MIPS hardware."
85 TAGS="virtualization"
86 DEPENDS="qemu"
87 mkdir -p $fs/usr/bin
88 cp -a $install/usr/bin/qemu-*${PACKAGE#qemu-} $fs/usr/bin
89 cd $fs/usr/bin && ln -s qemu-system-${PACKAGE#qemu-} $PACKAGE
90 ;;
91 qemu-x86_64)
92 CAT="misc|General-purpose full virtualizer for X86_64 CPU."
93 TAGS="virtualization"
94 UEFIZIP="OVMF-X64-r15214.zip"
95 EXTRA_SOURCE_FILES="$UEFIZIP"
96 DEPENDS="qemu"
97 mkdir -p $fs/usr/bin $fs/usr/share/qemu/x64 $fs/etc
98 cp -a $install/etc/qemu $fs/etc
99 cp -a $install/usr/bin/qemu-*${PACKAGE#qemu-} $fs/usr/bin
100 cd $fs/usr/bin && ln -s qemu-system-${PACKAGE#qemu-} $PACKAGE
101 [ -s $SOURCES_REPOSITORY/$UEFIZIP ] || wget -P $SOURCES_REPOSITORY \
102 http://netassist.dl.sourceforge.net/project/edk2/OVMF/$UEFIZIP
103 unzip $SOURCES_REPOSITORY/$UEFIZIP OVMF.fd -d $fs/usr/share/qemu/x64
104 ;;
105 esac
106 }