php: add option for phar builtin extension
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 8 Jul 2014 11:00:48 +0000 (08:00 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 8 Jul 2014 11:56:52 +0000 (13:56 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/php/Config.ext
package/php/php.mk

index abf4993efbbe82ce70c92f951893be32d5aae299..ff9a6ad6853cf777335eb0a498d109fffc845385 100644 (file)
@@ -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
index 8ac5d862926b2fbcdbf6f303b3e534527101fe91..4d3aa7d18d35da7d226acb7721a03b8a1875e9ae 100644 (file)
@@ -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