diff options
Diffstat (limited to 'meta-oe/recipes-devtools/php/php.inc')
-rw-r--r-- | meta-oe/recipes-devtools/php/php.inc | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc deleted file mode 100644 index 6bdae78fb8..0000000000 --- a/meta-oe/recipes-devtools/php/php.inc +++ /dev/null | |||
@@ -1,132 +0,0 @@ | |||
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-3.0" | ||
5 | BBCLASSEXTEND = "native" | ||
6 | DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native \ | ||
7 | libc-client openssl" | ||
8 | DEPENDS_virtclass-native = "zlib-native libxml2-native" | ||
9 | |||
10 | INC_PR = "r5" | ||
11 | |||
12 | # The new PHP downloads server groups PHP releases by major version so find | ||
13 | # the major version of the PHP recipe. | ||
14 | PHP_MAJVER = "${@d.getVar('PV',1).split('.')[0]}" | ||
15 | |||
16 | SRC_URI = "http://museum.php.net/php${PHP_MAJVER}/php-${PV}.tar.bz2" | ||
17 | |||
18 | S = "${WORKDIR}/php-${PV}" | ||
19 | |||
20 | inherit autotools pkgconfig pythonnative gettext | ||
21 | |||
22 | SSTATE_SCAN_FILES += "build-defs.h" | ||
23 | |||
24 | # Common EXTRA_OECONF | ||
25 | COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared" | ||
26 | EXTRA_OECONF = "--enable-mbstring \ | ||
27 | --enable-wddx \ | ||
28 | --enable-fpm \ | ||
29 | --with-imap=${STAGING_DIR_HOST} \ | ||
30 | --with-gettext=${STAGING_LIBDIR}/.. \ | ||
31 | --with-imap-ssl=${STAGING_DIR_HOST} \ | ||
32 | --with-zlib=${STAGING_LIBDIR}/.. \ | ||
33 | --with-iconv=${STAGING_LIBDIR}/.. \ | ||
34 | ${COMMON_EXTRA_OECONF} \ | ||
35 | " | ||
36 | EXTRA_OECONF_virtclass-native = " \ | ||
37 | --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ | ||
38 | --without-iconv \ | ||
39 | ${COMMON_EXTRA_OECONF} \ | ||
40 | " | ||
41 | |||
42 | PACKAGECONFIG ??= "mysql sqlite3" | ||
43 | PACKAGECONFIG_class-native = "" | ||
44 | |||
45 | PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ | ||
46 | --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ | ||
47 | --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \ | ||
48 | , \ | ||
49 | ,mysql5" | ||
50 | |||
51 | PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \ | ||
52 | --with-pdo-sqlite=${STAGING_LIBDIR}/.. \ | ||
53 | , \ | ||
54 | ,sqlite3" | ||
55 | |||
56 | export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" | ||
57 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" | ||
58 | CFLAGS += " -D_GNU_SOURCE" | ||
59 | |||
60 | EXTRA_OEMAKE = "INSTALL_ROOT=${D}" | ||
61 | |||
62 | acpaths = "" | ||
63 | |||
64 | do_install_append_pn-php-native() { | ||
65 | rm -rf ${D}/${libdir}/php/.registry | ||
66 | rm -rf ${D}/${libdir}/php/.channels | ||
67 | rm -rf ${D}/${libdir}/php/.[a-z]* | ||
68 | } | ||
69 | |||
70 | # fixme | ||
71 | do_install_append_pn-php() { | ||
72 | install -d ${D}/${sysconfdir}/ | ||
73 | if [ -d ${D}/${STAGING_DIR_NATIVE}/${sysconfdir} ];then | ||
74 | mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir}/* ${D}/${sysconfdir}/ | ||
75 | fi | ||
76 | rm -rf ${D}/${TMPDIR} | ||
77 | rm -rf ${D}/.registry | ||
78 | rm -rf ${D}/.channels | ||
79 | rm -rf ${D}/.[a-z]* | ||
80 | rm -rf ${D}/var | ||
81 | rm -f ${D}/${sysconfdir}/php-fpm.conf.default | ||
82 | sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf | ||
83 | install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf | ||
84 | install -d ${D}/${sysconfdir}/apache2/conf.d | ||
85 | install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf | ||
86 | install -d ${D}${sysconfdir}/init.d | ||
87 | sed -i 's:=/usr/sbin:=${sbindir}:g' ${B}/sapi/fpm/init.d.php-fpm | ||
88 | sed -i 's:=/etc:=${sysconfdir}:g' ${B}/sapi/fpm/init.d.php-fpm | ||
89 | sed -i 's:=/var:=${localstatedir}:g' ${B}/sapi/fpm/init.d.php-fpm | ||
90 | install -m 0755 ${B}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm | ||
91 | TMP=`dirname ${D}/${TMPDIR}` | ||
92 | while test ${TMP} != ${D}; do | ||
93 | rmdir ${TMP} | ||
94 | TMP=`dirname ${TMP}`; | ||
95 | done | ||
96 | } | ||
97 | |||
98 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" | ||
99 | |||
100 | RDEPENDS_${PN}-pear = "${PN}" | ||
101 | RDEPENDS_${PN}-cli = "${PN}" | ||
102 | RDEPENDS_${PN}-dev = "${PN}" | ||
103 | |||
104 | INITSCRIPT_PACKAGES = "${PN}-fpm" | ||
105 | inherit update-rc.d | ||
106 | |||
107 | FILES_${PN}-dbg =+ "${bindir}/.debug" | ||
108 | FILES_${PN}-doc += "${libdir}/php/doc" | ||
109 | FILES_${PN}-cli = "${bindir}/php" | ||
110 | FILES_${PN}-cgi = "${bindir}/php-cgi" | ||
111 | FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm" | ||
112 | FILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" | ||
113 | CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" | ||
114 | CONFFILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" | ||
115 | INITSCRIPT_NAME_${PN}-fpm = "php-fpm" | ||
116 | INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" | ||
117 | FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \ | ||
118 | ${libdir}/php/PEAR.php ${libdir}/php/System.php \ | ||
119 | ${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \ | ||
120 | ${libdir}/php/.channels ${libdir}/php/.channels/.alias \ | ||
121 | ${libdir}/php/.channels\__uri.reg \ | ||
122 | ${libdir}/php/.channels\pear.php.net.reg \ | ||
123 | ${libdir}/php/.channels/pecl.php.net.reg \ | ||
124 | ${libdir}/php/.registry ${libdir}/php/Archive/Tar.php \ | ||
125 | ${libdir}/php/Console/Getopt.php ${libdir}/php/OS/Guess.php \ | ||
126 | ${sysconfdir}/pear.conf" | ||
127 | FILES_${PN}-dev = "${includedir}/php ${libdir}/build ${bindir}/phpize \ | ||
128 | ${bindir}/php-config ${libdir}/php/.depdb \ | ||
129 | ${libdir}/php/.depdblock ${libdir}/php/.filemap \ | ||
130 | ${libdir}/php/.lock ${libdir}/php/test" | ||
131 | FILES_${PN} = "${libdir}/php" | ||
132 | FILES_${PN} += "${bindir}" | ||