cln: unbreak aarch64, fix cross musl

This commit is contained in:
Alessio Sergi 2017-06-07 15:37:20 +02:00
parent 8c80ab84a1
commit 6dbfa83dd1
2 changed files with 16 additions and 7 deletions
srcpkgs/cln

View file

@ -0,0 +1,10 @@
--- src/timing/cl_t_current2.cc.orig 2009-05-10 22:32:32.000000000 +0200
+++ src/timing/cl_t_current2.cc 2017-06-07 15:14:54.972741636 +0200
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <sys/param.h> // defines HZ, unit for times() is 1/HZ seconds
#include <sys/times.h>
+ #include <linux/param.h>
extern "C" clock_t times (struct tms * buffer);
#endif
#ifdef HAVE_PERROR_DECL

View file

@ -5,20 +5,19 @@ revision=1
build_style=gnu-configure
maintainer="Orphaned <orphan@voidlinux.eu>"
makedepends="gmp-devel"
license="GPL"
homepage="http://www.ginac.de/CLN/"
short_desc="A library for efficient computations with all kinds of numbers in arbitrary precision"
distfiles="http://www.ginac.de/CLN/${pkgname}-${version}.tar.bz2"
license="GPL-2"
homepage="https://www.ginac.de/CLN/"
short_desc="Class library (C++) for numbers"
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
checksum=2d99d7c433fb60db1e28299298a98354339bdc120d31bb9a862cafc5210ab748
case "$XBPS_TARGET_MACHINE" in
arm*)
CPPFLAGS+=" -DNO_ASM";;
arm*|aarch64*) CPPFLAGS="-DNO_ASM";;
esac
cln-devel_package() {
short_desc+=" - development files"
depends="cln>=${version}_${revision}"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/libcln.so