# $Id: Portfile 107180 2013-06-20 23:17:42Z jeremyhu@macports.org $

PortSystem 1.0

name		xorg-libxcb
version		1.9.1
categories	x11 devel
license		X11
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           sha1    bf786bb7b9089102b73753135e061c87dc8e8685 \
                    rmd160  ab86e167f8cfea581b881d5bf79f36fc0ebafe6f \
                    sha256  d44a5ff4eb0b9569e6f7183b51fdaf6f58da90e7d6bfc36b612d7263f83e362f
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

configure.args  --disable-build-docs

variant docs description "Install extra documentation" {
    depends_build-append \
        port:doxygen \
        path:bin/dot:graphviz

    depends_skip_archcheck-append \
        doxygen

    configure.args-delete \
        --disable-build-docs

    configure.args-append \
        --enable-build-docs

    configure.env-append \
        DOXYGEN="${prefix}/bin/doxygen"
}

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

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

variant python27 conflicts python25 python26 python31 python32 python33 description {Use python 2.7} {
    depends_run-append      port:python27
    configure.python        ${prefix}/bin/python2.7
}

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

variant python32 conflicts python25 python26 python27 python31 python33 description {Use python 3.2} {
    depends_run-append      port:python32
    configure.python        ${prefix}/bin/python3.2
}

variant python33 conflicts python25 python26 python27 python31 python32 description {Use python 3.3} {
    depends_run-append      port:python33
    configure.python        ${prefix}/bin/python3.3
}

if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python31] && ![variant_isset python32] && ![variant_isset python33]} {
    default_variants +python27
}

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