2016-09-08 15:23:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.ginac.de/CLN/
|
|
|
|
TERMUX_PKG_DESCRIPTION="CLN is a library for efficient computations with all kinds of numbers in arbitrary precision"
|
|
|
|
TERMUX_PKG_VERSION=1.3.4
|
2017-01-18 00:42:05 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2016-09-08 15:23:31 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://www.ginac.de/CLN/cln-${TERMUX_PKG_VERSION}.tar.bz2
|
2017-03-27 01:56:11 +02:00
|
|
|
TERMUX_PKG_SHA256=2d99d7c433fb60db1e28299298a98354339bdc120d31bb9a862cafc5210ab748
|
2016-09-08 15:23:31 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-gnu-ld=no"
|
2016-09-08 21:35:37 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libgmp"
|
2016-09-08 15:23:31 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
|
|
|
|
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"
|
|
|
|
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
|
|
|
|
}
|