kumquat-buildroot/package/libsoup3/libsoup3.mk
Thomas Devoogdt 28e38f4d5c package/libsoup3: new package
Libsoup3 has a new API [1], packages using libsoup may not compile
with libsoup3 or may crash at runtime in unexpected ways, so we add a
new package. It can be installed side by site with libsoup, without
any conflict.

[1] https://libsoup.org/libsoup-3.0/ch02.html

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-08-06 16:24:08 +02:00

58 lines
1.4 KiB
Makefile

################################################################################
#
# libsoup3
#
################################################################################
LIBSOUP3_VERSION_MAJOR = 3.4
LIBSOUP3_VERSION = $(LIBSOUP3_VERSION_MAJOR).2
LIBSOUP3_SOURCE = libsoup-$(LIBSOUP3_VERSION).tar.xz
LIBSOUP3_SITE = https://download.gnome.org/sources/libsoup/$(LIBSOUP3_VERSION_MAJOR)
LIBSOUP3_LICENSE = LGPL-2.0+
LIBSOUP3_LICENSE_FILES = COPYING
LIBSOUP3_CPE_ID_VENDOR = gnome
LIBSOUP3_INSTALL_STAGING = YES
LIBSOUP3_DEPENDENCIES = \
host-intltool \
host-libglib2 \
host-pkgconf \
libglib2 \
libpsl \
nghttp2 \
sqlite \
$(TARGET_NLS_DEPENDENCIES)
LIBSOUP3_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
LIBSOUP3_CONF_OPTS = \
-Dntlm=disabled \
-Dsysprof=disabled \
-Dtests=false \
-Dtls_check=false \
-Dvapi=disabled
ifeq ($(BR2_PACKAGE_BROTLI),y)
LIBSOUP3_CONF_OPTS += -Dbrotli=enabled
LIBSOUP3_DEPENDENCIES += brotli
else
LIBSOUP3_CONF_OPTS += -Dbrotli=disabled
endif
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
LIBSOUP3_CONF_OPTS += -Dintrospection=enabled
LIBSOUP3_DEPENDENCIES += gobject-introspection
else
LIBSOUP3_CONF_OPTS += -Dintrospection=disabled
endif
ifeq ($(BR2_PACKAGE_LIBKRB5),y)
LIBSOUP3_CONF_OPTS += \
-Dgssapi=enabled \
-Dkrb5_config=$(STAGING_DIR)/usr/bin/krb5-config
LIBSOUP3_DEPENDENCIES += libkrb5
else
LIBSOUP3_CONF_OPTS += -Dgssapi=disabled
endif
$(eval $(meson-package))