summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/php/php.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-11-02 16:54:57 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-11-03 15:02:20 +0100
commit120753e7437bc893462356ef153b67d38f7f696e (patch)
treee4e337cca6a8d989f038bb0533efd446afe272d6 /meta-oe/recipes-devtools/php/php.inc
parentb2bed436b4f0e14c1df71a7edfd10b94099e93b7 (diff)
downloadmeta-openembedded-120753e7437bc893462356ef153b67d38f7f696e.tar.gz
php 5.3.6: import from OE classic
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-devtools/php/php.inc')
-rw-r--r--meta-oe/recipes-devtools/php/php.inc93
1 files changed, 93 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
new file mode 100644
index 000000000..7f2dc450f
--- /dev/null
+++ b/meta-oe/recipes-devtools/php/php.inc
@@ -0,0 +1,93 @@
1DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the CGI."
2HOMEPAGE = "http://www.php.net"
3SECTION = "console/network"
4LICENSE = "PHP"
5BBCLASSEXTEND = "native"
6DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native mysql5 \
7 libc-client openssl"
8DEPENDS_virtclass-native = "zlib-native libxml2-native"
9
10INC_PR = "r0"
11
12SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2"
13
14S = "${WORKDIR}/php-${PV}"
15
16inherit autotools pkgconfig
17
18# Common EXTRA_OECONF
19COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared"
20EXTRA_OECONF = "--enable-mbstring --enable-discard-path --enable-wddx \
21 --enable-magic-quotes --enable-fastcgi \
22 --with-imap=${STAGING_DIR_HOST} \
23 --with-imap-ssl=${STAGING_DIR_HOST} \
24 --with-zlib --with-zlib-dir=${STAGING_LIBDIR}/.. \
25 --with-iconv=${STAGING_LIBDIR}/.. \
26 --with-libxml-dir=${STAGING_BINDIR_CROSS} \
27 --disable-embedded-mysqli \
28 --with-mysql="${STAGING_DIR_TARGET}${prefix}" \
29 --with-mysqli="${STAGING_BINDIR_CROSS}/mysql_config" \
30 --with-pdo-mysql="${STAGING_BINDIR_CROSS}/mysql_config" \
31 --without-pdo-sqlite ${COMMON_EXTRA_OECONF} \
32 "
33EXTRA_OECONF_virtclass-native = "--with-cgi --without-libpng --without-libjpeg \
34 --with-zlib --with-zlib-dir=${STAGING_LIBDIR_NATIVE}/.. \
35 --with-libxml-dir=${STAGING_BINDIR_NATIVE} \
36 ${COMMON_EXTRA_OECONF} \
37 "
38
39LIBS_virtclass-native = " -lxml2 "
40LIBS_pn-php =" -lpthread "
41export LIBS
42THREADS_pn-php = "pthread"
43export THREADS
44LD_LIBRARY_PATH_virtclass-native = "${STAGING_LIBDIR_NATIVE}"
45LD_LIBRARY_PATH_pn-php = "${STAGING_LIBDIR}"
46export LD_LIBRARY_PATH
47export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}"
48export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php"
49CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -D_GNU_SOURCE"
50
51acpaths = ""
52
53do_install () {
54 oe_runmake 'INSTALL_ROOT=${D}' install
55}
56
57# fixme
58do_install_append_pn-php() {
59 mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir} ${D}/${sysconfdir}
60 rm -rf ${D}/${STAGING_DIR_NATIVE}
61 rm -rf ${D}/.registry
62 rm -rf ${D}/.channels
63 rm -rf ${D}/.[a-z]*
64 sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf
65}
66
67PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}"
68
69RDEPENDS_${PN}-pear = "${PN}"
70RDEPENDS_${PN}-cli = "${PN}"
71RDEPENDS_${PN}-dev = "${PN}"
72
73
74FILES_${PN}-dbg =+ "${bindir}/.debug"
75FILES_${PN}-doc += "${libdir}/php/doc"
76FILES_${PN}-cli = "${bindir}/php"
77FILES_${PN}-cgi = "${bindir}/php-cgi"
78FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \
79 ${libdir}/php/PEAR.php ${libdir}/php/System.php \
80 ${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \
81 ${libdir}/php/.channels ${libdir}/php/.channels/.alias \
82 ${libdir}/php/.channels\__uri.reg \
83 ${libdir}/php/.channels\pear.php.net.reg \
84 ${libdir}/php/.channels/pecl.php.net.reg \
85 ${libdir}/php/.registry ${libdir}/php/Archive/Tar.php \
86 ${libdir}/php/Console/Getopt.php ${libdir}/php/OS/Guess.php \
87 ${sysconfdir}/pear.conf"
88FILES_${PN}-dev = "${includedir}/php ${libdir}/build ${bindir}/phpize \
89 ${bindir}/php-config ${libdir}/php/.depdb \
90 ${libdir}/php/.depdblock ${libdir}/php/.filemap \
91 ${libdir}/php/.lock ${libdir}/php/test"
92FILES_${PN} = "${libdir}/php"
93FILES_${PN} += "${bindir}"