summaryrefslogtreecommitdiff
path: root/packages/php/php.inc
blob: e2ab04f486a6a9eed50847d0cb14e0b97588f41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the CGI."
HOMEPAGE = "http://www.php.net"
SECTION = "console/network"
LICENSE = "PHP"
DEPENDS = "zlib libxml2 mysql mysql-native virtual/libiconv php-native"

SRC_URI =     "http://us2.php.net/distributions/php-${PV}.tar.bz2\
               file://acinclude-xml2-config.patch;patch=1"

inherit autotools

CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
EXTRA_OECONF = "--with-cgi --enable-sockets --enable-pcntl \
                --with-mysql \
                --with-zlib --with-zlib-dir=${STAGING_LIBDIR}/.. \
                --without-libpng --without-libjpeg \
                --with-config-file-path=${sysconfdir}/php4"

EXTRA_OECONF += " --without-pear"
# Uncomment the following two lines, and comment the above to enable PEAR
#EXTRA_OECONF += " --with-pear-php-cli=${STAGING_BINDIR_NATIVE}/php"
#DEPENDS += " php-native"

acpaths = ""

do_install  () {
	oe_runmake 'INSTALL_ROOT=${D}' install
}