# -*- 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 119630 2014-05-02 20:15:30Z devans@macports.org $

PortSystem      1.0
PortGroup       muniversal 1.0

name            babl-devel
conflicts       babl
set git_name    babl
set git_commit  685a0f7ca6c246bfa4ccd281a9d47542f2827722
set git_date    20140428
version         0.1.11-${git_date}
license         LGPL-3+
categories      graphics
maintainers     devans
platforms       darwin

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
master_sites    https://git.gnome.org/browse/${git_name}/snapshot/

distname        ${git_name}-${git_commit}

checksums       rmd160  7c48f3fddcb9137d199c3422f7ce8e587c80edd7 \
                sha256  22dd2e37b1840efe4d6e773f285e274d00687b6c6b8081fad8996742d4354d4d

depends_build   port:w3m \
                port:librsvg \
                port:automake \
                port:autoconf \
                port:libtool

configure.cmd   ./autogen.sh
                
configure.args  --disable-silent-rules

build.env-append \
                CC="${configure.cc}"

platform darwin {
    foreach arch ${configure.universal_archs} {
        set merger_configure_args(${arch}) --build=${arch}-apple-${os.platform}${os.version}
    }
    if {![variant_isset universal]} {
        configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
    }
}

livecheck.type  none
livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)"
