Commit bd387486 authored by Sven Neumann's avatar Sven Neumann Committed by Peter Korsgaard
Browse files

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.

[Peter: pass --with-libgcrypt-prefix so configure finds it]
Signed-off-by: default avatarSven Neumann <s.neumann@raumfeld.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 044edd06
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
+7 −1
Original line number Diff line number Diff line
@@ -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 --with-libgcrypt-prefix=$(STAGING_DIR)/usr
else
LIBSOUP_CONF_OPT += --disable-ssl
endif

$(eval $(call AUTOTARGETS,package,libsoup))