1 TERMUX_PKG_HOMEPAGE=http://php.net/
2 TERMUX_PKG_DESCRIPTION="Server-side, HTML-embedded scripting language"
3 TERMUX_PKG_VERSION=5.6.15
4 TERMUX_PKG_BUILD_REVISION=1
5 TERMUX_PKG_SRCURL=http://php.net/get/php-${TERMUX_PKG_VERSION}.tar.xz/from/this/mirror
6 TERMUX_PKG_FOLDERNAME=php-${TERMUX_PKG_VERSION}
7 TERMUX_PKG_DEPENDS="libxml2, liblzma"
8 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-iconv"
9 # http://php.net/manual/en/libxml.installation.php
10 # "If configure cannot find xml2-config in the directory specified by --with-libxml-dir,
11 # then it'll continue on and check the default locations."
12 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-libxml-dir=$TERMUX_PREFIX"
13 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-phar"
14 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_res_nsearch=no"
15 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --mandir=$TERMUX_PREFIX/share/man"
17 termux_step_pre_configure () {
18 # Run autoconf since we have patched config.m4 files.
23 termux_step_post_configure () {
24 perl -p -i -e 's/#define HAVE_RES_NSEARCH 1//' $TERMUX_PKG_BUILDDIR/main/php_config.h