# -*- 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 # $Id$ PortSystem 1.0 PortGroup muniversal 1.0 name babl conflicts babl-devel version 0.1.18 license LGPL-3+ set branch [join [lrange [split ${version} .] 0 1] .] categories graphics maintainers devans openmaintainer platforms darwin homepage http://gegl.org/babl description Dynamic, any to any, pixel format conversion library. long_description ${description} master_sites gimp:${name}/${branch}/ use_bzip2 yes checksums rmd160 ee4ea7f76dcb1a8c98ef31b39e7fd8de127544f6 \ sha256 483a495bc9fa68be624e27e72d2144ebfcbbf63e061eb986db1fb82b04b6fbf9 # 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* 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}" } else { foreach arch ${configure.universal_archs} { lappend merger_configure_env(${arch}) CC_FOR_BUILD='${configure.cc} -arch ${arch}' } } livecheck.type regex livecheck.url http://download.gimp.org/pub/${name}/${branch}/ livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)"