# -*- 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
PortGroup           github 1.0

github.setup        nriley brightness 1.2

categories          sysutils
maintainers         mww openmaintainer
license             BSD
description         brightness changes the screen brightness from the command line
platforms           darwin freebsd
long_description    ${description}

checksums           rmd160  7149400b32095465937ff37de2d10d85cafd0b91 \
                    sha256  6ffb6f19495ecba3ab911a699c1fb52d346cf629564ceffbe3eafd5084282149

patchfiles          patch-Makefile.diff

use_configure no

variant universal {}

build.env-append    CC=${configure.cc} \
                    CFLAGS='${configure.cflags} [get_canonical_archflags cc]' \
                    LDFLAGS='${configure.ldflags} [get_canonical_archflags ld]'

destroot.env-append PREFIX=${destroot}/${prefix}
