# $Id: Portfile 56286 2009-08-26 01:44:54Z jeremyhu@macports.org $

PortSystem 1.0

name		xorg-libxcb
version		1.4
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     b00fd506c717dea01f595e8da31f6914 \
                    sha1    fb3bc1a81058e1894663771f87b8a3919f8520ce \
                    rmd160  c8ce1e1670c09ded64c9a1642c8ed26403ef9986
use_bzip2	yes
use_parallel_build yes

depends_build   port:pkgconfig \
                port:xorg-libpthread-stubs

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

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

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

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

variant python30 conflicts python25 python26 description {Use python 3.0} {
    depends_run-append      port:python30
    configure.python        ${prefix}/bin/python3.0
}

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