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
61 lines
2.0 KiB
Bash
61 lines
2.0 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://talloc.samba.org/talloc/doc/html/index.html
|
|
TERMUX_PKG_DESCRIPTION="Hierarchical, reference counted memory pool system with destructors"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_VERSION=2.1.14
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SHA256=b185602756a628bac507fa8af8b9df92ace69d27c0add5dab93190ad7c3367ce
|
|
TERMUX_PKG_BREAKS="libtalloc-dev"
|
|
TERMUX_PKG_REPLACES="libtalloc-dev"
|
|
TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_configure() {
|
|
# Certain packages are not safe to build on device because their
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
fi
|
|
|
|
# Force fresh install:
|
|
rm -f $TERMUX_PREFIX/include/talloc.h
|
|
|
|
# Make sure symlinks are installed:
|
|
rm $TERMUX_PREFIX/lib/libtalloc* || true
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
cat <<EOF > cross-answers.txt
|
|
Checking uname sysname type: "Linux"
|
|
Checking uname machine type: "dontcare"
|
|
Checking uname release type: "dontcare"
|
|
Checking uname version type: "dontcare"
|
|
Checking simple C program: OK
|
|
building library support: OK
|
|
Checking for large file support: OK
|
|
Checking for -D_FILE_OFFSET_BITS=64: OK
|
|
Checking for WORDS_BIGENDIAN: OK
|
|
Checking for C99 vsnprintf: OK
|
|
Checking for HAVE_SECURE_MKSTEMP: OK
|
|
rpath library support: OK
|
|
-Wl,--version-script support: FAIL
|
|
Checking correct behavior of strtoll: OK
|
|
Checking correct behavior of strptime: OK
|
|
Checking for HAVE_IFACE_GETIFADDRS: OK
|
|
Checking for HAVE_IFACE_IFCONF: OK
|
|
Checking for HAVE_IFACE_IFREQ: OK
|
|
Checking getconf LFS_CFLAGS: OK
|
|
Checking for large file support without additional flags: OK
|
|
Checking for working strptime: OK
|
|
Checking for HAVE_SHARED_MMAP: OK
|
|
Checking for HAVE_MREMAP: OK
|
|
Checking for HAVE_INCOHERENT_MMAP: OK
|
|
Checking getconf large file support flags work: OK
|
|
EOF
|
|
|
|
./configure --prefix=$TERMUX_PREFIX \
|
|
--disable-rpath \
|
|
--disable-python \
|
|
--cross-compile \
|
|
--cross-answers=cross-answers.txt
|
|
}
|