SUMMARY="A popular general-purpose scripting language" DESCRIPTION="PHP is a popular general-purpose scripting language that is \ especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most \ popular websites in the world." HOMEPAGE="https://php.net/" COPYRIGHT="2001-2018 PHP Group" LICENSE="PHP License v3.01" REVISION="2" SOURCE_URI="https://php.net/get/php-$portVersion.tar.bz2/from/this/mirror" CHECKSUM_SHA256="886ad63d05d94ea3e54322691aadea0cf1d4bcdb4450b02fe300e5b570788b23" SOURCE_FILENAME="php-$portVersion.tar.bz2" PATCHES="php-$portVersion.patchset" ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" GLOBAL_WRITABLE_FILES=" settings/pear.conf keep-old " PROVIDES=" php = $portVersion cmd:pear cmd:peardev cmd:pecl cmd:phar cmd:phar.phar cmd:php cmd:php_cgi cmd:php_config cmd:phpize " REQUIRES=" haiku lib:libbz2 lib:libcrypto lib:libcurl lib:libfreetype lib:libicuuc lib:libjpeg lib:libnghttp2 lib:libpcre lib:libpng16 lib:libssl lib:libxml2 lib:libz " BUILD_REQUIRES=" devel:libbz2 devel:libcrypto devel:libcurl devel:libfreetype devel:libicuuc devel:libjpeg devel:libnghttp2 devel:libpcre devel:libpng16 devel:libssl devel:libxml2 devel:libz " BUILD_PREREQUIRES=" haiku_devel cmd:autoreconf cmd:awk cmd:bison cmd:dos2unix cmd:freetype_config cmd:gcc cmd:icu_config cmd:make cmd:pkg_config cmd:xml2_config " PATCH() { dos2unix Zend/zend_language_scanner.l dos2unix Zend/zend_language_scanner.c } BUILD() { autoreconf autoconf runConfigure ./configure \ --with-libxml-dir=`finddir B_SYSTEM_DIRECTORY` \ --with-zlib-dir=`finddir B_SYSTEM_DIRECTORY` --with-zlib=shared \ --with-openssl \ --with-curl \ --with-gd \ --with-pcre-dir=`finddir B_SYSTEM_DIRECTORY` \ --with-png-dir=`finddir B_SYSTEM_DIRECTORY` \ --with-jpeg-dir=`finddir B_SYSTEM_DIRECTORY` \ --with-freetype-dir=`finddir B_SYSTEM_DIRECTORY` \ --disable-opcache \ --enable-intl \ --enable-ftp \ --enable-soap \ --without-iconv \ --disable-debug make $jobArgs } INSTALL() { make install } TEST() { make test }