Revision
116666
Author
ryandesign@macports.org
Date
2014-02-01 17:21:39 -0800 (Sat, 01 Feb 2014)

Log Message

brightness: use -arch flags and add universal variant

Modified Paths

Diff

Modified: trunk/dports/sysutils/brightness/Portfile (116665 => 116666)


--- trunk/dports/sysutils/brightness/Portfile	2014-02-02 01:00:45 UTC (rev 116665)
+++ trunk/dports/sysutils/brightness/Portfile	2014-02-02 01:21:39 UTC (rev 116666)
@@ -29,12 +29,13 @@
 
 use_configure no
 
+variant universal {}
+
 build {
-  system "cd ${worksrcpath} && ${configure.cc} -o brightness brightness.c -framework IOKit -framework ApplicationServices"
+    system -W ${worksrcpath} "${configure.cc} -o brightness brightness.c -framework IOKit -framework ApplicationServices [get_canonical_archflags cc]"
 }
 
 destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/bin
     xinstall -m 755 ${worksrcpath}/brightness ${destroot}${prefix}/bin/brightness
 }