Commit | Line | Data |
---|---|---|
94f1c11e DM |
1 | TERMUX_PKG_HOMEPAGE=http://www.ginac.de/CLN/ |
2 | TERMUX_PKG_DESCRIPTION="CLN is a library for efficient computations with all kinds of numbers in arbitrary precision" | |
3 | TERMUX_PKG_VERSION=1.3.4 | |
c31bc082 | 4 | TERMUX_PKG_REVISION=1 |
94f1c11e | 5 | TERMUX_PKG_SRCURL=http://www.ginac.de/CLN/cln-${TERMUX_PKG_VERSION}.tar.bz2 |
544181cd | 6 | TERMUX_PKG_SHA256=2d99d7c433fb60db1e28299298a98354339bdc120d31bb9a862cafc5210ab748 |
94f1c11e | 7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-gnu-ld=no" |
1aad91bd | 8 | TERMUX_PKG_DEPENDS="libgmp" |
94f1c11e DM |
9 | TERMUX_PKG_BUILD_IN_SRC=yes |
10 | ||
11 | termux_step_pre_configure() { | |
5a7db8c6 FF |
12 | if [ $TERMUX_ARCH = arm ]; then |
13 | # See the following section in INSTALL: | |
14 | # "(*) On these platforms, problems with the assembler routines have been | |
15 | # reported. It may be best to add "-DNO_ASM" to CPPFLAGS before configuring." | |
16 | CPPFLAGS+=" -DNO_ASM" | |
17 | fi | |
18 | ||
5a7db8c6 FF |
19 | sed -i -e 's%tests/Makefile %%' configure.ac |
20 | sed -i -e 's%examples/Makefile %%' configure.ac | |
21 | sed -i -e 's%benchmarks/Makefile %%' configure.ac | |
22 | ||
23 | autoreconf | |
94f1c11e DM |
24 | } |
25 | ||
26 | termux_step_post_configure() { | |
5a7db8c6 FF |
27 | cd $TERMUX_PKG_SRCDIR |
28 | sed -i -e 's% tests%%' Makefile | |
29 | sed -i -e 's% examples%%' Makefile | |
30 | sed -i -e 's% benchmarks%%' Makefile | |
31 | } |