# -*- 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                unclutter
version             8
revision            2
checksums           rmd160  9e9747b6e1fa610d02ac50976cf80a49db38faf5 \
                    sha256  33a78949a7dedf2e8669ae7b5b2c72067896497820292c96afaa60bb71d1f2a6 \
                    size    9002

categories          x11
license             public-domain
maintainers         nomaintainer

description         Hides the cursor in X after a period of inactivity

long_description    unclutter hides your X mouse cursor when you don't need \
                    it, to prevent it from getting in the way. You have only \
                    to move the mouse to restore the mouse cursor.

homepage            http://www.ibiblio.org/pub/X11/contrib/utilities/
master_sites        http://www.ibiblio.org/pub/X11/contrib/utilities/

depends_lib         port:xorg-libX11

worksrcdir          ${name}

patchfiles          fix-typos.patch \
                    modernize-code.patch

use_configure       no

variant universal {}

build.args-append   CC="${configure.cc}" \
                    CCOPTIONS="${configure.cflags} [get_canonical_archflags cc]" \
                    CDEBUGFLAGS= \
                    INCROOT="${prefix}/include" \
                    LDOPTIONS="${configure.ldflags} [get_canonical_archflags ld]"

destroot.args       BINDIR=${destroot}${prefix}/bin \
                    MANDIR=${destroot}${prefix}/share/man/man1

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} README ${destroot}${docdir}
}