diff options
Diffstat (limited to 'meta-webserver/recipes-php/modphp/modphp5.inc')
| -rw-r--r-- | meta-webserver/recipes-php/modphp/modphp5.inc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/meta-webserver/recipes-php/modphp/modphp5.inc b/meta-webserver/recipes-php/modphp/modphp5.inc index 0d84ba4413..fdf7b18576 100644 --- a/meta-webserver/recipes-php/modphp/modphp5.inc +++ b/meta-webserver/recipes-php/modphp/modphp5.inc | |||
| @@ -2,11 +2,13 @@ SECTION = "console/network" | |||
| 2 | DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the apache php module." | 2 | DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the apache php module." |
| 3 | LICENSE = "PHP-3.0" | 3 | LICENSE = "PHP-3.0" |
| 4 | DEPENDS = "apache2-native apache2 zlib bzip2" | 4 | DEPENDS = "apache2-native apache2 zlib bzip2" |
| 5 | INC_PR = "r1" | ||
| 5 | 6 | ||
| 6 | SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2 \ | 7 | SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2 \ |
| 7 | file://configure.patch \ | 8 | file://configure.patch \ |
| 8 | file://pthread-check-threads-m4.patch \ | 9 | file://pthread-check-threads-m4.patch \ |
| 9 | file://70_mod_php5.conf \ | 10 | file://70_mod_php5.conf \ |
| 11 | file://php-5.3.14-aconf259.patch \ | ||
| 10 | " | 12 | " |
| 11 | 13 | ||
| 12 | S = "${WORKDIR}/php-${PV}" | 14 | S = "${WORKDIR}/php-${PV}" |
| @@ -41,25 +43,21 @@ EXTRA_OECONF = "--with-apxs2=${STAGING_BINDIR_CROSS}/apxs \ | |||
| 41 | --enable-mbstring \ | 43 | --enable-mbstring \ |
| 42 | --with-config-file-path=${sysconfdir}/php/apache2-php5" | 44 | --with-config-file-path=${sysconfdir}/php/apache2-php5" |
| 43 | 45 | ||
| 44 | PACKAGECONFIG ??= "" | 46 | PACKAGECONFIG ??= "mysql" |
| 45 | PACKAGECONFIG[mysql] = "--with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config,--without-mysqli,mysql5" | 47 | PACKAGECONFIG[mysql] = "--with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config,--without-mysqli,mysql5" |
| 46 | PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--without-pgsql,mysql5" | 48 | PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--without-pgsql,mysql5" |
| 47 | 49 | ||
| 48 | acpaths = "" | 50 | acpaths = "" |
| 49 | 51 | ||
| 50 | # | 52 | do_configure_prepend () { |
| 51 | # override the autotools do_configure, which runs autoconf, | 53 | rm -f build/libtool.m4 ltmain.sh aclocal.m4 |
| 52 | # which breaks everything... | 54 | find . -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_BINDIR_NATIVE}/httpd!' |
| 53 | # | 55 | } |
| 54 | do_configure() { | ||
| 55 | gnu-configize --force | ||
| 56 | find . -name config.m4 -o -name configure | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_BINDIR_NATIVE}/httpd!' | ||
| 57 | export PHP_LIBXML_DIR=${STAGING_DIR_NATIVE}${layout_exec_prefix} | ||
| 58 | oe_runconf | ||
| 59 | 56 | ||
| 57 | do_configure_append() { | ||
| 60 | # No libtool, we really don't want rpath set... | 58 | # No libtool, we really don't want rpath set... |
| 61 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool | 59 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${HOST_SYS}-libtool |
| 62 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool | 60 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${HOST_SYS}-libtool |
| 63 | } | 61 | } |
| 64 | 62 | ||
| 65 | do_install () { | 63 | do_install () { |
| @@ -76,6 +74,8 @@ do_install () { | |||
| 76 | install -d ${D}${bindir} | 74 | install -d ${D}${bindir} |
| 77 | install -m 755 scripts/phpize ${D}${bindir} | 75 | install -m 755 scripts/phpize ${D}${bindir} |
| 78 | install -m 755 scripts/php-config ${D}${bindir} | 76 | install -m 755 scripts/php-config ${D}${bindir} |
| 77 | cat aclocal-copy/libtool.m4 aclocal-copy/lt~obsolete.m4 aclocal-copy/ltoptions.m4 \ | ||
| 78 | aclocal-copy/ltsugar.m4 aclocal-copy/ltversion.m4 > build/libtool.m4 | ||
| 79 | 79 | ||
| 80 | oe_runmake install-build install-headers INSTALL_ROOT=${D} | 80 | oe_runmake install-build install-headers INSTALL_ROOT=${D} |
| 81 | } | 81 | } |
