# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 PortGroup meson 1.0 name libsoup-devel conflicts libsoup set my_name libsoup version 3.4.4 revision 1 categories gnome net license LGPL-2+ maintainers {mascguy @mascguy} {devans @dbevans} openmaintainer description Soup is an HTTP library implementation in C. long_description Soup provides a queued asynchronous callback-based \ mechanism for sending and servicing SOAP requests \ and a WSDL (Web Service Definition Language) for C \ compilers which generates client stubs and server \ skeletons for easily calling and implementing SOAP \ methods. homepage https://wiki.gnome.org/Projects/libsoup set branch [join [lrange [split ${version} .] 0 1] .] master_sites gnome:sources/${my_name}/${branch}/ use_xz yes distname ${my_name}-${version} dist_subdir ${my_name} checksums rmd160 5e58d56eda79bb714c6b7cc7e1971e3e32efa277 \ sha256 291c67725f36ed90ea43efff25064b69c5a2d1981488477c05c481a3b4b0c5aa \ size 1536268 # Disable unexpected download of subprojects meson.wrap_mode nodownload set py_ver 3.12 set py_ver_nodot [string map {. {}} ${py_ver}] depends_build-append \ port:python${py_ver_nodot} \ port:pkgconfig \ port:curl \ path:bin/vala:vala depends_lib-append \ port:brotli \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:glib-networking \ path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \ port:kerberos5 \ port:libpsl \ port:libxml2 \ port:sqlite3 \ port:zlib \ port:nghttp2 compiler.blacklist-append \ {*gcc-[34].*} {clang < 421} configure.args-append \ -Dbrotli=enabled \ -Dgssapi=enabled \ -Ddocs=disabled \ -Dintrospection=enabled \ -Dvapi=disabled \ -Dntlm=disabled \ -Dsysprof=disabled \ -Dtests=false # help it to find python #patchfiles-append patch-find-python.diff configure.python ${prefix}/bin/python${py_ver} post-patch { reinplace "s|@@PYTHON3_BIN@@|${configure.python}|" \ ${worksrcpath}/meson.build reinplace "s|/usr/bin/env python3|${configure.python}|" \ ${worksrcpath}/get_apache_modules_dirs.py \ ${worksrcpath}/libsoup/generate-header-names.py \ ${worksrcpath}/libsoup/generate-version-header.py } # uses g-ir-scanner, which uses $CC from env if { ${universal_possible} && [variant_isset universal] } { foreach arch ${configure.universal_archs} { lappend merger_build_env(${arch}) "CC=${configure.cc} -arch ${arch}" lappend merger_destroot_env(${arch}) "CC=${configure.cc} -arch ${arch}" } } else { build.env-append "CC=${configure.cc} ${configure.cc_archflags}" destroot.env-append "CC=${configure.cc} ${configure.cc_archflags}" } platform darwin 8 { # meson on Tiger cannot use rpaths, so we workaround with this to find dylib destroot.env-append "DYLD_LIBRARY_PATH=${build_dir}/${my_name}" } variant docs description {Enable doc generation} { depends_build-append \ port:gi-docgen \ port:gtk-doc configure.args-replace \ -Ddocs=disabled \ -Ddocs=enabled } variant gnome description {Enable GNOME support} { configure.args-replace -Dvapi=disabled -Dvapi=enabled } platform darwin { # vapigen is broken on PPC at the moment if { ${build_arch} ne "ppc" } { # default_variants-append +gnome } } livecheck.type gnome livecheck.name ${my_name}