c352216c63
Variables TERMUX_PKG_PLATFORM_INDEPENDENT TERMUX_DEBUG TERMUX_PKG_HAS_DEBUG TERMUX_PKG_ESSENTIAL TERMUX_SUBPKG_ESSENTIAL TERMUX_PKG_NO_STATICSPLIT TERMUX_PKG_BUILD_IN_SRC TERMUX_PKG_FORCE_CMAKE TERMUX_PKG_HOSTBUILD should not accept arbitrary values for marking them "enabled". Instead they should accept boolean values which makes them easier to handle and also makes their meaning clear. build-package.sh should make decision based on variable's value but not on whether it is set or empty. %ci:no-build
35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.ginac.de/CLN/
|
|
TERMUX_PKG_DESCRIPTION="CLN is a library for efficient computations with all kinds of numbers in arbitrary precision"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_VERSION=1.3.4
|
|
TERMUX_PKG_REVISION=6
|
|
TERMUX_PKG_SRCURL=https://fossies.org/linux/privat/cln-$TERMUX_PKG_VERSION.tar.xz
|
|
TERMUX_PKG_SHA256=c32e59b6afbcf8b84075ab454c42982429c6ea9675aee2bbda176cb85293e38f
|
|
TERMUX_PKG_DEPENDS="libc++, libgmp"
|
|
TERMUX_PKG_BREAKS="libcln-dev"
|
|
TERMUX_PKG_REPLACES="libcln-dev"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
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"
|
|
CXXFLAGS+=" -fintegrated-as"
|
|
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
|
|
}
|
|
|
|
termux_step_post_configure() {
|
|
cd $TERMUX_PKG_SRCDIR
|
|
sed -i -e 's% tests%%' Makefile
|
|
sed -i -e 's% examples%%' Makefile
|
|
sed -i -e 's% benchmarks%%' Makefile
|
|
}
|