2013-04-07 21:42:10 +02:00
|
|
|
# Description: Fast CPU emulator and virtualizer for the x86 platform
|
2009-09-19 01:05:25 +02:00
|
|
|
# URL: http://www.qemu.org
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Packager: Lucas Hazel, lucas at die dot net dot au
|
|
|
|
# Depends on: libsdl
|
2013-10-10 18:56:22 +02:00
|
|
|
# Nice to have: libseccomp libiscsi libusb usbredir
|
2013-04-07 21:42:10 +02:00
|
|
|
|
2009-03-08 09:43:24 +01:00
|
|
|
name=qemu
|
2014-04-17 23:50:08 +02:00
|
|
|
version=2.0.0
|
2014-04-20 20:57:38 +02:00
|
|
|
release=2
|
2014-04-17 23:50:08 +02:00
|
|
|
source=(http://wiki.qemu.org/download/qemu-$version.tar.bz2)
|
2009-03-08 09:43:24 +01:00
|
|
|
|
|
|
|
build() {
|
2014-04-16 17:49:36 +02:00
|
|
|
|
2012-08-24 15:50:33 +02:00
|
|
|
cd $name-$version
|
2014-04-16 17:49:36 +02:00
|
|
|
|
2009-09-19 01:05:25 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--cc="${CC:=gcc}" \
|
2010-10-19 22:32:20 +02:00
|
|
|
--host-cc="${CC:=gcc}" \
|
|
|
|
--sysconfdir=/etc \
|
2013-04-07 21:42:10 +02:00
|
|
|
--disable-docs \
|
|
|
|
--libexecdir=/usr/lib/qemu \
|
2013-06-30 13:43:44 +02:00
|
|
|
--disable-gtk \
|
2013-11-29 20:37:14 +01:00
|
|
|
--localstatedir=/var \
|
2013-04-07 21:42:10 +02:00
|
|
|
--target-list=x86_64-linux-user,i386-linux-user,i386-softmmu,x86_64-softmmu
|
2011-08-12 00:11:24 +02:00
|
|
|
|
2014-03-24 18:29:53 +01:00
|
|
|
# fix include issues with libcap
|
|
|
|
sed -i -e '/#include "qemu\/xattr.h"/d' \
|
|
|
|
-e 's|#include <sys/resource.h>|#include <sys/resource.h>\r\n#include "qemu\/xattr.h"|g' \
|
|
|
|
fsdev/virtfs-proxy-helper.c
|
|
|
|
|
2011-08-12 00:11:24 +02:00
|
|
|
# fix include issues with nspr
|
|
|
|
echo 'QEMU_CFLAGS+=-I/usr/include/nspr' >> libcacard/Makefile
|
2013-02-17 00:54:49 +01:00
|
|
|
make ${MAKEFLAGS:=}
|
2009-09-19 01:05:25 +02:00
|
|
|
make DESTDIR=$PKG install
|
2009-03-11 00:03:23 +01:00
|
|
|
|
2011-05-17 10:08:51 +02:00
|
|
|
make qemu.1 qemu-img.1 qemu-nbd.8
|
|
|
|
install -D -m 644 qemu.1 $PKG/usr/man/man1/qemu.1
|
|
|
|
install -D -m 644 qemu-img.1 $PKG/usr/man/man1/qemu-img.1
|
|
|
|
install -D -m 644 qemu-nbd.8 $PKG/usr/man/man8/qemu-nbd.8
|
2013-05-21 21:05:36 +02:00
|
|
|
|
|
|
|
rm -rf $PKG/usr/share/locale
|
2009-03-08 09:43:24 +01:00
|
|
|
}
|