Commit 7ca97b35 authored by Bernd Kuhls's avatar Bernd Kuhls Committed by Thomas Petazzoni
Browse files

package/php: Add support for mcrypt module

parent e29d47e5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
+5 −0
Original line number Diff line number Diff line
@@ -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