diff options
Diffstat (limited to 'meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb')
-rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb b/meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb new file mode 100644 index 0000000000..ee20530b64 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb | |||
@@ -0,0 +1,59 @@ | |||
1 | SUMMARY = "An HTTP library implementation in C" | ||
2 | DESCRIPTION = "libsoup is an HTTP client/server library for GNOME. It uses GObjects \ | ||
3 | and the glib main loop, to integrate well with GNOME applications." | ||
4 | HOMEPAGE = "https://wiki.gnome.org/Projects/libsoup" | ||
5 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
6 | SECTION = "x11/gnome/libs" | ||
7 | LICENSE = "LGPL-2.0-only" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" | ||
9 | |||
10 | DEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl" | ||
11 | |||
12 | SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" | ||
13 | |||
14 | SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | ||
15 | file://0001-Fix-build-with-libxml2-2.12.0-and-clang-17.patch" | ||
16 | SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13" | ||
17 | |||
18 | CVE_PRODUCT = "libsoup" | ||
19 | |||
20 | S = "${WORKDIR}/libsoup-${PV}" | ||
21 | |||
22 | inherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gtk-doc | ||
23 | |||
24 | UPSTREAM_CHECK_REGEX = "libsoup-(?P<pver>2(\.(?!99)\d+)+)\.tar" | ||
25 | |||
26 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
27 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
28 | |||
29 | PACKAGECONFIG ??= "" | ||
30 | PACKAGECONFIG[brotli] = "-Dbrotli=enabled,-Dbrotli=disabled,brotli" | ||
31 | # libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards | ||
32 | PACKAGECONFIG[gnome] = "-Dgnome=true,-Dgnome=false" | ||
33 | PACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5" | ||
34 | PACKAGECONFIG[ntlm] = "-Dntlm=enabled,-Dntlm=disabled" | ||
35 | PACKAGECONFIG[sysprof] = "-Dsysprof=enabled,-Dsysprof=disabled,sysprof" | ||
36 | |||
37 | # Tell libsoup where the target ntlm_auth is installed | ||
38 | do_write_config:append:class-target() { | ||
39 | cat >${WORKDIR}/soup.cross <<EOF | ||
40 | [binaries] | ||
41 | ntlm_auth = '${bindir}/ntlm_auth' | ||
42 | EOF | ||
43 | } | ||
44 | EXTRA_OEMESON:append:class-target = " --cross-file ${WORKDIR}/soup.cross" | ||
45 | |||
46 | EXTRA_OEMESON += "-Dvapi=disabled -Dtls_check=false" | ||
47 | |||
48 | GTKDOC_MESON_OPTION = "gtk_doc" | ||
49 | |||
50 | # When built without gnome support, libsoup-2.4 will contain only one shared lib | ||
51 | # and will therefore become subject to renaming by debian.bbclass. Prevent | ||
52 | # renaming in order to keep the package name consistent regardless of whether | ||
53 | # gnome support is enabled or disabled. | ||
54 | DEBIAN_NOAUTONAME:${PN} = "1" | ||
55 | |||
56 | # glib-networking is needed for SSL, proxies, etc. | ||
57 | RRECOMMENDS:${PN} = "glib-networking" | ||
58 | |||
59 | BBCLASSEXTEND = "native nativesdk" | ||