diff options
Diffstat (limited to 'meta-webserver/recipes-php')
| -rw-r--r-- | meta-webserver/recipes-php/modphp/modphp5.inc | 56 | ||||
| -rw-r--r-- | meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb | 8 | ||||
| -rw-r--r-- | meta-webserver/recipes-php/xdebug/xdebug_2.2.1.bb | 14 |
3 files changed, 39 insertions, 39 deletions
diff --git a/meta-webserver/recipes-php/modphp/modphp5.inc b/meta-webserver/recipes-php/modphp/modphp5.inc index fdf7b18576..a49dc75232 100644 --- a/meta-webserver/recipes-php/modphp/modphp5.inc +++ b/meta-webserver/recipes-php/modphp/modphp5.inc | |||
| @@ -9,7 +9,7 @@ SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2 \ | |||
| 9 | file://pthread-check-threads-m4.patch \ | 9 | file://pthread-check-threads-m4.patch \ |
| 10 | file://70_mod_php5.conf \ | 10 | file://70_mod_php5.conf \ |
| 11 | file://php-5.3.14-aconf259.patch \ | 11 | file://php-5.3.14-aconf259.patch \ |
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | S = "${WORKDIR}/php-${PV}" | 14 | S = "${WORKDIR}/php-${PV}" |
| 15 | 15 | ||
| @@ -50,45 +50,45 @@ PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--witho | |||
| 50 | acpaths = "" | 50 | acpaths = "" |
| 51 | 51 | ||
| 52 | do_configure_prepend () { | 52 | do_configure_prepend () { |
| 53 | rm -f build/libtool.m4 ltmain.sh aclocal.m4 | 53 | rm -f build/libtool.m4 ltmain.sh aclocal.m4 |
| 54 | find . -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_BINDIR_NATIVE}/httpd!' | 54 | find . -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_BINDIR_NATIVE}/httpd!' |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | do_configure_append() { | 57 | do_configure_append() { |
| 58 | # No libtool, we really don't want rpath set... | 58 | # No libtool, we really don't want rpath set... |
| 59 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${HOST_SYS}-libtool | 59 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${HOST_SYS}-libtool |
| 60 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${HOST_SYS}-libtool | 60 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${HOST_SYS}-libtool |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | do_install () { | 63 | do_install () { |
| 64 | install -d ${D}${libdir}/apache2/modules | 64 | install -d ${D}${libdir}/apache2/modules |
| 65 | install -d ${D}${sysconfdir}/apache2/modules.d | 65 | install -d ${D}${sysconfdir}/apache2/modules.d |
| 66 | install -d ${D}${sysconfdir}/php/apache2-php5 | 66 | install -d ${D}${sysconfdir}/php/apache2-php5 |
| 67 | install -m 755 libs/libphp5.so ${D}${libdir}/apache2/modules | 67 | install -m 755 libs/libphp5.so ${D}${libdir}/apache2/modules |
| 68 | sed -i s,lib/,${libdir}/, ${WORKDIR}/70_mod_php5.conf | 68 | sed -i s,lib/,${libdir}/, ${WORKDIR}/70_mod_php5.conf |
| 69 | install -m 644 ${WORKDIR}/70_mod_php5.conf ${D}${sysconfdir}/apache2/modules.d | 69 | install -m 644 ${WORKDIR}/70_mod_php5.conf ${D}${sysconfdir}/apache2/modules.d |
| 70 | cat ${S}/php.ini-production | \ | 70 | cat ${S}/php.ini-production | \ |
| 71 | sed -e 's,extension_dir = \"\./\",extension_dir = \"/usr/lib/extensions\",' \ | 71 | sed -e 's,extension_dir = \"\./\",extension_dir = \"/usr/lib/extensions\",' \ |
| 72 | > ${D}${sysconfdir}/php/apache2-php5/php.ini | 72 | > ${D}${sysconfdir}/php/apache2-php5/php.ini |
| 73 | 73 | ||
| 74 | install -d ${D}${bindir} | 74 | install -d ${D}${bindir} |
| 75 | install -m 755 scripts/phpize ${D}${bindir} | 75 | install -m 755 scripts/phpize ${D}${bindir} |
| 76 | 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 \ | 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 | 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 | } |
| 82 | 82 | ||
| 83 | SYSROOT_PREPROCESS_FUNCS += "php_sysroot_preprocess" | 83 | SYSROOT_PREPROCESS_FUNCS += "php_sysroot_preprocess" |
| 84 | 84 | ||
| 85 | php_sysroot_preprocess () { | 85 | php_sysroot_preprocess () { |
| 86 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | 86 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 87 | install -m 755 ${D}${bindir}/phpize ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | 87 | install -m 755 ${D}${bindir}/phpize ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 88 | install -m 755 ${D}${bindir}/php-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | 88 | install -m 755 ${D}${bindir}/php-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 89 | 89 | ||
| 90 | sed -i 's!eval echo /!eval echo ${STAGING_DIR_HOST}/!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/phpize | 90 | sed -i 's!eval echo /!eval echo ${STAGING_DIR_HOST}/!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/phpize |
| 91 | sed -i 's!^include_dir=.*!include_dir=${STAGING_INCDIR}/php!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/php-config | 91 | sed -i 's!^include_dir=.*!include_dir=${STAGING_INCDIR}/php!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/php-config |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | RDEPENDS_${PN} = "apache2" | 94 | RDEPENDS_${PN} = "apache2" |
diff --git a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb index 1118e23713..996aa63638 100644 --- a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb +++ b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb | |||
| @@ -18,11 +18,11 @@ S = "${WORKDIR}/phpMyAdmin-${PV}-all-languages" | |||
| 18 | inherit allarch | 18 | inherit allarch |
| 19 | 19 | ||
| 20 | do_install() { | 20 | do_install() { |
| 21 | install -d ${D}${datadir}/${BPN} | 21 | install -d ${D}${datadir}/${BPN} |
| 22 | cp -a * ${D}${datadir}/${BPN} | 22 | cp -a * ${D}${datadir}/${BPN} |
| 23 | 23 | ||
| 24 | install -d ${D}${sysconfdir}/apache2/conf.d | 24 | install -d ${D}${sysconfdir}/apache2/conf.d |
| 25 | install -m 0644 ${WORKDIR}/apache.conf ${D}${sysconfdir}/apache2/conf.d/phpmyadmin.conf | 25 | install -m 0644 ${WORKDIR}/apache.conf ${D}${sysconfdir}/apache2/conf.d/phpmyadmin.conf |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | FILES_${PN} = "${datadir}/${BPN} \ | 28 | FILES_${PN} = "${datadir}/${BPN} \ |
diff --git a/meta-webserver/recipes-php/xdebug/xdebug_2.2.1.bb b/meta-webserver/recipes-php/xdebug/xdebug_2.2.1.bb index 48e1f8e585..d09473c9c8 100644 --- a/meta-webserver/recipes-php/xdebug/xdebug_2.2.1.bb +++ b/meta-webserver/recipes-php/xdebug/xdebug_2.2.1.bb | |||
| @@ -16,17 +16,17 @@ inherit autotools | |||
| 16 | EXTRA_OECONF += "--enable-xdebug -with-php-config=${STAGING_BINDIR_CROSS}/php-config" | 16 | EXTRA_OECONF += "--enable-xdebug -with-php-config=${STAGING_BINDIR_CROSS}/php-config" |
| 17 | 17 | ||
| 18 | do_configure() { | 18 | do_configure() { |
| 19 | ${STAGING_BINDIR_CROSS}/phpize | 19 | ${STAGING_BINDIR_CROSS}/phpize |
| 20 | 20 | ||
| 21 | # Running autoreconf as autotools_do_configure would do here | 21 | # Running autoreconf as autotools_do_configure would do here |
| 22 | # breaks the libtool configuration resulting in a failure later | 22 | # breaks the libtool configuration resulting in a failure later |
| 23 | # in do_compile. It's possible this may be fixable, however the | 23 | # in do_compile. It's possible this may be fixable, however the |
| 24 | # easiest course of action for the moment is to avoid doing that. | 24 | # easiest course of action for the moment is to avoid doing that. |
| 25 | oe_runconf | 25 | oe_runconf |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | do_install() { | 28 | do_install() { |
| 29 | oe_runmake install INSTALL_ROOT=${D} | 29 | oe_runmake install INSTALL_ROOT=${D} |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | FILES_${PN} += "${libdir}/php5/extensions/*/*.so" | 32 | FILES_${PN} += "${libdir}/php5/extensions/*/*.so" |
