diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/modphp/modphp5.inc | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/modphp/modphp5.inc')
-rw-r--r-- | recipes/modphp/modphp5.inc | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/recipes/modphp/modphp5.inc b/recipes/modphp/modphp5.inc new file mode 100644 index 0000000000..3aaaf03e62 --- /dev/null +++ b/recipes/modphp/modphp5.inc @@ -0,0 +1,63 @@ +SECTION = "console/network" +DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the apache php module." +LICENSE = "PHP" +RDEPENDS = "apache2" +DEPENDS = "apache2-native apache2 zlib" +SRC_URI = "http://de3.php.net/distributions/php-${PV}.tar.bz2 \ + file://${FILESDIR}/configure.patch;patch=1" + +S = "${WORKDIR}/php-${PV}" + +inherit autotools + +FILES_${PN} = "${libdir}/apache2 /etc" +FILES_${PN}-dbg += "${libdir}/apache2/modules/.debug" + +CFLAGS += " -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR_NATIVE}/apache2" + +EXTRA_OECONF = "--with-apxs2=${STAGING_BINDIR_NATIVE}/apxs \ + --without-mysql \ + --enable-force-cgi-redirect \ + --disable-cgi \ + --disable-cli \ + --disable-pdo \ + --without-pear \ + --without-iconv \ + --disable-ipv6 \ + --disable-xml \ + --disable-xmlreader \ + --disable-xmlwriter \ + --disable-simplexml \ + --disable-libxml \ + --disable-dom \ + --with-zlib --with-zlib-dir=${STAGING_DIR}${layout_exec_prefix}/.. \ + --with-config-file-path=/etc/php/apache2-php5" + +# --with-libxml-dir=${STAGING_DIR_NATIVE}${layout_exec_prefix} \ + +# to get postgres support, add it to the DEPENDS above +# and uncomment this line. similar for mysql +#EXTRA_OECONF += " --with-pgsql=${STAGING_DIR_HOST}${layout_exec_prefix}" + +acpaths = "" + +# +# override the autotools do_configure, which runs autoconf, +# which breaks everything... +# +do_configure() { + export PHP_LIBXML_DIR=${STAGING_DIR_NATIVE}${layout_exec_prefix} + oe_runconf +} + +# +do_install () { + install -d ${D}/usr/lib/apache2/modules + install -d ${D}/etc/apache2/modules.d + install -d ${D}/etc/php/apache2-php5 + install -m 755 libs/libphp5.so ${D}/usr/lib/apache2/modules + install -m 644 ${FILESDIR}/70_mod_php5.conf ${D}/etc/apache2/modules.d + cat ${S}/php.ini-dist | \ + sed -e 's,extension_dir = \"\./\",extension_dir = \"/usr/lib/extensions\",' \ + > ${D}/etc/php/apache2-php5/php.ini +} |