1 SECTION = "console/network"
2 DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the apache php module."
4 RDEPENDS_${PN} = "apache2"
5 DEPENDS = "apache2-native apache2 zlib"
6 SRC_URI = "http://de3.php.net/distributions/php-${PV}.tar.bz2 \
7 file://configure.patch \
10 S = "${WORKDIR}/php-${PV}"
14 FILES_${PN} = "${libdir}/apache2 /etc"
15 FILES_${PN}-dbg += "${libdir}/apache2/modules/.debug"
17 CFLAGS += " -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR_NATIVE}/apache2"
19 EXTRA_OECONF = "--with-apxs2=${STAGING_BINDIR_NATIVE}/apxs \
21 --enable-force-cgi-redirect \
34 --with-zlib --with-zlib-dir=${STAGING_DIR}${layout_exec_prefix}/.. \
35 --with-config-file-path=/etc/php/apache2-php5"
37 # --with-libxml-dir=${STAGING_DIR_NATIVE}${layout_exec_prefix} \
39 # to get postgres support, add it to the DEPENDS above
40 # and uncomment this line. similar for mysql
41 #EXTRA_OECONF += " --with-pgsql=${STAGING_DIR_HOST}${layout_exec_prefix}"
46 # override the autotools do_configure, which runs autoconf,
47 # which breaks everything...
50 export PHP_LIBXML_DIR=${STAGING_DIR_NATIVE}${layout_exec_prefix}
56 install -d ${D}/usr/lib/apache2/modules
57 install -d ${D}/etc/apache2/modules.d
58 install -d ${D}/etc/php/apache2-php5
59 install -m 755 libs/libphp5.so ${D}/usr/lib/apache2/modules
60 install -m 644 ${FILESDIR}/70_mod_php5.conf ${D}/etc/apache2/modules.d
61 cat ${S}/php.ini-dist | \
62 sed -e 's,extension_dir = \"\./\",extension_dir = \"/usr/lib/extensions\",' \
63 > ${D}/etc/php/apache2-php5/php.ini