diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-12-31 11:17:31 +0000 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-01-08 12:04:25 +0100 |
| commit | 2b30fc6fe906d525b703e999138fcb9a0da150db (patch) | |
| tree | f1415a372f7371cec5ee82db8636e10023192d60 /meta-oe/recipes-devtools/php/php_5.5.15.bb | |
| parent | fc7132ede27ac67669448d3d2845ce7d46c6a1ee (diff) | |
| download | meta-openembedded-2b30fc6fe906d525b703e999138fcb9a0da150db.tar.gz | |
php: upgrade to 5.5.15
Based on the corresponding changes to the modphp recipe in
meta-webserver. From the commit message for the modphp upgrade:
* LIC_FILES_CHKSUM needed to change because the copyright year changed
* Enabled mcrypt since upstream recommend this for acceptable
performance
* Disabled the opcache; this is a new feature in 5.5 and the configure
check for it currently breaks when cross-compiling.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta-oe/recipes-devtools/php/php_5.5.15.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/php/php_5.5.15.bb | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/php/php_5.5.15.bb b/meta-oe/recipes-devtools/php/php_5.5.15.bb new file mode 100644 index 0000000000..ff81aee822 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php_5.5.15.bb | |||
| @@ -0,0 +1,151 @@ | |||
| 1 | DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the CGI." | ||
| 2 | HOMEPAGE = "http://www.php.net" | ||
| 3 | SECTION = "console/network" | ||
| 4 | |||
| 5 | LICENSE = "PHP-3.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=52dd90569008fee5bcdbb22d945b1108" | ||
| 7 | |||
| 8 | BBCLASSEXTEND = "native" | ||
| 9 | DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native \ | ||
| 10 | libc-client openssl libmcrypt" | ||
| 11 | DEPENDS_virtclass-native = "zlib-native libxml2-native" | ||
| 12 | |||
| 13 | # The new PHP downloads server groups PHP releases by major version so find | ||
| 14 | # the major version of the PHP recipe. | ||
| 15 | PHP_MAJVER = "${@d.getVar('PV',1).split('.')[0]}" | ||
| 16 | |||
| 17 | SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \ | ||
| 18 | file://acinclude-xml2-config.patch \ | ||
| 19 | file://0001-php-don-t-use-broken-wrapper-for-mkdir.patch \ | ||
| 20 | file://0001-acinclude-use-pkgconfig-for-libxml2-config.patch \ | ||
| 21 | " | ||
| 22 | |||
| 23 | SRC_URI_append_class-target += " \ | ||
| 24 | file://iconv.patch \ | ||
| 25 | file://imap-fix-autofoo.patch \ | ||
| 26 | file://pear-makefile.patch \ | ||
| 27 | file://phar-makefile.patch \ | ||
| 28 | file://php_exec_native.patch \ | ||
| 29 | file://php-fpm.conf \ | ||
| 30 | file://php-fpm-apache.conf \ | ||
| 31 | " | ||
| 32 | |||
| 33 | SRC_URI[md5sum] = "5cb5f2ed9099299f8a4c952d59d93812" | ||
| 34 | SRC_URI[sha256sum] = "00f24226b12fee27e332383b6304f1b9ed3f4d9173dd728a68c5c3f5a59b8ba7" | ||
| 35 | |||
| 36 | S = "${WORKDIR}/php-${PV}" | ||
| 37 | |||
| 38 | inherit autotools pkgconfig pythonnative gettext | ||
| 39 | |||
| 40 | SSTATE_SCAN_FILES += "build-defs.h" | ||
| 41 | |||
| 42 | # Common EXTRA_OECONF | ||
| 43 | COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared --disable-opcache" | ||
| 44 | EXTRA_OECONF = "--enable-mbstring \ | ||
| 45 | --enable-wddx \ | ||
| 46 | --enable-fpm \ | ||
| 47 | --with-imap=${STAGING_DIR_HOST} \ | ||
| 48 | --with-gettext=${STAGING_LIBDIR}/.. \ | ||
| 49 | --with-imap-ssl=${STAGING_DIR_HOST} \ | ||
| 50 | --with-zlib=${STAGING_LIBDIR}/.. \ | ||
| 51 | --with-iconv=${STAGING_LIBDIR}/.. \ | ||
| 52 | --with-mcrypt=${STAGING_DIR_TARGET}${exec_prefix} \ | ||
| 53 | ${COMMON_EXTRA_OECONF} \ | ||
| 54 | " | ||
| 55 | EXTRA_OECONF_virtclass-native = " \ | ||
| 56 | --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ | ||
| 57 | --without-iconv \ | ||
| 58 | ${COMMON_EXTRA_OECONF} \ | ||
| 59 | " | ||
| 60 | |||
| 61 | PACKAGECONFIG ??= "mysql sqlite3" | ||
| 62 | PACKAGECONFIG_class-native = "" | ||
| 63 | |||
| 64 | PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ | ||
| 65 | --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ | ||
| 66 | --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \ | ||
| 67 | , \ | ||
| 68 | ,mysql5" | ||
| 69 | |||
| 70 | PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \ | ||
| 71 | --with-pdo-sqlite=${STAGING_LIBDIR}/.. \ | ||
| 72 | , \ | ||
| 73 | ,sqlite3" | ||
| 74 | |||
| 75 | export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" | ||
| 76 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" | ||
| 77 | CFLAGS += " -D_GNU_SOURCE" | ||
| 78 | |||
| 79 | EXTRA_OEMAKE = "INSTALL_ROOT=${D}" | ||
| 80 | |||
| 81 | acpaths = "" | ||
| 82 | |||
| 83 | do_install_append_class-native() { | ||
| 84 | rm -rf ${D}/${libdir}/php/.registry | ||
| 85 | rm -rf ${D}/${libdir}/php/.channels | ||
| 86 | rm -rf ${D}/${libdir}/php/.[a-z]* | ||
| 87 | } | ||
| 88 | |||
| 89 | # fixme | ||
| 90 | do_install_append_class-target() { | ||
| 91 | install -d ${D}/${sysconfdir}/ | ||
| 92 | if [ -d ${D}/${STAGING_DIR_NATIVE}/${sysconfdir} ];then | ||
| 93 | mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir}/* ${D}/${sysconfdir}/ | ||
| 94 | fi | ||
| 95 | rm -rf ${D}/${TMPDIR} | ||
| 96 | rm -rf ${D}/.registry | ||
| 97 | rm -rf ${D}/.channels | ||
| 98 | rm -rf ${D}/.[a-z]* | ||
| 99 | rm -rf ${D}/var | ||
| 100 | rm -f ${D}/${sysconfdir}/php-fpm.conf.default | ||
| 101 | sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf | ||
| 102 | install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf | ||
| 103 | install -d ${D}/${sysconfdir}/apache2/conf.d | ||
| 104 | install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf | ||
| 105 | install -d ${D}${sysconfdir}/init.d | ||
| 106 | sed -i 's:=/usr/sbin:=${sbindir}:g' ${B}/sapi/fpm/init.d.php-fpm | ||
| 107 | sed -i 's:=/etc:=${sysconfdir}:g' ${B}/sapi/fpm/init.d.php-fpm | ||
| 108 | sed -i 's:=/var:=${localstatedir}:g' ${B}/sapi/fpm/init.d.php-fpm | ||
| 109 | install -m 0755 ${B}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm | ||
| 110 | TMP=`dirname ${D}/${TMPDIR}` | ||
| 111 | while test ${TMP} != ${D}; do | ||
| 112 | rmdir ${TMP} | ||
| 113 | TMP=`dirname ${TMP}`; | ||
| 114 | done | ||
| 115 | } | ||
| 116 | |||
| 117 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" | ||
| 118 | |||
| 119 | RDEPENDS_${PN}-pear = "${PN}" | ||
| 120 | RDEPENDS_${PN}-cli = "${PN}" | ||
| 121 | RDEPENDS_${PN}-dev = "${PN}" | ||
| 122 | |||
| 123 | INITSCRIPT_PACKAGES = "${PN}-fpm" | ||
| 124 | inherit update-rc.d | ||
| 125 | |||
| 126 | FILES_${PN}-dbg =+ "${bindir}/.debug" | ||
| 127 | FILES_${PN}-doc += "${libdir}/php/doc" | ||
| 128 | FILES_${PN}-cli = "${bindir}/php" | ||
| 129 | FILES_${PN}-cgi = "${bindir}/php-cgi" | ||
| 130 | FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm" | ||
| 131 | FILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" | ||
| 132 | CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" | ||
| 133 | CONFFILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" | ||
| 134 | INITSCRIPT_NAME_${PN}-fpm = "php-fpm" | ||
| 135 | INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" | ||
| 136 | FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \ | ||
| 137 | ${libdir}/php/PEAR.php ${libdir}/php/System.php \ | ||
| 138 | ${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \ | ||
| 139 | ${libdir}/php/.channels ${libdir}/php/.channels/.alias \ | ||
| 140 | ${libdir}/php/.channels\__uri.reg \ | ||
| 141 | ${libdir}/php/.channels\pear.php.net.reg \ | ||
| 142 | ${libdir}/php/.channels/pecl.php.net.reg \ | ||
| 143 | ${libdir}/php/.registry ${libdir}/php/Archive/Tar.php \ | ||
| 144 | ${libdir}/php/Console/Getopt.php ${libdir}/php/OS/Guess.php \ | ||
| 145 | ${sysconfdir}/pear.conf" | ||
| 146 | FILES_${PN}-dev = "${includedir}/php ${libdir}/build ${bindir}/phpize \ | ||
| 147 | ${bindir}/php-config ${libdir}/php/.depdb \ | ||
| 148 | ${libdir}/php/.depdblock ${libdir}/php/.filemap \ | ||
| 149 | ${libdir}/php/.lock ${libdir}/php/test" | ||
| 150 | FILES_${PN} = "${libdir}/php" | ||
| 151 | FILES_${PN} += "${bindir}" | ||
