# -*- 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
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

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

checksums           rmd160  7149400b32095465937ff37de2d10d85cafd0b91 \
                    sha256  6ffb6f19495ecba3ab911a699c1fb52d346cf629564ceffbe3eafd5084282149

use_configure no
installs_libs       no

variant universal {}

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

destroot.destdir    prefix=${destroot}${prefix}