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