Add libsasl package
[termux-packages] / packages / php / build.sh
CommitLineData
e054b9eb
FF
1TERMUX_PKG_HOMEPAGE=http://php.net/
2TERMUX_PKG_DESCRIPTION="Server-side, HTML-embedded scripting language"
3TERMUX_PKG_VERSION=5.6.15
4TERMUX_PKG_SRCURL=http://php.net/get/php-${TERMUX_PKG_VERSION}.tar.xz/from/this/mirror
5TERMUX_PKG_FOLDERNAME=php-${TERMUX_PKG_VERSION}
6TERMUX_PKG_DEPENDS="libxml2, liblzma"
7TERMUX_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."
11TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-libxml-dir=$TERMUX_PREFIX"
12TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-phar"
13TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_res_nsearch=no"
14TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --mandir=$TERMUX_PREFIX/share/man"
15
16termux_step_pre_configure () {
17 # Run autoconf since we have patched config.m4 files.
18 cd $TERMUX_PKG_SRCDIR
19 autoconf
20}
21
22termux_step_post_configure () {
23 perl -p -i -e 's/#define HAVE_RES_NSEARCH 1//' $TERMUX_PKG_BUILDDIR/main/php_config.h
24}