c12d20557f930b040ac4fbb04ffd22113224e54b
[termux-packages] / packages / libtalloc / build.sh
1 TERMUX_PKG_HOMEPAGE=https://talloc.samba.org/talloc/doc/html/index.html
2 TERMUX_PKG_DESCRIPTION="Hierarchical, reference counted memory pool system with destructors"
3 TERMUX_PKG_VERSION=2.1.8
4 TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.tar.gz
5 TERMUX_PKG_BUILD_IN_SRC="yes"
6
7 termux_step_configure () {
8 # Force fresh install:
9 rm -f $TERMUX_PREFIX/include/talloc.h
10
11 # Make sure symlinks are installed:
12 rm $TERMUX_PREFIX/lib/libtalloc* || true
13
14 cd $TERMUX_PKG_SRCDIR
15
16 cat <<EOF > cross-answers.txt
17 Checking uname sysname type: "Linux"
18 Checking uname machine type: "dontcare"
19 Checking uname release type: "dontcare"
20 Checking uname version type: "dontcare"
21 Checking simple C program: OK
22 building library support: OK
23 Checking for large file support: OK
24 Checking for -D_FILE_OFFSET_BITS=64: OK
25 Checking for WORDS_BIGENDIAN: OK
26 Checking for C99 vsnprintf: OK
27 Checking for HAVE_SECURE_MKSTEMP: OK
28 rpath library support: OK
29 -Wl,--version-script support: OK
30 Checking correct behavior of strtoll: OK
31 Checking correct behavior of strptime: OK
32 Checking for HAVE_IFACE_GETIFADDRS: OK
33 Checking for HAVE_IFACE_IFCONF: OK
34 Checking for HAVE_IFACE_IFREQ: OK
35 Checking getconf LFS_CFLAGS: OK
36 Checking for large file support without additional flags: OK
37 Checking for working strptime: OK
38 Checking for HAVE_SHARED_MMAP: OK
39 Checking for HAVE_MREMAP: OK
40 Checking for HAVE_INCOHERENT_MMAP: OK
41 Checking getconf large file support flags work: OK
42 EOF
43
44 ./configure --prefix=$TERMUX_PREFIX \
45 --disable-rpath \
46 --cross-compile \
47 --cross-answers=cross-answers.txt
48 }