package/php: Add support for mcrypt module
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 5 Oct 2014 17:38:58 +0000 (19:38 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Oct 2014 21:31:08 +0000 (22:31 +0100)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/php/Config.ext
package/php/php.mk

index f745cc9e3b3a0baa860eaa97103fcb3bfbbafbec..4649375493fea243d0fbcadafba293acde65a5bf 100644 (file)
@@ -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
index c2840f3d105777c9828467505613c157021aa3e7..30c8d02f13793aef5f52d020300afd15a2156bfb 100644 (file)
@@ -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