libsoup-2.4_2.74.3.bb 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. DEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl"
  10. SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
  11. SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \
  12. file://0001-Fix-build-with-libxml2-2.12.0-and-clang-17.patch"
  13. SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13"
  14. CVE_PRODUCT = "libsoup"
  15. S = "${WORKDIR}/libsoup-${PV}"
  16. inherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gtk-doc
  17. UPSTREAM_CHECK_REGEX = "libsoup-(?P<pver>2(\.(?!99)\d+)+)\.tar"
  18. GIR_MESON_ENABLE_FLAG = 'enabled'
  19. GIR_MESON_DISABLE_FLAG = 'disabled'
  20. PACKAGECONFIG ??= ""
  21. PACKAGECONFIG[brotli] = "-Dbrotli=enabled,-Dbrotli=disabled,brotli"
  22. # libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards
  23. PACKAGECONFIG[gnome] = "-Dgnome=true,-Dgnome=false"
  24. PACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5"
  25. PACKAGECONFIG[ntlm] = "-Dntlm=enabled,-Dntlm=disabled"
  26. PACKAGECONFIG[sysprof] = "-Dsysprof=enabled,-Dsysprof=disabled,sysprof"
  27. # Tell libsoup where the target ntlm_auth is installed
  28. do_write_config:append:class-target() {
  29. cat >${WORKDIR}/soup.cross <<EOF
  30. [binaries]
  31. ntlm_auth = '${bindir}/ntlm_auth'
  32. EOF
  33. }
  34. EXTRA_OEMESON:append:class-target = " --cross-file ${WORKDIR}/soup.cross"
  35. EXTRA_OEMESON += "-Dvapi=disabled -Dtls_check=false"
  36. GTKDOC_MESON_OPTION = "gtk_doc"
  37. # When built without gnome support, libsoup-2.4 will contain only one shared lib
  38. # and will therefore become subject to renaming by debian.bbclass. Prevent
  39. # renaming in order to keep the package name consistent regardless of whether
  40. # gnome support is enabled or disabled.
  41. DEBIAN_NOAUTONAME:${PN} = "1"
  42. # glib-networking is needed for SSL, proxies, etc.
  43. RRECOMMENDS:${PN} = "glib-networking"
  44. BBCLASSEXTEND = "native nativesdk"