diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-15 14:02:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-16 07:35:57 +0000 |
commit | 1a666fee0f2571c7707b255063496fd7b6cd7f5b (patch) | |
tree | bfd0c8c60b5427d33f3d80348982f55722f35c15 /main/libvirt | |
parent | 512ddae7b2e7dc3d8278a22e7cd651f2c3f1960d (diff) | |
download | aports-1a666fee0f2571c7707b255063496fd7b6cd7f5b.tar.bz2 aports-1a666fee0f2571c7707b255063496fd7b6cd7f5b.tar.xz |
main/libvirt: only build xen support on x86_64
Diffstat (limited to 'main/libvirt')
-rw-r--r-- | main/libvirt/APKBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/main/libvirt/APKBUILD b/main/libvirt/APKBUILD index 8cdd6a1340..ed81e3e87c 100644 --- a/main/libvirt/APKBUILD +++ b/main/libvirt/APKBUILD @@ -2,7 +2,7 @@ pkgname=libvirt pkgver=1.1.1 _ver="${pkgver/_rc/-rc}" -pkgrel=0 +pkgrel=1 pkgdesc="A virtualization API for several hypervisor and container systems" url="http://libvirt.org/" arch="all" @@ -28,7 +28,7 @@ source="http://libvirt.org/sources/$pkgname-$pkgver.tar.gz uclibc-physmem.patch " -if [ "$ALPINE_LIBC" != "eglibc" ]; then +if [ "$CARCH" = "x86_64" ]; then subpackages="$subpackages $pkgname-xen" makedepends="$makedepends xen-dev" fi @@ -59,6 +59,10 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -lm" + local _xen_opt= + if [ "$CARCH" = x86_64 ]; then + _xen_opt="--with-libxl" + fi ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -67,7 +71,7 @@ build() { --mandir=/usr/share/man \ --infodir=/usr/share/info \ --libexec=/usr/lib/"$pkgname" \ - --with-libxl \ + $_xen_opt \ --with-polkit \ || return 1 make || return 1 |