summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorShane Volpe <shanevolpe@gmail.com>2007-02-24 16:10:06 +0000
committerStelios Koroneos <skoroneos@digital-opsis.com>2007-02-24 16:10:06 +0000
commiteeaccd3a7d3a3561d4ae5ba81c5f7c2f2e572c4f (patch)
tree89c4c9c2dbc6aecac023b1c60b16cf7931d4157b /packages
parentb7d4bc2ee5fa036defd9e79810ea832c59a9a535 (diff)
packages/php:Add php 5.2.0 and php-native 5.2.0
Diffstat (limited to 'packages')
-rw-r--r--packages/php/php-native_5.2.0.bb9
-rw-r--r--packages/php/php_5.2.0.bb41
2 files changed, 50 insertions, 0 deletions
diff --git a/packages/php/php-native_5.2.0.bb b/packages/php/php-native_5.2.0.bb
new file mode 100644
index 0000000000..7f5bc9fd94
--- /dev/null
+++ b/packages/php/php-native_5.2.0.bb
@@ -0,0 +1,9 @@
+SECTION = "console/network"
+require php_${PV}.bb
+inherit autotools native pkgconfig
+export LIBS=" -lxml2 "
+export LD_LIBRARY_PATH = "${STAGING_LIBDIR}"
+
+FILESPATH = "${FILE_DIRNAME}/php-${PV}:${FILE_DIRNAME}/php:${FILE_DIRNAME}/files"
+DEPENDS = "zlib-native libxml2-native"
+
diff --git a/packages/php/php_5.2.0.bb b/packages/php/php_5.2.0.bb
new file mode 100644
index 0000000000..919d96f8e3
--- /dev/null
+++ b/packages/php/php_5.2.0.bb
@@ -0,0 +1,41 @@
+SECTION = "console/network"
+DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the CGI."
+LICENSE = "PHP"
+DEPENDS = "zlib libxml2 mysql libiconv"
+SRC_URI = "http://us2.php.net/distributions/php-${PV}.tar.bz2\
+ file://autotools.patch;patch=1 \
+ file://acinclude-xml2-config.patch;patch=1 \
+ "
+S = "${WORKDIR}/php-${PV}"
+PR = "r0"
+
+inherit autotools
+
+export THREADS="pthread"
+export LIBS=" -lpthread "
+
+CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
+EXTRA_OECONF = " --without-iconv \
+ --enable-discard-path \
+ --enable-sockets \
+ --enable-memory-limit \
+ --enable-wddx \
+ --with-zlib"
+
+EXTRA_OECONF += " --without-pear --with-libxml-dir=${STAGING_BINDIR} "
+export LD_LIBRARY_PATH = "${STAGING_LIBDIR}"
+
+# Uncomment the following two lines, and comment the above to enable PEAR
+#EXTRA_OECONF += " --with-pear-php-cli=${STAGING_BINDIR_NATIVE}/php"
+#DEPENDS += " php-native"
+
+acpaths = ""
+
+do_configure_append() {
+ find ${S} -type f | xargs sed -i 's:I/usr/include:I${STAGING_INCDIR}:g'
+}
+
+do_install () {
+ oe_runmake 'INSTALL_ROOT=${D}' install
+}
+