[Buildroot] [PATCH] php: add option for phar builtin extension

Gustavo Zacarias gustavo at zacarias.com.ar
Tue Jul 8 11:00:48 UTC 2014


Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
---
 package/php/Config.ext | 5 +++++
 package/php/php.mk     | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/php/Config.ext b/package/php/Config.ext
index abf4993..ff9a6ad 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -31,6 +31,11 @@ config BR2_PACKAGE_PHP_EXT_BZIP2
 	help
 	  bzip2 read/write support
 
+config BR2_PACKAGE_PHP_EXT_PHAR
+	bool "phar"
+	help
+	  PHP Archive support
+
 config BR2_PACKAGE_PHP_EXT_ZIP
 	bool "zip"
 	select BR2_PACKAGE_ZLIB
diff --git a/package/php/php.mk b/package/php/php.mk
index 8ac5d86..4d3aa7d 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -73,7 +73,8 @@ PHP_CONF_OPT += $(if $(BR2_PACKAGE_PHP_EXT_SOCKETS),--enable-sockets) \
 		$(if $(BR2_PACKAGE_PHP_EXT_FILTER),--enable-filter) \
 		$(if $(BR2_PACKAGE_PHP_EXT_CALENDAR),--enable-calendar) \
 		$(if $(BR2_PACKAGE_PHP_EXT_FILEINFO),--enable-fileinfo) \
-		$(if $(BR2_PACKAGE_PHP_EXT_BCMATH),--enable-bcmath)
+		$(if $(BR2_PACKAGE_PHP_EXT_BCMATH),--enable-bcmath) \
+		$(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar)
 
 ifeq ($(BR2_PACKAGE_PHP_EXT_OPENSSL),y)
 	PHP_CONF_OPT += --with-openssl=$(STAGING_DIR)/usr
-- 
1.8.5.5



More information about the buildroot mailing list