diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-21 01:54:49 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-21 01:54:49 +0200 |
commit | 87d51868218b191d95a951e17bed4adba2567132 (patch) | |
tree | b1ca295f8a1785c7fa9826e82644b8331c2a207c /community | |
parent | 3f38afe39f6bbc819014bb1a57760525d8daa4e3 (diff) | |
download | aports-87d51868218b191d95a951e17bed4adba2567132.tar.bz2 aports-87d51868218b191d95a951e17bed4adba2567132.tar.xz |
community/rng-tools: fix build on ppc64le - requires libgcrypt
rngd_darn.c:28:2: error: #error power DARN support requires libgcrypt!
#error power DARN support requires libgcrypt!
^~~~~
rngd_darn.c:34:20: fatal error: gcrypt.h: No such file or directory
#include <gcrypt.h>
^
Diffstat (limited to 'community')
-rw-r--r-- | community/rng-tools/APKBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/community/rng-tools/APKBUILD b/community/rng-tools/APKBUILD index d102c0c55a..b84ca0e356 100644 --- a/community/rng-tools/APKBUILD +++ b/community/rng-tools/APKBUILD @@ -16,6 +16,13 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/nhorman/$pkgname/archive/v$p " builddir="$srcdir/$pkgname-$pkgver" +# power DARN support requires libgcrypt +_flags="" +case "$CARCH" in + ppc64le) makedepends="$makedepends libgcrypt-dev";; + *) _flags="--without-libgcrypt";; +esac + prepare() { default_prepare ./autogen.sh @@ -34,8 +41,8 @@ build() { --libexecdir=/usr/lib/rng-tools \ --sysconfdir=/etc \ --disable-silent-rules \ - --without-libgcrypt \ - --without-nistbeacon + --without-nistbeacon \ + $_flags make } |