diff options
-rw-r--r-- | main/qemu/APKBUILD | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/main/qemu/APKBUILD b/main/qemu/APKBUILD index 766290827f..a1cc9cdf49 100644 --- a/main/qemu/APKBUILD +++ b/main/qemu/APKBUILD @@ -1,18 +1,19 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=qemu pkgver=2.1.2 -pkgrel=0 +pkgrel=1 pkgdesc="QEMU is a generic machine emulator and virtualizer" url="http://qemu.org/" arch="all" license="GPL-2 LGPL-2" -makedepends="zlib-dev sdl-dev alsa-lib-dev gnutls-dev ncurses-dev glib-dev +makedepends="zlib-dev alsa-lib-dev gnutls-dev ncurses-dev glib-dev libjpeg-turbo-dev libpng-dev vde2-dev spice-dev paxctl curl-dev libcap-dev libcap-ng-dev libaio-dev usbredir-dev util-linux-dev - gtk+2.0-dev vte-dev libusb-dev flex bison" + libusb-dev flex bison" depends= install="qemu.pre-install" subpackages=" +$pkgname-aarch64:aarch64 $pkgname-alpha:alpha $pkgname-arm:arm $pkgname-armeb:armeb @@ -31,6 +32,7 @@ $pkgname-or32:or32 $pkgname-ppc:ppc $pkgname-ppc64:ppc64 $pkgname-ppc64abi32:ppc64abi32 +$pkgname-ppc64le:ppc64le $pkgname-s390x:s390x $pkgname-sh4:sh4 $pkgname-sh4eb:sh4eb @@ -67,7 +69,6 @@ $pkgname-system-xtensaeb:system_xtensaeb $pkgname-unicore32:unicore32 $pkgname-x86_64:x86_64 -$pkgname-lang $pkgname-img $pkgname-guest-agent:guest " @@ -100,14 +101,14 @@ prepare() { Makefile.target } -build() { - cd "$srcdir"/$pkgname-$pkgver +_compile() { ./configure \ --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc \ - --audio-drv-list=oss,alsa,sdl \ + --libexecdir=/usr/lib/qemu \ --enable-vde \ + --enable-vnc \ --enable-spice \ --enable-virtfs \ --enable-curl \ @@ -116,20 +117,36 @@ build() { --enable-usb-redir \ --enable-guest-agent \ --enable-uuid \ - --enable-sdl \ - --enable-gtk \ --disable-bsd-user \ --enable-linux-user \ --disable-werror \ --disable-smartcard-nss \ --cc="${CC:-gcc}" \ + "$@" \ || return 1 - make ARFLAGS="rc" || return 1 +} + +build() { + cd "$srcdir"/$pkgname-$pkgver + _compile \ + --audio-drv-list=oss,alsa \ + --disable-sdl \ + --disable-gtk \ + || return 1 + # tests fails on x86 # http://lists.gnu.org/archive/html/qemu-devel/2012-11/msg01429.html # http://web.archiveorange.com/archive/v/21oVv8wOfpQGkyy8EK0N # make check || return 1 + +# cp -al "$srcdir"/$pkgname-$pkgver "$srcdir"/build-gtk +# cd "$srcdir"/build-gtk +# _compile \ +# --audio-drv-list=oss,alsa,sdl \ +# --enable-sdl \ +# --enable-gtk \ +# || return 1 } package() { @@ -147,6 +164,7 @@ _subsys() { mv "$pkgdir"/usr/bin/qemu-$1 "$subpkgdir"/usr/bin/ || return 1 } +aarch64() { _subsys aarch64; } alpha() { _subsys alpha; } arm() { _subsys arm; } armeb() { _subsys armeb; } @@ -165,6 +183,7 @@ or32() { _subsys or32; } ppc() { _subsys ppc; } ppc64() { _subsys ppc64; } ppc64abi32() { _subsys ppc64abi32; } +ppc64le() { _subsys ppc64le; } s390x() { _subsys s390x; } sh4() { _subsys sh4; } sh4eb() { _subsys sh4eb; } |