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-05-21 21:05:36 +02:00
|
|
|
# Nice to have: libseccomp libiscsi libusb
|
2013-04-07 21:42:10 +02:00
|
|
|
|
2009-03-08 19:43:24 +11:00
|
|
|
name=qemu
|
2013-06-28 22:35:16 +02:00
|
|
|
version=1.5.1
|
2013-04-24 16:02:55 +02:00
|
|
|
release=1
|
2012-07-14 21:07:48 +02:00
|
|
|
source=(http://wiki.qemu.org/download/qemu-$version.tar.bz2)
|
2009-03-08 19:43:24 +11:00
|
|
|
|
|
|
|
build() {
|
2012-08-24 15:50:33 +02:00
|
|
|
cd $name-$version
|
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-04-07 21:42:10 +02:00
|
|
|
--disable-system \
|
|
|
|
--disable-user \
|
|
|
|
--target-list=x86_64-linux-user,i386-linux-user,i386-softmmu,x86_64-softmmu
|
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 10:03:23 +11: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 19:43:24 +11:00
|
|
|
}
|