[68277] trunk/dports/science/hdf5-18/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun May 30 15:33:47 PDT 2010


Revision: 68277
          http://trac.macports.org/changeset/68277
Author:   ryandesign at macports.org
Date:     2010-05-30 15:33:42 -0700 (Sun, 30 May 2010)
Log Message:
-----------
hdf5-18: remove -arch flags from h5cc, h5c++ and libhdf5.settings to prevent muniversal from introducing inappropriate C preprocessor directives into them; see #25057

Modified Paths:
--------------
    trunk/dports/science/hdf5-18/Portfile

Modified: trunk/dports/science/hdf5-18/Portfile
===================================================================
--- trunk/dports/science/hdf5-18/Portfile	2010-05-30 22:05:09 UTC (rev 68276)
+++ trunk/dports/science/hdf5-18/Portfile	2010-05-30 22:33:42 UTC (rev 68277)
@@ -7,6 +7,7 @@
 set realname        hdf5
 name                ${realname}-18
 version             1.8.4-patch1
+revision            1
 categories          science
 maintainers         mmoll openmaintainer
 
@@ -30,6 +31,23 @@
                     --enable-production --disable-fortran \
                     --enable-cxx --enable-shared --enable-static
 
+post-configure {
+    if {[variant_isset universal]} {
+        set dirs {}
+        foreach arch ${universal_archs_to_use} {
+            lappend dirs ${worksrcpath}-${arch}
+        }
+    } else {
+        set dirs ${worksrcpath}
+    }
+    foreach dir ${dirs} {
+        reinplace -E {s|-arch [a-z0-9_]+||g} \
+            ${dir}/tools/misc/h5cc \
+            ${dir}/c++/src/h5c++ \
+            ${dir}/src/libhdf5.settings
+    }
+}
+
 test.run            yes
 test.target         check
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100530/be0a7d7c/attachment.html>


More information about the macports-changes mailing list