source: trunk/dports/graphics/babl/Portfile

Last change on this file was 149681, checked in by mcalhoun@…, 13 months ago

babl: allow 32-bit and universal builds
no revbump since port builds successfully or not at all

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- 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
2# $Id: Portfile 149681 2016-06-29 13:04:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                babl
8conflicts           babl-devel
9version             0.1.18
10license             LGPL-3+
11set branch          [join [lrange [split ${version} .] 0 1] .]
12categories          graphics
13maintainers         devans openmaintainer
14platforms           darwin
15homepage            http://gegl.org/babl
16description         Dynamic, any to any, pixel format conversion library.
17
18long_description    ${description}
19
20master_sites        gimp:${name}/${branch}/
21
22use_bzip2           yes
23
24checksums           rmd160  ee4ea7f76dcb1a8c98ef31b39e7fd8de127544f6 \
25                    sha256  483a495bc9fa68be624e27e72d2144ebfcbbf63e061eb986db1fb82b04b6fbf9
26
27# In 0.1.12, i386 fails to compile with SL's gcc-4.2:
28#    babl-cpuaccel.c:169: error: ‘asm’ operand has impossible constraints
29compiler.blacklist-append *gcc*
30
31configure.args      --disable-silent-rules \
32                    ac_cv_prog_AWK=/usr/bin/awk
33
34# have config.guess determine processor type (i386 or x86_64) for all macOS versions,
35# so we can specify a 32-bit build
36patchfiles-append   patch-config.guess.diff
37
38# CC_FOR_BUILD is used by config.guess to determine processor type
39if {![variant_isset universal]} {
40    configure.env-append CC_FOR_BUILD="${configure.cc} ${configure.cc_archflags}"
41} else {
42    foreach arch ${configure.universal_archs} {
43        lappend merger_configure_env(${arch})  CC_FOR_BUILD='${configure.cc} -arch ${arch}'
44    }
45}
46
47livecheck.type      regex
48livecheck.url       http://download.gimp.org/pub/${name}/${branch}/
49livecheck.regex     "${name}-(\\d+(?:\\.\\d+)+)"
Note: See TracBrowser for help on using the repository browser.