xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "An HTTP library implementation in C"
2*4882a593SmuzhiyunDESCRIPTION = "libsoup is an HTTP client/server library for GNOME. It uses GObjects \
3*4882a593Smuzhiyunand the glib main loop, to integrate well with GNOME applications."
4*4882a593SmuzhiyunHOMEPAGE = "https://wiki.gnome.org/Projects/libsoup"
5*4882a593SmuzhiyunBUGTRACKER = "https://bugzilla.gnome.org/"
6*4882a593SmuzhiyunSECTION = "x11/gnome/libs"
7*4882a593SmuzhiyunLICENSE = "LGPL-2.0-only"
8*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunDEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunSHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz"
15*4882a593SmuzhiyunSRC_URI[sha256sum] = "f0a427656e5fe19e1df71c107e88dfa1b2e673c25c547b7823b6018b40d01159"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunCVE_PRODUCT = "libsoup"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunS = "${WORKDIR}/libsoup-${PV}"
20*4882a593Smuzhiyun
21*4882a593Smuzhiyuninherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gtk-doc
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "libsoup-(?P<pver>2(\.(?!99)\d+)+)\.tar"
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunGIR_MESON_ENABLE_FLAG = 'enabled'
26*4882a593SmuzhiyunGIR_MESON_DISABLE_FLAG = 'disabled'
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun# libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards. Disable by default.
29*4882a593SmuzhiyunPACKAGECONFIG ??= ""
30*4882a593SmuzhiyunPACKAGECONFIG[gnome] = "-Dgnome=true,-Dgnome=false"
31*4882a593SmuzhiyunPACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5"
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunEXTRA_OEMESON:append = " -Dvapi=disabled -Dtls_check=false"
34*4882a593Smuzhiyun
35*4882a593SmuzhiyunGTKDOC_MESON_OPTION = "gtk_doc"
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun# When built without gnome support, libsoup-2.4 will contain only one shared lib
38*4882a593Smuzhiyun# and will therefore become subject to renaming by debian.bbclass. Prevent
39*4882a593Smuzhiyun# renaming in order to keep the package name consistent regardless of whether
40*4882a593Smuzhiyun# gnome support is enabled or disabled.
41*4882a593SmuzhiyunDEBIAN_NOAUTONAME:${PN} = "1"
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun# glib-networking is needed for SSL, proxies, etc.
44*4882a593SmuzhiyunRRECOMMENDS:${PN} = "glib-networking"
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
47