[84895] trunk/dports/devel/nu2/Portfile

and.damore at macports.org and.damore at macports.org
Tue Oct 4 00:34:14 PDT 2011


Revision: 84895
          http://trac.macports.org/changeset/84895
Author:   and.damore at macports.org
Date:     2011-10-04 00:34:13 -0700 (Tue, 04 Oct 2011)
Log Message:
-----------
port nu2: fixed arch choice

Modified Paths:
--------------
    trunk/dports/devel/nu2/Portfile

Modified: trunk/dports/devel/nu2/Portfile
===================================================================
--- trunk/dports/devel/nu2/Portfile	2011-10-04 07:33:17 UTC (rev 84894)
+++ trunk/dports/devel/nu2/Portfile	2011-10-04 07:34:13 UTC (rev 84895)
@@ -1,4 +1,4 @@
-# $Id$
+#0 $Id$
 
 PortSystem 1.0
 
@@ -31,12 +31,26 @@
      if {${os.major} < 11} then { error "Nu 2 requires Lion" }
 }
 
-patchfiles          patch-tools_nuke.diff
+patchfiles          patch-tools_nuke.diff \
+                    patch-Makefile.diff \
+                    patch-Nukefile.diff
+
 post-patch {
-    #reinplace {s|clang|llvm-gcc-4.2|} ${worksrcpath}/Makefile
     reinplace "s|\$(DEVROOT)/usr/bin/clang|${configure.cc}|"      ${worksrcpath}/Makefile
     reinplace "s|#{DEVROOT}/usr/bin/clang|${configure.cc}|"       ${worksrcpath}/Nukefile
     reinplace "s|{@destdir}/Library|{@destdir}${prefix}/Library|" ${worksrcpath}/Nukefile
+  
+    #target arch selection
+    if {[variant_isset universal]} {
+        set archs ${configure.universal_archs}
+    } else {
+        set archs ${configure.build_arch}
+    }
+    reinplace "s|@ARCHS@|[join ${archs} {" "}]|g" ${worksrcpath}/Nukefile
+    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Nukefile
+    reinplace "s|@SDKROOT@|${configure.sdkroot}|g" ${worksrcpath}/Nukefile
+    reinplace "s|@SDKFLAGS@|-isysroot ${developer_dir}/SDKs/MacOSX${macosx_deployment_target}.sdk|g" ${worksrcpath}/Nukefile
+
     reinplace "s|/Library/Frameworks|${frameworks_dir}|"          ${worksrcpath}/tools/nuke
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111004/6b8e8d05/attachment.html>


More information about the macports-changes mailing list