# -*- 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 branch [join [lrange [split ${version} .] 0 1] .]
maintainers {devans @dbevans} openmaintainer
homepage http://gegl.org/babl
description Dynamic, any to any, pixel format conversion library.
long_description ${description}
master_sites gimp:${name}/${branch}/
checksums rmd160 c3e228706c1b80d2d1cd93c93fc05ef115972a8a \
sha256 a0f9284fcade0377d5227f73f3bf0c4fb6f1aeee2af3a7d335a90081bf5fee86
# 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*
# additionally 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}
configure.args --disable-silent-rules \
ac_cv_prog_AWK=/usr/bin/awk
# have config.guess determine processor type (i386 or x86_64) for all macOS versions,
# so we can specify a 32-bit build
patchfiles-append patch-config.guess.diff
# CC_FOR_BUILD is used by config.guess to determine processor type
if {![variant_isset universal]} {
configure.env-append CC_FOR_BUILD="${configure.cc} ${configure.cc_archflags}"
foreach arch ${configure.universal_archs} {
lappend merger_configure_env(${arch}) CC_FOR_BUILD='${configure.cc} -arch ${arch}'
livecheck.url http://download.gimp.org/pub/${name}/${branch}/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)"