diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-02 16:54:57 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-03 15:02:20 +0100 |
commit | 120753e7437bc893462356ef153b67d38f7f696e (patch) | |
tree | e4e337cca6a8d989f038bb0533efd446afe272d6 /meta-oe/recipes-devtools/php/php.inc | |
parent | b2bed436b4f0e14c1df71a7edfd10b94099e93b7 (diff) | |
download | meta-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.inc | 93 |
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 @@ | |||
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 | LICENSE = "PHP" | ||
5 | BBCLASSEXTEND = "native" | ||
6 | DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native mysql5 \ | ||
7 | libc-client openssl" | ||
8 | DEPENDS_virtclass-native = "zlib-native libxml2-native" | ||
9 | |||
10 | INC_PR = "r0" | ||
11 | |||
12 | SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2" | ||
13 | |||
14 | S = "${WORKDIR}/php-${PV}" | ||
15 | |||
16 | inherit autotools pkgconfig | ||
17 | |||
18 | # Common EXTRA_OECONF | ||
19 | COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared" | ||
20 | EXTRA_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 | " | ||
33 | EXTRA_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 | |||
39 | LIBS_virtclass-native = " -lxml2 " | ||
40 | LIBS_pn-php =" -lpthread " | ||
41 | export LIBS | ||
42 | THREADS_pn-php = "pthread" | ||
43 | export THREADS | ||
44 | LD_LIBRARY_PATH_virtclass-native = "${STAGING_LIBDIR_NATIVE}" | ||
45 | LD_LIBRARY_PATH_pn-php = "${STAGING_LIBDIR}" | ||
46 | export LD_LIBRARY_PATH | ||
47 | export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" | ||
48 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" | ||
49 | CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -D_GNU_SOURCE" | ||
50 | |||
51 | acpaths = "" | ||
52 | |||
53 | do_install () { | ||
54 | oe_runmake 'INSTALL_ROOT=${D}' install | ||
55 | } | ||
56 | |||
57 | # fixme | ||
58 | do_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 | |||
67 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" | ||
68 | |||
69 | RDEPENDS_${PN}-pear = "${PN}" | ||
70 | RDEPENDS_${PN}-cli = "${PN}" | ||
71 | RDEPENDS_${PN}-dev = "${PN}" | ||
72 | |||
73 | |||
74 | FILES_${PN}-dbg =+ "${bindir}/.debug" | ||
75 | FILES_${PN}-doc += "${libdir}/php/doc" | ||
76 | FILES_${PN}-cli = "${bindir}/php" | ||
77 | FILES_${PN}-cgi = "${bindir}/php-cgi" | ||
78 | FILES_${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" | ||
88 | FILES_${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" | ||
92 | FILES_${PN} = "${libdir}/php" | ||
93 | FILES_${PN} += "${bindir}" | ||