Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 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 nghttp2" |
| 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" |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 15 | SRC_URI[sha256sum] = "83673c685b910fb7d39f1f28eee5afbefb71c05798fc350ac3bf1b885e1efaa1" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 16 | |
| 17 | PROVIDES = "libsoup-3.0" |
| 18 | CVE_PRODUCT = "libsoup" |
| 19 | |
| 20 | S = "${WORKDIR}/libsoup-${PV}" |
| 21 | |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 22 | inherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gi-docgen |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 23 | |
| 24 | GIR_MESON_ENABLE_FLAG = 'enabled' |
| 25 | GIR_MESON_DISABLE_FLAG = 'disabled' |
| 26 | |
| 27 | # libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards. Disable by default. |
| 28 | PACKAGECONFIG ??= "" |
| 29 | PACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5" |
| 30 | |
| 31 | EXTRA_OEMESON:append = " -Dvapi=disabled -Dtls_check=false" |
| 32 | |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 33 | GIDOCGEN_MESON_OPTION = 'docs' |
| 34 | GIDOCGEN_MESON_ENABLE_FLAG = 'enabled' |
| 35 | GIDOCGEN_MESON_DISABLE_FLAG = 'disabled' |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 36 | |
| 37 | # When built without gnome support, libsoup 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 | |
| 43 | # glib-networking is needed for SSL, proxies, etc. |
| 44 | RRECOMMENDS:${PN} = "glib-networking" |
| 45 | |
| 46 | BBCLASSEXTEND = "native nativesdk" |