From: Bernd Kuhls Date: Sun, 5 Oct 2014 17:38:58 +0000 (+0200) Subject: package/php: Add support for mcrypt module X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ca97b357f336db85c9f76d6443515165e4f1077;p=buildroot.git package/php: Add support for mcrypt module Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/php/Config.ext b/package/php/Config.ext index f745cc9e3b..4649375493 100644 --- a/package/php/Config.ext +++ b/package/php/Config.ext @@ -56,6 +56,11 @@ config BR2_PACKAGE_PHP_EXT_HASH help HASH message digest framework +config BR2_PACKAGE_PHP_EXT_MCRYPT + bool "mcrypt" + help + mcrypt support + config BR2_PACKAGE_PHP_EXT_OPENSSL bool "openssl" select BR2_PACKAGE_OPENSSL diff --git a/package/php/php.mk b/package/php/php.mk index c2840f3d10..30c8d02f13 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -77,6 +77,11 @@ PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_EXT_SOCKETS),--enable-sockets) \ $(if $(BR2_PACKAGE_PHP_EXT_BCMATH),--enable-bcmath) \ $(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar) +ifeq ($(BR2_PACKAGE_PHP_EXT_MCRYPT),y) + PHP_CONF_OPTS += --with-mcrypt=$(STAGING_DIR)/usr + PHP_DEPENDENCIES += libmcrypt +endif + ifeq ($(BR2_PACKAGE_PHP_EXT_OPENSSL),y) PHP_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr PHP_DEPENDENCIES += openssl