DESCRIPTION="php - hypertext preprocessor" 
HOMEPAGE="http://www.php.net" 
SRC_URI="http://php.net/distributions/php-5.3.5.tar.bz2"
CHECKSUM_MD5="8aaf20c95e91f25c5b6a591e5d6d61b9"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/libpcre >= 8.00
	"
BUILD()
{
	cd php-5.3.5
	libtoolize --force --copy --install
	aclocal
	autoconf
	export LIBS="-lnetwork"
	./configure --prefix=`finddir B_COMMON_DIRECTORY` \
		--includedir=`finddir B_COMMON_DIRECTORY`/include \
		--libdir=`finddir B_COMMON_LIB_DIRECTORY` \
		--enable-shared \
		--enable-static \
		--enable-dom \
		--enable-sqlite-utf8 \
		--enable-xml=shared \
		--enable-dba=shared \
		--enable-ftp \
		--enable-sqlite-utf8 \
#		--enable-sockets \
		--with-bz2=`finddir B_COMMON_DIRECTORY` \
		--with-zlib-dir=`finddir B_COMMON_DIRECTORY` \
		--with-icu-dir=/boot/system/lib \
		--with-libxml-dir=`finddir B_COMMON_DIRECTORY` \
		--with-gd-dir=`finddir B_COMMON_DIRECTORY` \
		--with-png-dir=`finddir B_COMMON_DIRECTORY` \
		--with-jpeg-dir=`finddir B_COMMON_LIB_DIRECTORY` \
		--with-readline=`finddir B_COMMON_DIRECTORY` \
		--with-freetype-dir=/boot/develop/headers/3rdparty/freetype \
		--with-openssl-dir=`finddir B_COMMON_DIRECTORY` \
		--with-openssl=`finddir B_COMMON_DIRECTORY` \
		--without-iconv

	make
}

INSTALL()
{
	cd php-5.3.5
	make install INSTALL_ROOT=${DESTDIR}
}

TEST()
{
	cd php-5.3.5
	make test
}

COPYRIGHT="2001-2011 PHP Group"
LICENSE="PHP License v3.01"
