diff options
Diffstat (limited to 'meta-oe/recipes-devtools/php')
| -rw-r--r-- | meta-oe/recipes-devtools/php/php.inc | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc index 225c3d72a9..749f51c7ad 100644 --- a/meta-oe/recipes-devtools/php/php.inc +++ b/meta-oe/recipes-devtools/php/php.inc | |||
| @@ -3,11 +3,11 @@ HOMEPAGE = "http://www.php.net" | |||
| 3 | SECTION = "console/network" | 3 | SECTION = "console/network" |
| 4 | LICENSE = "PHP-3.0" | 4 | LICENSE = "PHP-3.0" |
| 5 | BBCLASSEXTEND = "native" | 5 | BBCLASSEXTEND = "native" |
| 6 | DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native mysql5 \ | 6 | DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native \ |
| 7 | libc-client openssl sqlite3" | 7 | libc-client openssl" |
| 8 | DEPENDS_virtclass-native = "zlib-native libxml2-native" | 8 | DEPENDS_virtclass-native = "zlib-native libxml2-native" |
| 9 | 9 | ||
| 10 | INC_PR = "r4" | 10 | INC_PR = "r5" |
| 11 | 11 | ||
| 12 | SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2" | 12 | SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2" |
| 13 | 13 | ||
| @@ -19,27 +19,37 @@ SSTATE_SCAN_FILES += "build-defs.h" | |||
| 19 | 19 | ||
| 20 | # Common EXTRA_OECONF | 20 | # Common EXTRA_OECONF |
| 21 | COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared" | 21 | COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared" |
| 22 | EXTRA_OECONF = "--enable-mbstring --enable-discard-path --enable-wddx \ | 22 | EXTRA_OECONF = "--enable-mbstring \ |
| 23 | --enable-magic-quotes --enable-fastcgi --enable-fpm \ | 23 | --enable-wddx \ |
| 24 | --enable-fpm \ | ||
| 24 | --with-imap=${STAGING_DIR_HOST} \ | 25 | --with-imap=${STAGING_DIR_HOST} \ |
| 25 | --with-gettext=${STAGING_LIBDIR}/.. \ | 26 | --with-gettext=${STAGING_LIBDIR}/.. \ |
| 26 | --with-imap-ssl=${STAGING_DIR_HOST} \ | 27 | --with-imap-ssl=${STAGING_DIR_HOST} \ |
| 27 | --with-zlib --with-zlib-dir=${STAGING_LIBDIR}/.. \ | 28 | --with-zlib=${STAGING_LIBDIR}/.. \ |
| 28 | --with-iconv=${STAGING_LIBDIR}/.. \ | 29 | --with-iconv=${STAGING_LIBDIR}/.. \ |
| 29 | --with-libxml-dir=${STAGING_BINDIR_CROSS} \ | 30 | --with-libxml-dir=${STAGING_BINDIR_CROSS} \ |
| 30 | --disable-embedded-mysqli \ | 31 | ${COMMON_EXTRA_OECONF} \ |
| 31 | --with-mysql="${STAGING_DIR_TARGET}${prefix}" \ | ||
| 32 | --with-mysqli="${STAGING_BINDIR_CROSS}/mysql_config" \ | ||
| 33 | --with-sqlite3=${STAGING_LIBDIR}/.. --enable-sqlite-utf8 \ | ||
| 34 | --with-pdo-mysql="${STAGING_BINDIR_CROSS}/mysql_config" \ | ||
| 35 | --with-pdo-sqlite=${STAGING_LIBDIR}/.. ${COMMON_EXTRA_OECONF} \ | ||
| 36 | " | 32 | " |
| 37 | EXTRA_OECONF_virtclass-native = "--with-cgi --without-libpng --without-libjpeg \ | 33 | EXTRA_OECONF_virtclass-native = " \ |
| 38 | --with-zlib --with-zlib-dir=${STAGING_LIBDIR_NATIVE}/.. \ | 34 | --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ |
| 39 | --with-libxml-dir=${STAGING_BINDIR_NATIVE} \ | 35 | --with-libxml-dir=${STAGING_BINDIR_NATIVE} \ |
| 40 | ${COMMON_EXTRA_OECONF} \ | 36 | ${COMMON_EXTRA_OECONF} \ |
| 41 | " | 37 | " |
| 42 | 38 | ||
| 39 | PACKAGECONFIG ??= "mysql sqlite3" | ||
| 40 | PACKAGECONFIG_class-native = "" | ||
| 41 | |||
| 42 | PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ | ||
| 43 | --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ | ||
| 44 | --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \ | ||
| 45 | , \ | ||
| 46 | ,mysql5" | ||
| 47 | |||
| 48 | PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \ | ||
| 49 | --with-pdo-sqlite=${STAGING_LIBDIR}/.. \ | ||
| 50 | , \ | ||
| 51 | ,sqlite3" | ||
| 52 | |||
| 43 | LIBS_virtclass-native = " -lxml2 " | 53 | LIBS_virtclass-native = " -lxml2 " |
| 44 | LIBS_pn-php =" -lpthread " | 54 | LIBS_pn-php =" -lpthread " |
| 45 | export LIBS | 55 | export LIBS |
