# $Id: Portfile 102174 2013-01-29 07:53:39Z jeremyhu@macports.org $

PortSystem 1.0

name		xorg-xcb-util
version		0.3.9
categories	x11 devel
license		X11
maintainers	jeremyhu openmaintainer
description	X.org xcb-util
homepage	http://xcb.freedesktop.org/
platforms	darwin macosx
long_description Utility libraries for XCB
master_sites	 ${homepage}/dist/

distname	xcb-util-${version}
checksums           sha1    02060d8e2e70838fc41cd3a27c7f2909090d8c20 \
                    rmd160  949b2d8666914185b106c2d0bafb4c625cd450c6 \
                    sha256  c611259c0ab20fd76f79f48f4684843c18ea9c967eba78a45e8b3636315c18c4
use_bzip2	yes
use_parallel_build yes

depends_build   port:pkgconfig
depends_lib	port:xorg-libxcb \
                port:xorg-xproto

compiler.blacklist gcc-4.0

# TODO: base should do this: http://trac.macports.org/ticket/32542
if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})

    # base 2.1.x ignores the argument and just use ${configure.compiler}
    if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
        depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
    }

    if {[string match macports-gcc* ${configure.compiler}]} {
        depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
    }
}

livecheck.type  regex
livecheck.url   ${master_sites}?C=M&O=D
livecheck.regex xcb-util-(\\d+(?:\\.\\d+)*)
