php: enable more features.

This commit is contained in:
Augustin Cavalier
2015-01-15 21:08:00 -05:00
parent 4c499801a2
commit 28d5b9755c
3 changed files with 231 additions and 40 deletions

View File

@@ -5,7 +5,7 @@ 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"
REVISION="1"
REVISION="2"
COPYRIGHT="2001-2014 PHP Group"
LICENSE="PHP License v3.01"
ARCHITECTURES="x86_gcc2"
@@ -13,7 +13,7 @@ ARCHITECTURES="x86_gcc2"
SRC_URI="https://php.net/get/php-$portVersion.tar.bz2/from/this/mirror"
CHECKSUM_SHA256="576f9001b612f5ddc22f447311bbec321e2c959b6a52259d664c4ba04ef044f1"
SRC_FILENAME="php-$portVersion.tar.bz2"
PATCHES="php-$portVersion.patchset"
PATCHES="php-$portVersion.patch"
PROVIDES="
php = $portVersion
@@ -34,28 +34,68 @@ GLOBAL_WRITABLE_FILES="
REQUIRES="
haiku
icu
lib:libxml2
lib:libz
lib:libssl
lib:libcrypto
lib:libcurl
lib:libpng16
lib:libjpeg
lib:libfreetype
"
BUILD_REQUIRES="
icu_devel
devel:libxml2
devel:libz
devel:libssl
devel:libcrypto
devel:libcurl
devel:libpng16
devel:libjpeg
devel:libfreetype
"
BUILD_PREREQUIRES="
haiku_devel
cmd:autoreconf
cmd:awk
cmd:bison
cmd:dos2unix
cmd:gcc
cmd:make
cmd:pkg_config
cmd:freetype_config
cmd:xml2_config
cmd:icu_config
"
PATCH()
{
dos2unix Zend/zend_language_scanner.l
dos2unix Zend/zend_language_scanner.c
}
BUILD()
{
runConfigure ./configure --with-libxml-dir=/system --without-iconv
dos2unix Zend/zend_language_scanner.l
dos2unix Zend/zend_language_scanner.c
autoreconf
runConfigure ./configure \
--with-libxml-dir=/system \
--with-zlib-dir=/system \
--with-openssl \
--with-curl \
--with-gd \
--with-png-dir=/system \
--with-jpeg-dir=/system \
--with-freetype-dir=/system \
--disable-opcache \
--enable-intl \
--enable-ftp \
--enable-soap \
--without-iconv \
--disable-debug
make $jobArgs
}