package/php: add option for libargon2 support
authorPascal de Bruijn <p.debruijn@unilogic.nl>
Thu, 21 Nov 2019 08:13:04 +0000 (09:13 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 26 Nov 2019 22:26:19 +0000 (23:26 +0100)
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/php/Config.ext
package/php/php.mk

index 0c6ed4b40138c7bd6d59cb54428c70923cb1b8bf..d5c723ca396d1ab690221b203c26601292c541da 100644 (file)
@@ -70,6 +70,12 @@ config BR2_PACKAGE_PHP_EXT_HASH
        help
          HASH message digest framework
 
+config BR2_PACKAGE_PHP_EXT_LIBARGON2
+       bool "libargon2"
+       select BR2_PACKAGE_LIBARGON2
+       help
+         libargon2 support
+
 config BR2_PACKAGE_PHP_EXT_LIBSODIUM
        bool "libsodium"
        select BR2_PACKAGE_LIBSODIUM
index 85bf2075aeef7aee3177384b992228e5ff1d3260..007b8a64c35721e3a7e648518e7478f6663fc989 100644 (file)
@@ -122,6 +122,11 @@ PHP_CONF_OPTS += \
        $(if $(BR2_PACKAGE_PHP_EXT_MBSTRING),--enable-mbstring) \
        $(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar)
 
+ifeq ($(BR2_PACKAGE_PHP_EXT_LIBARGON2),y)
+PHP_CONF_OPTS += --with-password-argon2=$(STAGING_DIR)/usr
+PHP_DEPENDENCIES += libargon2
+endif
+
 ifeq ($(BR2_PACKAGE_PHP_EXT_LIBSODIUM),y)
 PHP_CONF_OPTS += --with-sodium=$(STAGING_DIR)/usr
 PHP_DEPENDENCIES += libsodium