[116666] trunk/dports/sysutils/brightness/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Feb 1 17:21:40 PST 2014


Revision: 116666
          https://trac.macports.org/changeset/116666
Author:   ryandesign at 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:
--------------
    trunk/dports/sysutils/brightness/Portfile

Modified: trunk/dports/sysutils/brightness/Portfile
===================================================================
--- 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
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140201/48ff811e/attachment.html>


More information about the macports-changes mailing list