# -*- 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
maintainers {jeremyhu @jeremyhu} openmaintainer
homepage http://xcb.freedesktop.org/
long_description The X C Binding (XCB) library
master_sites ${homepage}dist/
distname libxcb-${version}
checksums rmd160 9b648a6450eba2f43407252e4ec7f6d5eb1b6e2e \
sha256 a89fb7af7a11f43d2ce84a844a4b38df688c092bf4b67683aef179cdf2a647c4 \
depends_build port:pkgconfig
depends_lib port:xorg-libXau \
port:xorg-libpthread-stubs
configure.args --disable-devel-docs \
variant docs description "Install extra documentation" {
depends_skip_archcheck-append \
DOXYGEN=${prefix}/bin/doxygen
# No need to use require_active_variants here. Technically, `xorg-libxcb +python37` builds fine
# with `xorg-xcb-proto +python36` as the xcbgen module in xorg-xcb-proto is not located using
# usual Python import mechanism. Instead, the path for xcbgen is recorded in
# `$prefix/lib/pkgconfig/xcb-proto.pc` as the pythondir variable when building xorg-xcb-proto
# and the build system of libxcb loads xcbgen using that pkg-config variable [1].
# [1] https://gitlab.freedesktop.org/xorg/lib/libxcb/blob/1.13.1/configure.ac#L85
variant python35 conflicts python36 python37 description {Use python 3.5} {
depends_build-append port:python35
configure.python ${prefix}/bin/python3.5