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_SRCURL
=http
://php.net
/get
/php-
${TERMUX_PKG_VERSION}.
tar.xz
/from
/this
/mirror
5 TERMUX_PKG_FOLDERNAME
=php-
${TERMUX_PKG_VERSION}
6 TERMUX_PKG_DEPENDS
="libxml2, liblzma"
7 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
="--without-iconv"
8 # http://php.net/manual/en/libxml.installation.php
9 # "If configure cannot find xml2-config in the directory specified by --with-libxml-dir,
10 # then it'll continue on and check the default locations."
11 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
+=" --with-libxml-dir=$TERMUX_PREFIX"
12 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
+=" --disable-phar"
13 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
+=" ac_cv_func_res_nsearch=no"
14 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
+=" --mandir=$TERMUX_PREFIX/share/man"
16 termux_step_pre_configure
() {
17 # Run autoconf since we have patched config.m4 files.
22 termux_step_post_configure
() {
23 perl
-p
-i
-e
's/#define HAVE_RES_NSEARCH 1//' $TERMUX_PKG_BUILDDIR/main
/php_config.h