2015-09-05 00:11:55 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://talloc.samba.org/talloc/doc/html/index.html
|
|
|
|
TERMUX_PKG_DESCRIPTION="Hierarchical, reference counted memory pool system with destructors"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2019-12-25 21:39:46 +01:00
|
|
|
TERMUX_PKG_VERSION=2.3.1
|
2019-08-16 14:57:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.tar.gz
|
2019-12-25 21:39:46 +01:00
|
|
|
TERMUX_PKG_SHA256=ef4822d2fdafd2be8e0cabc3ec3c806ae29b8268e932c5e9a4cd5585f37f9f77
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libtalloc-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libtalloc-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-09-05 00:11:55 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_configure() {
|
2019-08-08 14:25:54 +02:00
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
|
2016-03-22 01:08:20 +01:00
|
|
|
# Force fresh install:
|
|
|
|
rm -f $TERMUX_PREFIX/include/talloc.h
|
|
|
|
|
2016-01-11 00:01:08 +01:00
|
|
|
# Make sure symlinks are installed:
|
2016-03-20 10:26:22 +01:00
|
|
|
rm $TERMUX_PREFIX/lib/libtalloc* || true
|
2016-01-11 00:01:08 +01:00
|
|
|
|
2015-09-05 00:11:55 +02:00
|
|
|
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
|
2016-08-15 01:18:26 +02:00
|
|
|
-Wl,--version-script support: FAIL
|
2015-09-05 00:11:55 +02:00
|
|
|
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 \
|
2016-09-29 01:51:21 +02:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-python \
|
|
|
|
--cross-compile \
|
|
|
|
--cross-answers=cross-answers.txt
|
2015-09-05 00:11:55 +02:00
|
|
|
}
|
2019-08-16 14:57:26 +02:00
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
cd $TERMUX_PKG_SRCDIR/bin/default
|
2019-12-25 21:39:46 +01:00
|
|
|
$AR rcu libtalloc.a talloc*.o
|
2019-08-16 14:57:26 +02:00
|
|
|
install -Dm600 libtalloc.a $TERMUX_PREFIX/lib/libtalloc.a
|
|
|
|
}
|