Skip to contentSkip to conversation

libsoup: add option to enable HTTPS (SSL) support

PATCH New Sven Neumann 2 participants 2 messages Aug 11, 2011 – Sep 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsoup: add option to enable HTTPS (SSL) support

By selecting BR2_PACKAGE_LIBSOUP_SSL the gnutls package is selected and libsoup will be compiled with SSL support.

---
 package/libsoup/Config.in  |    7 +++++++
 package/libsoup/libsoup.mk |    8 +++++++-
 2 files changed, 14 insertions(+), 1 deletions(-)
package/libsoup/Config.in +7 -0
index 2264b63..347687c 100644
@@ -12,5 +12,12 @@ config BR2_PACKAGE_LIBSOUP
 
 	  http://live.gnome.org/LibSoup
 
+config BR2_PACKAGE_LIBSOUP_SSL
+	bool "https support"
+	select BR2_PACKAGE_GNUTLS
+	depends on BR2_PACKAGE_LIBSOUP
+	help
+	  Enable HTTPS (SSL) support.
+
 comment "libsoup requires a toolchain with WCHAR support"
 	depends on !BR2_USE_WCHAR
package/libsoup/libsoup.mk +7 -1
index 11bfadd..02db60a 100644
@@ -19,9 +19,15 @@ endif
 LIBSOUP_CONF_OPT = \
 	--disable-explicit-deps \
 	--disable-glibtest	\
-	--disable-ssl		\
 	--without-gnome
 
 LIBSOUP_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl) host-pkg-config host-libglib2 libglib2 libxml2
 
+ifeq ($(BR2_PACKAGE_LIBSOUP_SSL),y)
+LIBSOUP_DEPENDENCIES += gnutls
+LIBSOUP_CONF_OPT += --enable-ssl --without-libgcrypt-prefix
+else
+LIBSOUP_CONF_OPT += --disable-ssl
+endif
+
 $(eval $(call AUTOTARGETS,package,libsoup))
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 libsoup: add option to enable HTTPS (SSL) support

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> By selecting BR2_PACKAGE_LIBSOUP_SSL the gnutls package is selected Sven> and libsoup will be compiled with SSL support.

Sven> Signed-off-by: Sven Neumann <[email protected]> Sven> ---

 Sven>  package/libsoup/Config.in  |    7 +++++++
 Sven>  package/libsoup/libsoup.mk |    8 +++++++-

Sven> 2 files changed, 14 insertions(+), 1 deletions(-)

Sven> diff --git a/package/libsoup/Config.in b/package/libsoup/Config.in

Sven> +ifeq ($(BR2_PACKAGE_LIBSOUP_SSL),y)
Sven> +LIBSOUP_DEPENDENCIES += gnutls
Sven> +LIBSOUP_CONF_OPT += --enable-ssl --without-libgcrypt-prefix

Why --without? It seems I need to pass --with-libgrcypt-prefix=$(STAGING_DIR)/usr for configure to find libgcrypt-config in staging.

Committed with that change, thanks.

Signature · 1 line
Bye, Peter Korsgaard