[82190] trunk/dports/graphics/field3d/Portfile

blair at macports.org blair at macports.org
Tue Aug 9 18:53:39 PDT 2011


Revision: 82190
          http://trac.macports.org/changeset/82190
Author:   blair at macports.org
Date:     2011-08-09 18:53:38 -0700 (Tue, 09 Aug 2011)
Log Message:
-----------
field3d: enable a universal port; suggested by ryandesign.

Modified Paths:
--------------
    trunk/dports/graphics/field3d/Portfile

Modified: trunk/dports/graphics/field3d/Portfile
===================================================================
--- trunk/dports/graphics/field3d/Portfile	2011-08-10 01:48:03 UTC (rev 82189)
+++ trunk/dports/graphics/field3d/Portfile	2011-08-10 01:53:38 UTC (rev 82190)
@@ -4,6 +4,7 @@
 
 name                    field3d
 version                 1.2.0
+revision                1
 categories              graphics
 maintainers             blair
 description             Library for storing voxel data.
@@ -29,6 +30,8 @@
                         port:ilmbase \
                         port:hdf5-18
 
+variant universal {}
+
 checksums               md5 e77d4f6e455860291f8e0e0ce547aa50 \
                         sha1 1bbd1c7cadca96d5f0d58f3f2a27241d481e205f \
                         rmd160 89279bbc9906ed7df6052169fb9239f87a2b8cd9
@@ -41,9 +44,11 @@
                         patch-SConstruct
 
 post-patch {
-    reinplace "s#@PREFIX@#$prefix#g" ${worksrcpath}/BuildSupport.py
-    reinplace "s#@CC@#${configure.cc}#" ${worksrcpath}/SConstruct
-    reinplace "s#@CXX@#${configure.cxx}#" ${worksrcpath}/SConstruct
+    reinplace "s#@PREFIX@#${prefix}#g" ${worksrcpath}/BuildSupport.py
+    reinplace "s#@CC@#${configure.cc} [get_canonical_archflags]#" \
+        ${worksrcpath}/SConstruct
+    reinplace "s#@CXX@#${configure.cxx} [get_canonical_archflags]#" \
+        ${worksrcpath}/SConstruct
 }
 
 use_configure           no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110809/ea78c3a9/attachment.html>


More information about the macports-changes mailing list