1ac13d5f3SPatrick WilliamsSUMMARY = "An HTTP library implementation in C"
2ac13d5f3SPatrick WilliamsDESCRIPTION = "libsoup is an HTTP client/server library for GNOME. It uses GObjects \
3ac13d5f3SPatrick Williamsand the glib main loop, to integrate well with GNOME applications."
4ac13d5f3SPatrick WilliamsHOMEPAGE = "https://wiki.gnome.org/Projects/libsoup"
5ac13d5f3SPatrick WilliamsBUGTRACKER = "https://bugzilla.gnome.org/"
6ac13d5f3SPatrick WilliamsSECTION = "x11/gnome/libs"
7ac13d5f3SPatrick WilliamsLICENSE = "LGPL-2.0-only"
8ac13d5f3SPatrick WilliamsLIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
9ac13d5f3SPatrick Williams
10ac13d5f3SPatrick WilliamsDEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl nghttp2"
11ac13d5f3SPatrick Williams
12ac13d5f3SPatrick WilliamsSHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
13ac13d5f3SPatrick Williams
14ac13d5f3SPatrick WilliamsSRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz"
15ac13d5f3SPatrick WilliamsSRC_URI[sha256sum] = "291c67725f36ed90ea43efff25064b69c5a2d1981488477c05c481a3b4b0c5aa"
16ac13d5f3SPatrick Williams
17ac13d5f3SPatrick WilliamsPROVIDES = "libsoup-3.0"
18ac13d5f3SPatrick WilliamsCVE_PRODUCT = "libsoup"
19ac13d5f3SPatrick Williams
20ac13d5f3SPatrick WilliamsS = "${WORKDIR}/libsoup-${PV}"
21ac13d5f3SPatrick Williams
22*03514f19SPatrick Williamsinherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gi-docgen vala
23ac13d5f3SPatrick Williams
24ac13d5f3SPatrick WilliamsGIR_MESON_ENABLE_FLAG = 'enabled'
25ac13d5f3SPatrick WilliamsGIR_MESON_DISABLE_FLAG = 'disabled'
26ac13d5f3SPatrick Williams
27ac13d5f3SPatrick WilliamsPACKAGECONFIG ??= ""
28ac13d5f3SPatrick WilliamsPACKAGECONFIG[brotli] = "-Dbrotli=enabled,-Dbrotli=disabled,brotli"
29ac13d5f3SPatrick WilliamsPACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5"
30ac13d5f3SPatrick WilliamsPACKAGECONFIG[ntlm] = "-Dntlm=enabled,-Dntlm=disabled"
31ac13d5f3SPatrick WilliamsPACKAGECONFIG[sysprof] = "-Dsysprof=enabled,-Dsysprof=disabled,sysprof"
32ac13d5f3SPatrick Williams
33ac13d5f3SPatrick Williams# Tell libsoup where the target ntlm_auth is installed
34ac13d5f3SPatrick Williamsdo_write_config:append:class-target() {
35ac13d5f3SPatrick Williams    cat >${WORKDIR}/soup.cross <<EOF
36ac13d5f3SPatrick Williams[binaries]
37ac13d5f3SPatrick Williamsntlm_auth = '${bindir}/ntlm_auth'
38ac13d5f3SPatrick WilliamsEOF
39ac13d5f3SPatrick Williams}
40ac13d5f3SPatrick WilliamsEXTRA_OEMESON:append:class-target = " --cross-file ${WORKDIR}/soup.cross"
41ac13d5f3SPatrick Williams
42*03514f19SPatrick WilliamsEXTRA_OEMESON += "-Dtls_check=false"
43ac13d5f3SPatrick Williams# Disable the test suites
44ac13d5f3SPatrick WilliamsEXTRA_OEMESON += "-Dtests=false -Dautobahn=disabled -Dpkcs11_tests=disabled"
45ac13d5f3SPatrick Williams
46ac13d5f3SPatrick WilliamsGIDOCGEN_MESON_OPTION = 'docs'
47ac13d5f3SPatrick WilliamsGIDOCGEN_MESON_ENABLE_FLAG = 'enabled'
48ac13d5f3SPatrick WilliamsGIDOCGEN_MESON_DISABLE_FLAG = 'disabled'
49ac13d5f3SPatrick Williams
50ac13d5f3SPatrick Williams# When built without gnome support, libsoup will contain only one shared lib
51ac13d5f3SPatrick Williams# and will therefore become subject to renaming by debian.bbclass. Prevent
52ac13d5f3SPatrick Williams# renaming in order to keep the package name consistent regardless of whether
53ac13d5f3SPatrick Williams# gnome support is enabled or disabled.
54ac13d5f3SPatrick WilliamsDEBIAN_NOAUTONAME:${PN} = "1"
55ac13d5f3SPatrick Williams
56ac13d5f3SPatrick Williams# glib-networking is needed for SSL, proxies, etc.
57ac13d5f3SPatrick WilliamsRRECOMMENDS:${PN} = "glib-networking"
58ac13d5f3SPatrick Williams
59ac13d5f3SPatrick WilliamsBBCLASSEXTEND = "native nativesdk"
60