# -*- 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: Portfile 87556 2011-11-25 16:59:23Z devans@macports.org $

PortSystem      1.0

name            babl
version         0.1.6
license         LGPL-3+
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      graphics
maintainers     devans
platforms       darwin
homepage        http://gegl.org/babl
master_sites    gimp:${name}/${branch}/

use_bzip2       yes

description \
    Babl is a library for dynamically handling pixel formats and managing \
    conversions between them.

long_description \
    ${description}

checksums       sha1    3178ec9f988efe895d00e2d432ad9b6ec10211e9 \
                rmd160  69f1493909ad571b89385b61636ed9f6ba16dd85

depends_build   port:w3m \
                port:librsvg

patchfiles      clang.patch

platform darwin {
    if {$build_arch == "x86_64"} {
        configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
    }
}

# r74147 breaks universal build

universal_variant no

configure.args  --enable-introspection=no

livecheck.type  regex
livecheck.url   http://ftp.iut-bm.univ-fcomte.fr/gimp/${name}/${branch}/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)"
