source: trunk/dports/sysutils/brightness/Portfile

Last change on this file was 116667, checked in by ryandesign@…, 4 years ago

brightness: fix build with old gcc by specifying -std=c99; add modeline

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# -*- 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
2# $Id: Portfile 116667 2014-02-02 01:28:10Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                brightness
7# no version given for original source
8version             1.0
9categories          sysutils
10maintainers         mww openmaintainer
11# no license info given
12license             none
13description         brightness changes the screen brightness from the command line
14platforms           darwin freebsd
15long_description    ${description}
16
17homepage            http://dev.sabi.net/svn/dev/trunk/LocationDo/brightness.c
18checksums           rmd160  9314b0c8bf08a05300139e66d1e438652f692749 \
19                    sha256  8faff5a221d55368c3e848f0163389d996e2075db63f610938b60f4d5dbb00f0
20
21installs_libs       no
22
23distfiles           brightness.c
24master_sites        http://dev.sabi.net/svn/dev/trunk/LocationDo/
25
26extract {
27    file mkdir ${worksrcpath}
28    file copy ${distpath}/${distfiles} ${worksrcpath}/
29}
30
31use_configure no
32
33variant universal {}
34
35build {
36    system -W ${worksrcpath} "${configure.cc} -std=c99 -o brightness brightness.c -framework IOKit -framework ApplicationServices [get_canonical_archflags cc]"
37}
38
39destroot {
40    xinstall -m 755 ${worksrcpath}/brightness ${destroot}${prefix}/bin/brightness
41}
42
43livecheck.type      none
44
Note: See TracBrowser for help on using the repository browser.