# $Id: Portfile 68257 2010-05-30 02:58:35Z jmr@macports.org $

PortSystem 1.0

name		xorg-libxcb
version		1.6
categories	x11 devel
maintainers	jeremyhu openmaintainer
description	X.org libxcb
homepage	http://xcb.freedesktop.org/
platforms	darwin macosx
long_description The X C Binding \\(XCB\\) library
master_sites	 ${homepage}/dist/

distname	libxcb-${version}
checksums           md5     cba9f6d1137ef00d9b326726d0bab6fd \
                    sha1    b0a6fec4c02ec876f32bbd4b64ffe8a25f0da518 \
                    rmd160  44b885490e91d225eeeaa5862c9b8cc439b0e8a3
use_bzip2	yes
use_parallel_build yes

depends_build   port:pkgconfig

depends_lib	port:xorg-libXau \
                port:xorg-libXdmcp \
                port:xorg-xcb-proto \
                port:xorg-libpthread-stubs

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

variant python25 conflicts python26 python31 description {Use python 2.5} {
    depends_run-append      port:python25
    configure.python        ${prefix}/bin/python2.5
}

variant python26 conflicts python25 python31 description {Use python 2.6} {
    depends_run-append      port:python26
    configure.python        ${prefix}/bin/python2.6
}

variant python31 conflicts python25 python26 description {Use python 3.1} {
    depends_run-append      port:python31
    configure.python        ${prefix}/bin/python3.1
}

# Default to 2.6 since 2.5 fails universal for me on Leopard... Ticket #17501
if {![variant_isset python25] && ![variant_isset python31]} {
    default_variants +python26
}
