mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Benoît Burnichon" <benoit.burnichon@airtag.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/4] php5: add some functionalities (curl, xmlrpc, zlib)
Date: Thu, 8 Dec 2011 17:26:04 +0100	[thread overview]
Message-ID: <1323361566-11890-2-git-send-email-benoit.burnichon@airtag.com> (raw)
In-Reply-To: <20111208154601.GH11859@pengutronix.de>

Signed-off-by: Benoît Burnichon <benoit.burnichon@airtag.com>
---
 rules/php5.in   |   33 +++++++++++++++++++++++++++------
 rules/php5.make |   22 +++++++++++++++++++++-
 2 files changed, 48 insertions(+), 7 deletions(-)

diff --git a/rules/php5.in b/rules/php5.in
index 8f77492..4b8a301 100644
--- a/rules/php5.in
+++ b/rules/php5.in
@@ -5,10 +5,13 @@ menuconfig PHP5
 	tristate
 	prompt "php5                          "
 	select APACHE2	if PHP5_SAPI_APXS2
+	select LIBCURL  if PHP5_EXT_CURL
 	select LIBXML2	if PHP5_XML_LIBXML2
 	select LIBXSLT	if PHP5_XML_LIBXML2_XSLT
 	select MYSQL	if PHP5_EXT_MYSQL
 	select PHP5_XML	if PHP5_EXT_SOAP
+	select XMLRPC_C if PHP5_XML_LIBXML2_XMLRPC
+	select ZLIB     if PHP5_EXT_ZLIB
 
 if PHP5
 
@@ -213,6 +216,16 @@ config PHP5_XML_LIBXML2_SIMPLEXML
 	help
 	  simple xml support
 
+#  --with-xmlrpc[=DIR]     Include XMLRPC-EPI support
+#  --with-libexpat-dir=DIR   XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
+#  --with-iconv-dir=DIR      XMLRPC-EPI: iconv dir for XMLRPC-EPI
+
+config PHP5_XML_LIBXML2_XMLRPC
+	bool
+	prompt "xmlrpc support"
+	help
+	  xmlrpc support
+
 endif	# PHP5_XML_LIBXML2
 
 endif	# PHP5_XML
@@ -272,12 +285,16 @@ menu "Extensions                  "
 #                          support. Use --with-pcre-regex=DIR to specify DIR
 #                          where PCRE's include and library files are located,
 #                          if not using bundled library.
-#  --with-zlib[=DIR]       Include ZLIB support (requires zlib >= 1.0.9)
-#  --with-zlib-dir=<DIR>   Define the location of zlib install directory
 #  --enable-bcmath         Enable bc style precision math functions
 #  --with-bz2[=DIR]        Include BZip2 support
 #  --enable-calendar       Enable support for calendar conversion
 #  --disable-ctype         Disable ctype functions
+config PHP5_EXT_CURL
+	bool
+	prompt "curl"
+	help
+	  Enable CURL support for PHP.
+
 #  --with-curl[=DIR]       Include CURL support
 #  --with-curlwrappers     Use CURL for url streams
 #  --enable-dba            Build DBA with builtin modules. To build shared DBA
@@ -473,6 +490,14 @@ config PHP5_EXT_SQLITE3
 	help
 	  Enable sqlite3 support for PHP.
 
+#  --with-zlib[=DIR]       Include ZLIB support (requires zlib >= 1.0.9)
+#  --with-zlib-dir=<DIR>   Define the location of zlib install directory
+config PHP5_EXT_ZLIB
+	bool
+	prompt "zlib"
+	help
+	  Enable zlib support for PHP.
+
 #  --disable-spl           Disable Standard PHP Library
 #  --without-sqlite        Do not include sqlite support.
 #                          Use --with-sqlite=DIR to specify DIR where
@@ -493,10 +518,6 @@ config PHP5_EXT_SQLITE3
 #  --enable-wddx           Enable WDDX support
 #  --with-libexpat-dir=DIR   XML: libexpat install prefix (deprecated)
 
-#  --with-xmlrpc[=DIR]     Include XMLRPC-EPI support
-#  --with-libexpat-dir=DIR   XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
-#  --with-iconv-dir=DIR      XMLRPC-EPI: iconv dir for XMLRPC-EPI
-
 #PEAR:
 #
 #  --with-pear=DIR         Install PEAR in DIR [PREFIX/lib/php]
diff --git a/rules/php5.make b/rules/php5.make
index 31b8672..04976a5 100644
--- a/rules/php5.make
+++ b/rules/php5.make
@@ -86,7 +86,7 @@ else
 endif
 
 ifdef PTXCONF_PHP5_SAPI_APXS2
-PHP5_AUTOCONF += --with-apxs2=$(SYSROOT)/usr/bin/apxs
+PHP5_AUTOCONF += --with-apxs2=$(PTXDIST_SYSROOT_TARGET)/usr/bin/apxs
 else
 # PHP5_AUTOCONF += --without-apxs2
 endif
@@ -223,6 +223,26 @@ else
 PHP5_AUTOCONF += --disable-simplexml
 endif
 
+ifdef PTXCONF_PHP5_XML_LIBXML2_XMLRPC
+PHP5_AUTOCONF += --with-xmlrpc
+else
+PHP5_AUTOCONF += --without-xmlrpc
+endif
+
+ifdef PTXCONF_PHP5_EXT_ZLIB
+PHP5_AUTOCONF += --with-zlib=$(SYSROOT)/usr
+else
+PHP5_AUTOCONF += --without-zlib
+endif
+
+ifdef PTXCONF_PHP5_EXT_CURL
+PHP5_AUTOCONF += \
+	--with-curl=$(SYSROOT)/usr \
+	--with-curl-wrappers
+else
+PHP5_AUTOCONF += --without-curl
+endif
+
 ifdef PTXCONF_PHP5_EXT_MYSQL
 PHP5_AUTOCONF += \
 	--with-mysql=$(SYSROOT)/usr \
-- 
1.7.2.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2011-12-08 16:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-07 16:02 [ptxdist] [PATCH 1/2] lua: Correct implementation for version 5.1.4 Benoît BURNICHON
2011-12-07 16:55 ` Michael Olbrich
2011-12-07 17:08   ` Benoît BURNICHON
2011-12-08 11:22     ` Michael Olbrich
2011-12-08 15:13       ` [ptxdist] [PATCH] lua: update to the latest bugfix patch Benoît Burnichon
2011-12-08 15:46         ` Michael Olbrich
2011-12-08 16:26           ` [ptxdist] [PATCH 1/4] xmlrpc-c: fix location url Benoît Burnichon
2011-12-08 16:26           ` Benoît Burnichon [this message]
2011-12-08 16:26           ` [ptxdist] [PATCH 3/4] lua: Correct implementation for version 5.1.4 Benoît Burnichon
2011-12-08 16:26           ` [ptxdist] [PATCH 4/4] lua: update to the latest bugfix patch Benoît Burnichon
2011-12-08 11:36     ` [ptxdist] [PATCH 1/2] lua: Correct implementation for version 5.1.4 Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1323361566-11890-2-git-send-email-benoit.burnichon@airtag.com \
    --to=benoit.burnichon@airtag.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox