# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
github.setup hughsie appstream-glib 0_7_15 appstream_glib_
version [string map {_ .} ${version}]
maintainers {devans @dbevans} openmaintainer
homepage https://people.freedesktop.org/~hughsient/appdata/
description This library provides objects and helper methods to help \
reading and writing AppStream metadata.
long_description ${description}
checksums rmd160 5c6ca22f413c6c14a6a56615e43d309000e5ebaa \
sha256 576cff11d2ac1080e27fd89aecaea6a296813e2f49db7b9e93ba2047f5e253ff \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:gobject-introspection \
patchfiles use-system-uuid.patch \
dont-use-version-script.patch
reinplace "s|__SDK_PATH__|${configure.sdkroot}|g" ${worksrcpath}/meson.build
# attempt to fix build on 10.6 by blacklisting troublesome compilers
compiler.blacklist-append *gcc-3.* *gcc-4.* {clang < 300}
# gobject-introspection uses g-ir-scanner, which uses $CC from env
if {[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}'
build.env-append CC="${configure.cc} ${configure.cc_archflags}"