# -*- 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

PortSystem          1.0

name                xkbcomp
version             1.4.5
revision            0
categories          x11
license             X11
maintainers         {jeremyhu @jeremyhu} openmaintainer
description         Compile XKB keyboard description
long_description \
   The xkbcomp keymap compiler converts a description of an XKB keymap into \
   one of several output formats.  The most common use for xkbcomp is to \
   create a compiled keymap file (.xkm extension) which can be read directly \
   by XKB-capable X servers or utilities.  The keymap compiler can also \
   produce C header files or XKB source files.

platforms           darwin

homepage            https://www.x.org/
master_sites        xorg:individual/app/
use_bzip2           yes

checksums           rmd160  c22378b5ba551d48619288c6d3028e699a34921a \
                    sha256  6851086c4244b6fd0cc562880d8ff193fb2bbf1e141c73632e10731b31d4b05e \
                    size    251617

depends_build       port:pkgconfig

depends_lib         port:xorg-libxkbfile

configure.args      --disable-silent-rules

# http://trac.macports.org/ticket/50198
if {[string match *clang* ${configure.cc}]} {
    configure.cflags-append -Wno-string-compare 
}

livecheck.type      regex
livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
livecheck.url       https://xorg.freedesktop.org/archive/individual/app/?C=M&O=D
