# -*- 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
set git_commit 84128d538aa4f189c31d296d04084762ce062107
version 0.1.73-${git_date}
maintainers {devans @dbevans}
description Babl is a library for dynamically handling pixel formats and managing \
conversions between them. This is the development version based on a \
recent snapshot of upstream git master.
long_description ${description}
homepage http://gegl.org/babl
git.url --depth 200 https://gitlab.gnome.org/GNOME/babl.git
depends_lib-append port:lcms2 \
port:gobject-introspection
# In 0.1.12, i386 fails to compile with SL's gcc-4.2:
# babl-cpuaccel.c:169: error: ‘asm’ operand has impossible constraints
compiler.blacklist-append *gcc-3.* *gcc-4.*
# blacklist compilers that don't support C11 (typedef redefinition in C)
# babl-icc.c:1031:25: error: redefinition of typedef 'UTF8' is invalid in C
compiler.blacklist-append {clang < 300}
# babl-0.1.72 default compiler on macOS 10.10 (clang-700.1.81) has trouble with extension sse-half
# babl-0.1.72/extensions/sse-half.c:49:24: error: invalid conversion between vector type '__v4sf' (vector of 4 'float' values) and integer type 'int' of different size
# __v4sf out_val = (__v4sf)_mm_cvtph_ps(in_val);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compiler.blacklist-append {clang > 700 < 800}
# 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}"
destroot.env-append "CC=${configure.cc} ${configure.cc_archflags}"