mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
114 lines
2.0 KiB
Bash
114 lines
2.0 KiB
Bash
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-2014 PHP Group"
|
|
LICENSE="PHP License v3.01"
|
|
REVISION="5"
|
|
SOURCE_URI="https://php.net/get/php-$portVersion.tar.bz2/from/this/mirror"
|
|
CHECKSUM_SHA256="576f9001b612f5ddc22f447311bbec321e2c959b6a52259d664c4ba04ef044f1"
|
|
SOURCE_FILENAME="php-$portVersion.tar.bz2"
|
|
PATCHES="php-$portVersion.patch"
|
|
|
|
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
|
|
|
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:libicuuc
|
|
lib:libxml2
|
|
lib:libz
|
|
lib:libbz2
|
|
lib:libssl
|
|
lib:libcrypto
|
|
lib:libcurl
|
|
lib:libpcre
|
|
lib:libpng16
|
|
lib:libjpeg
|
|
lib:libfreetype
|
|
"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/pear.conf keep-old
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
devel:libicuuc
|
|
devel:libxml2
|
|
devel:libz
|
|
devel:libbz2
|
|
devel:libssl
|
|
devel:libcrypto
|
|
devel:libcurl
|
|
devel:libpcre
|
|
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()
|
|
{
|
|
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
|
|
}
|