summaryrefslogtreecommitdiffstats
path: root/x11/qemu
diff options
context:
space:
mode:
Diffstat (limited to 'x11/qemu')
-rw-r--r--x11/qemu/APKBUILD42
-rw-r--r--x11/qemu/qemu-0.10.3-nopl-fix.patch32
-rw-r--r--x11/qemu/qemu.pre-install3
3 files changed, 77 insertions, 0 deletions
diff --git a/x11/qemu/APKBUILD b/x11/qemu/APKBUILD
new file mode 100644
index 00000000..7cacc742
--- /dev/null
+++ b/x11/qemu/APKBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qemu
+pkgver=0.10.6
+pkgrel=0
+pkgdesc="QEMU is a generic machine emulator and virtualizer"
+url="http://www.nongnu.org/qemu/"
+license="GPL-2 LGPL-2"
+makedepends="sdl-dev alsa-lib-dev gnutls-dev"
+depends=
+install="qemu.pre-install"
+source="http://savannah.nongnu.org/download/$pkgname/$pkgname-$pkgver.tar.gz
+ qemu-0.10.3-nopl-fix.patch"
+
+build()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ # avoid fdt till an updated release appears
+ sed -i -e 's:fdt="yes":fdt="no":' configure
+ # prevent docs to get automatically installed
+ sed -i '/$(DESTDIR)$(docdir)/d' Makefile
+ # Alter target makefiles to accept CFLAGS
+ sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+ Makefile Makefile.target tests/Makefile
+ sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
+ Makefile.target
+ patch -p0 -i ../qemu-0.10.3-nopl-fix.patch || return 1
+ export CFLAGS="$CFLAGS -fno-pie -fno-stack-protector"
+
+ ./configure --prefix=/usr \
+ --audio-drv-list=oss,alsa,sdl \
+ --audio-card-list=ac97,sb16,es1370,adlib \
+ --disable-darwin-user \
+ --disable-bsd-user \
+ --disable-kqemu \
+ --cc="$CC"
+
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="e28f4b2d6faef178da44c03224feecb6 qemu-0.10.6.tar.gz
+aef31109b7cde6e31b9dac37c3f8a033 qemu-0.10.3-nopl-fix.patch"
diff --git a/x11/qemu/qemu-0.10.3-nopl-fix.patch b/x11/qemu/qemu-0.10.3-nopl-fix.patch
new file mode 100644
index 00000000..bdef0efc
--- /dev/null
+++ b/x11/qemu/qemu-0.10.3-nopl-fix.patch
@@ -0,0 +1,32 @@
+--- i386-dis.c 2009-03-22 00:05:48.000000000 +0100
++++ i386-dis_new.c 2009-04-21 08:31:08.000000000 +0200
+@@ -784,13 +784,13 @@
+ { "movhpX", EX, XM, SIMD_Fixup, 'l' },
+ /* 18 */
+ { GRP14 },
+- { "(bad)", XX, XX, XX },
+- { "(bad)", XX, XX, XX },
+- { "(bad)", XX, XX, XX },
+- { "(bad)", XX, XX, XX },
+- { "(bad)", XX, XX, XX },
+- { "(bad)", XX, XX, XX },
+- { "(bad)", XX, XX, XX },
++ { "nopQ", Ev, XX, XX },
++ { "nopQ", Ev, XX, XX },
++ { "nopQ", Ev, XX, XX },
++ { "nopQ", Ev, XX, XX },
++ { "nopQ", Ev, XX, XX },
++ { "nopQ", Ev, XX, XX },
++ { "nopQ", Ev, XX, XX },
+ /* 20 */
+ { "movL", Rm, Cm, XX },
+ { "movL", Rm, Dm, XX },
+@@ -1072,7 +1072,7 @@
+ /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
+ /* ------------------------------- */
+ /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */
+- /* 10 */ 1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0, /* 1f */
++ /* 10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 1f */
+ /* 20 */ 1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1, /* 2f */
+ /* 30 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 3f */
+ /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */
diff --git a/x11/qemu/qemu.pre-install b/x11/qemu/qemu.pre-install
new file mode 100644
index 00000000..42ec0482
--- /dev/null
+++ b/x11/qemu/qemu.pre-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+addgroup kvm