* [Buildroot] [PATCH 1/3] php: libsodium support
@ 2019-11-08 9:17 Pascal de Bruijn
2019-11-09 13:55 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Pascal de Bruijn @ 2019-11-08 9:17 UTC (permalink / raw)
To: buildroot
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
---
package/php/Config.ext | 6 ++++++
package/php/php.mk | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/package/php/Config.ext b/package/php/Config.ext
index c7f0332fd8..0c6ed4b401 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -70,6 +70,12 @@ config BR2_PACKAGE_PHP_EXT_HASH
help
HASH message digest framework
+config BR2_PACKAGE_PHP_EXT_LIBSODIUM
+ bool "libsodium"
+ select BR2_PACKAGE_LIBSODIUM
+ help
+ libsodium support
+
config BR2_PACKAGE_PHP_EXT_MCRYPT
bool "mcrypt"
select BR2_PACKAGE_LIBMCRYPT
diff --git a/package/php/php.mk b/package/php/php.mk
index b679531238..85bf2075ae 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -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_LIBSODIUM),y)
+PHP_CONF_OPTS += --with-sodium=$(STAGING_DIR)/usr
+PHP_DEPENDENCIES += libsodium
+endif
+
ifeq ($(BR2_PACKAGE_PHP_EXT_MCRYPT),y)
PHP_CONF_OPTS += --with-mcrypt=$(STAGING_DIR)/usr
PHP_DEPENDENCIES += libmcrypt
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/3] php: libsodium support
@ 2019-11-08 8:21 Pascal de Bruijn
2019-11-08 9:10 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Pascal de Bruijn @ 2019-11-08 8:21 UTC (permalink / raw)
To: buildroot
---
package/php/Config.ext | 6 ++++++
package/php/php.mk | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/package/php/Config.ext b/package/php/Config.ext
index c7f0332fd8..0c6ed4b401 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -70,6 +70,12 @@ config BR2_PACKAGE_PHP_EXT_HASH
help
HASH message digest framework
+config BR2_PACKAGE_PHP_EXT_LIBSODIUM
+ bool "libsodium"
+ select BR2_PACKAGE_LIBSODIUM
+ help
+ libsodium support
+
config BR2_PACKAGE_PHP_EXT_MCRYPT
bool "mcrypt"
select BR2_PACKAGE_LIBMCRYPT
diff --git a/package/php/php.mk b/package/php/php.mk
index b679531238..85bf2075ae 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -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_LIBSODIUM),y)
+PHP_CONF_OPTS += --with-sodium=$(STAGING_DIR)/usr
+PHP_DEPENDENCIES += libsodium
+endif
+
ifeq ($(BR2_PACKAGE_PHP_EXT_MCRYPT),y)
PHP_CONF_OPTS += --with-mcrypt=$(STAGING_DIR)/usr
PHP_DEPENDENCIES += libmcrypt
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-11-09 13:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-08 9:17 [Buildroot] [PATCH 1/3] php: libsodium support Pascal de Bruijn
2019-11-09 13:55 ` Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2019-11-08 8:21 Pascal de Bruijn
2019-11-08 9:10 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox