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