summaryrefslogtreecommitdiff
path: root/packages/php/php_5.2.6.bb
diff options
context:
space:
mode:
authorJunqian Gordon Xu <xjqian@gmail.com>2008-09-19 13:38:39 +0000
committerJunqian Gordon Xu <xjqian@gmail.com>2008-09-19 13:38:39 +0000
commitaa64f5f00546cd654b3cd318e6456a25431629bf (patch)
treecbbe41c08d1f2f0e29f90fb13cbb7c90e913fd5a /packages/php/php_5.2.6.bb
parenta22e117f3963f19a4bcfb17f80eefc6c9f640285 (diff)
php: fix broken 5.2.6
* drop broken 5.1.4 * not linking with mysql for now because oe build mysql with --enable-embedded-server * http://bugs.mysql.com/bug.php?id=16513 * no fix is available for mysql4.1, waiting for mysql5.x in oe to link with mysql
Diffstat (limited to 'packages/php/php_5.2.6.bb')
-rw-r--r--packages/php/php_5.2.6.bb76
1 files changed, 46 insertions, 30 deletions
diff --git a/packages/php/php_5.2.6.bb b/packages/php/php_5.2.6.bb
index 6281cfe04e..17073e1eaf 100644
--- a/packages/php/php_5.2.6.bb
+++ b/packages/php/php_5.2.6.bb
@@ -1,6 +1,8 @@
require php.inc
-PR = "r1"
+DEPENDS = "zlib libxml2 virtual/libiconv php-native"
+
+PR = "r2"
SRC_URI += "file://pear-makefile.patch;patch=1 "
@@ -10,56 +12,70 @@ export LIBS=" -lpthread "
EXTRA_OECONF = " --without-iconv \
--enable-discard-path \
--enable-sockets \
+ --enable-pcntl \
--enable-memory-limit \
--enable-wddx \
--enable-embedded-mysqli \
--enable-magic-quotes \
- --with-zlib \
- --with-mysql="${STAGING_DIR_TARGET}${layout_exec_prefix}" \
- --with-mysqli="${STAGING_BINDIR_NATIVE}/mysql_config" \
-"
-
-EXTRA_OECONF += " --with-pear-php-cli=${STAGING_BINDIR} --with-libxml-dir=${STAGING_BINDIR_CROSS}"
+ --with-zlib --with-zlib-dir = ${STAGING_LIBDIR}/.. \
+ --with-libxml-dir = ${STAGING_BINDIR_CROSS} \
+# --with-mysql = "${STAGING_DIR_TARGET}${layout_exec_prefix}" \
+# --with-mysqli = "${STAGING_BINDIR_NATIVE}/mysql_config" \
+ "
export LD_LIBRARY_PATH = "${STAGING_LIBDIR}"
-export PHP_NATIVE_DIR="${STAGING_BINDIR_NATIVE}"
-export PHP_PEAR_PHP_BIN="/usr/bin/php"
+export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}"
+export PHP_PEAR_PHP_BIN = "${bindir}/php"
do_configure_append() {
find ${S} -type f | xargs sed -i 's:I/usr/include:I${STAGING_INCDIR}:g'
}
+# fixme
+do_install_append() {
+ mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir} ${D}/${sysconfdir}
+ rm -rf ${D}/${STAGING_DIR_NATIVE}
+ rm -rf ${D}/.registry
+ rm -rf ${D}/.channels
+ rm -rf ${D}/.[a-z]*
+}
+
PACKAGES = "${PN}-dbg \
${PN}-cli \
${PN}-pear \
${PN}-dev \
+ ${PN}-doc \
${PN} \
"
-FILES_${PN}-dbg =+"/usr/bin/.debug"
+FILES_${PN}-dbg =+ "${bindir}/.debug"
+
+FILES_${PN}-doc += "${libdir}/php/doc"
+
+FILES_${PN}-cli = "${bindir}/php"
-FILES_${PN}-cli ="/usr/bin/php"
+FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl \
+ ${libdir}/php/PEAR \
+ ${libdir}/php/PEAR.php \
+ ${libdir}/php/System.php ${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \
+ ${libdir}/php/.channels ${libdir}/php/.channels/.alias \
+ ${libdir}/php/.channels\__uri.reg \
+ ${libdir}/php/.channels\pear.php.net.reg ${libdir}/php/.channels/pecl.php.net.reg \
+ ${libdir}/php/.registry \
+ ${libdir}/php/Archive/Tar.php \
+ ${libdir}/php/Console/Getopt.php ${libdir}/php/OS/Guess.php \
+ ${sysconfdir}/pear.conf"
-FILES_${PN}-pear ="/usr/bin/pear* /usr/bin/pecl \
- /usr/lib/php/PEAR \
- /usr/lib/php/PEAR.php \
- /usr/lib/php/System.php /usr/lib/php/peclcmd.php /usr/lib/php/pearcmd.php \
- /usr/lib/php/.channels /usr/lib/php/.channels/.alias \
- /usr/lib/php/.channels\__uri.reg \
- /usr/lib/php/.channels\pear.php.net.reg /usr/lib/php/.channels/pecl.php.net.reg \
- /usr/lib/php/.registry \
- /usr/lib/php/Archive/Tar.php \
- /usr/lib/php/Console/Getopt.php /usr/lib/php/OS/Guess.php \
- /usr/lib/php/.depdb /usr/lib/php/.depdblock /usr/lib/php/.filemap \
- /usr/lib/php/.lock"
-FILES_${PN}-dev ="/usr/include/php /usr/include/build \
- /usr/bin/phpize /usr/bin/php-config"
+FILES_${PN}-dev = "${includedir}/php ${libdir}/build \
+ ${bindir}/phpize ${bindir}/php-config \
+ ${libdir}/php/.depdb ${libdir}/php/.depdblock ${libdir}/php/.filemap ${libdir}/php/.lock \
+ ${libdir}/php/test "
-FILES_${PN} ="/usr/lib/php"
-FILES_${PN} +="/usr/bin"
+FILES_${PN} = "${libdir}/php"
+FILES_${PN} += "${bindir}"
-RDEPENDS_${PN}-pear =${PN}
-RDEPENDS_${PN}-cli =${PN}
-RDEPENDS_${PN}-dev =${PN}
+RDEPENDS_${PN}-pear = ${PN}
+RDEPENDS_${PN}-cli = ${PN}
+RDEPENDS_${PN}-dev = ${PN}