# -*- 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                xtrap
version             1.0.3
categories          x11
license             X11
maintainers         {jeremyhu @jeremyhu} openmaintainer
description         XTrap sample clients
long_description \
   XTrap sample clients xtrapchar, xtrapin, xtrapinfo, xtrapout, xtrapproto, \
   xtrapreset, and xtrapstats.

platforms           darwin

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

checksums           rmd160  a932b596e045466845430536a9502896e3253812 \
                    sha256  52c80d3f3386b70d38382a6d84b4673d280bc1518a131c49d26152f78324156b \
                    size    134065

depends_build \
        port:pkgconfig \
        port:xorg-util-macros

depends_lib         port:xorg-libXTrap

configure.args      --mandir=${prefix}/share/man

use_autoreconf yes
autoreconf.args -fvi
post-patch {
        reinplace {s:AM_CONFIG_HEADER(\(.*\)):AC_CONFIG_HEADERS([\1]):} ${worksrcpath}/configure.ac
}

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