2018-05-25 12:38:52 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.ginac.de/CLN/
|
2016-09-08 15:23:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="CLN is a library for efficient computations with all kinds of numbers in arbitrary precision"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-01-13 00:23:46 +01:00
|
|
|
TERMUX_PKG_VERSION=1.3.6
|
2021-12-27 15:42:02 +01:00
|
|
|
TERMUX_PKG_REVISION=3
|
2019-11-27 10:24:10 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://www.ginac.de/CLN/cln-${TERMUX_PKG_VERSION}.tar.bz2
|
2020-01-13 00:23:46 +01:00
|
|
|
TERMUX_PKG_SHA256=f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a
|
2019-06-19 23:14:02 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, libgmp"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libcln-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libcln-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2016-09-08 15:23:31 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2016-09-08 17:00:56 +02:00
|
|
|
if [ $TERMUX_ARCH = arm ]; then
|
|
|
|
# See the following section in INSTALL:
|
|
|
|
# "(*) On these platforms, problems with the assembler routines have been
|
|
|
|
# reported. It may be best to add "-DNO_ASM" to CPPFLAGS before configuring."
|
|
|
|
CPPFLAGS+=" -DNO_ASM"
|
2018-05-30 01:06:26 +02:00
|
|
|
CXXFLAGS+=" -fintegrated-as"
|
2016-09-08 17:00:56 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
sed -i -e 's%tests/Makefile %%' configure.ac
|
|
|
|
sed -i -e 's%examples/Makefile %%' configure.ac
|
|
|
|
sed -i -e 's%benchmarks/Makefile %%' configure.ac
|
|
|
|
|
|
|
|
autoreconf
|
2016-09-08 15:23:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_configure() {
|
2016-09-08 17:00:56 +02:00
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
sed -i -e 's% tests%%' Makefile
|
|
|
|
sed -i -e 's% examples%%' Makefile
|
|
|
|
sed -i -e 's% benchmarks%%' Makefile
|
2021-12-27 15:42:02 +01:00
|
|
|
|
|
|
|
sed -i -e '/^#error /d' \
|
|
|
|
-e 's/^\(#define int_bitsize\) .*$/\1 32/' \
|
|
|
|
-e 's/^\(#define long_bitsize\) .*$/\1 '$TERMUX_ARCH_BITS'/' \
|
|
|
|
-e 's/^\(#define long_long_bitsize\) .*$/\1 64/' \
|
|
|
|
include/cln/intparam.h
|
2016-09-08 17:00:56 +02:00
|
|
|
}
|