* [Buildroot] [PATCH] libsoup: add option to enable HTTPS (SSL) support
@ 2011-08-11 9:57 Sven Neumann
2011-09-06 10:09 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Sven Neumann @ 2011-08-11 9:57 UTC (permalink / raw)
To: buildroot
By selecting BR2_PACKAGE_LIBSOUP_SSL the gnutls package is selected
and libsoup will be compiled with SSL support.
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
package/libsoup/Config.in | 7 +++++++
package/libsoup/libsoup.mk | 8 +++++++-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/package/libsoup/Config.in b/package/libsoup/Config.in
index 2264b63..347687c 100644
--- a/package/libsoup/Config.in
+++ b/package/libsoup/Config.in
@@ -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
diff --git a/package/libsoup/libsoup.mk b/package/libsoup/libsoup.mk
index 11bfadd..02db60a 100644
--- a/package/libsoup/libsoup.mk
+++ b/package/libsoup/libsoup.mk
@@ -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))
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libsoup: add option to enable HTTPS (SSL) support
2011-08-11 9:57 [Buildroot] [PATCH] libsoup: add option to enable HTTPS (SSL) support Sven Neumann
@ 2011-09-06 10:09 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-09-06 10:09 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> 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 <s.neumann@raumfeld.com>
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.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-06 10:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-11 9:57 [Buildroot] [PATCH] libsoup: add option to enable HTTPS (SSL) support Sven Neumann
2011-09-06 10:09 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.