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