ncurses: add xterm terminfo file back
[openembedded.git] / recipes / modphp / modphp5.inc
1 SECTION = "console/network"
2 DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the apache php module."
3 LICENSE = "PHP"
4 RDEPENDS = "apache2"
5 DEPENDS = "apache2-native apache2 zlib"
6 SRC_URI = "http://de3.php.net/distributions/php-${PV}.tar.bz2 \
7            file://configure.patch;patch=1 \
8           "
9
10 S = "${WORKDIR}/php-${PV}"
11
12 inherit autotools
13
14 FILES_${PN} = "${libdir}/apache2 /etc"
15 FILES_${PN}-dbg += "${libdir}/apache2/modules/.debug"
16
17 CFLAGS += " -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR_NATIVE}/apache2"
18
19 EXTRA_OECONF = "--with-apxs2=${STAGING_BINDIR_NATIVE}/apxs \
20                 --without-mysql \
21                 --enable-force-cgi-redirect \
22                 --disable-cgi \
23                 --disable-cli \
24                 --disable-pdo \
25                 --without-pear \
26                 --without-iconv \
27                 --disable-ipv6 \
28                 --disable-xml \
29                 --disable-xmlreader \
30                 --disable-xmlwriter \
31                 --disable-simplexml \
32                 --disable-libxml \
33                 --disable-dom \
34                 --with-zlib --with-zlib-dir=${STAGING_DIR}${layout_exec_prefix}/.. \
35                 --with-config-file-path=/etc/php/apache2-php5"
36
37 #               --with-libxml-dir=${STAGING_DIR_NATIVE}${layout_exec_prefix} \
38
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}"
42
43 acpaths = ""
44
45 #
46 # override the autotools do_configure, which runs autoconf,
47 # which breaks everything...
48 #
49 do_configure() {
50         export PHP_LIBXML_DIR=${STAGING_DIR_NATIVE}${layout_exec_prefix} 
51         oe_runconf
52 }
53
54 #
55 do_install  () {
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
64 }