[47900] trunk/dports/science/hdf5-18

mmoll at macports.org mmoll at macports.org
Mon Mar 9 13:23:39 PDT 2009


Revision: 47900
          http://trac.macports.org/changeset/47900
Author:   mmoll at macports.org
Date:     2009-03-09 13:23:38 -0700 (Mon, 09 Mar 2009)
Log Message:
-----------
port hdf5-18: both parallel support and Fortran support is broken on OS X. Disabled both. Added one-line patch to force building of shared libraries.

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

Added Paths:
-----------
    trunk/dports/science/hdf5-18/files/patch-configure.diff

Removed Paths:
-------------
    trunk/dports/science/hdf5-18/files/patch-config-apple.diff

Modified: trunk/dports/science/hdf5-18/Portfile
===================================================================
--- trunk/dports/science/hdf5-18/Portfile	2009-03-09 19:53:11 UTC (rev 47899)
+++ trunk/dports/science/hdf5-18/Portfile	2009-03-09 20:23:38 UTC (rev 47900)
@@ -6,7 +6,7 @@
 set realname        hdf5
 name                ${realname}-18
 version             1.8.2
-revision            1
+revision            2
 categories          science
 maintainers         mmoll openmaintainer
 
@@ -20,37 +20,10 @@
                     rmd160 809aa6860ef095e7d72bb79ddc4a857f8cc39424
 distname            ${realname}-${version}
 extract.suffix      .tar.gz
-depends_lib         port:zlib port:szip port:openmpi
-patchfiles          patch-config-apple.diff
-
+patchfiles          patch-configure.diff
+depends_lib         port:zlib port:szip
 use_parallel_build  yes
 
 configure.args      --with-zlib=yes --with-szlib=yes --enable-filters=all \
-                    --enable-production --enable-parallel --disable-fortran \
-                    --disable-cxx --enable-shared --disable-static
-configure.cc        ${prefix}/bin/openmpicc
-configure.cxx       ${prefix}/bin/openmpicxx
-configure.fc        ${prefix}/bin/openmpif77
-
-# variant descriptions
-
-variant fortran description {Include the Fortran interface} {
-    if { [variant_isset gcc43] || [variant_isset gcc42] || [variant_isset g95] } {
-        configure.args-delete   --disable-fortran
-        configure.args-append   --enable-fortran
-    } else {
-        error "You must specify a compiler variant in order to build the Fortran interface"
-    }
-}
-
-variant gcc42 requires fortran conflicts g95 gcc43 description {Compile using GCC 4.2} {
-    depends_lib-append          port:gcc42
-}
-
-variant gcc43 requires fortran conflicts g95 gcc42 description {Compile using GCC 4.3} {
-    depends_lib-append          port:gcc43
-}
-
-variant g95 requires fortran conflicts gcc42 gcc43 description {Use g95 Fortran compiler (unsupported)} {
-    depends_lib-append          port:g95
-}
+                    --enable-production --disable-fortran \
+                    --enable-cxx --enable-shared --disable-static

Deleted: trunk/dports/science/hdf5-18/files/patch-config-apple.diff
===================================================================
--- trunk/dports/science/hdf5-18/files/patch-config-apple.diff	2009-03-09 19:53:11 UTC (rev 47899)
+++ trunk/dports/science/hdf5-18/files/patch-config-apple.diff	2009-03-09 20:23:38 UTC (rev 47900)
@@ -1,17 +0,0 @@
---- config/apple.orig	2009-03-03 10:59:12.000000000 -0600
-+++ config/apple	2009-03-03 10:59:29.000000000 -0600
-@@ -64,9 +64,9 @@
- esac  
- # Fortran doesn't support shared libraries
- # Works with static executable only.
--if test "X-" != "X-$enable_fortran"; then
--        echo '    warning: shared libraries are not supported with Fortran'
--        echo '    disabling shared libraries'
--        enable_shared="no"
--fi
-+# if test "X-" != "X-$enable_fortran"; then
-+#         echo '    warning: shared libraries are not supported with Fortran'
-+#         echo '    disabling shared libraries'
-+#         enable_shared="no"
-+# fi
- 

Added: trunk/dports/science/hdf5-18/files/patch-configure.diff
===================================================================
--- trunk/dports/science/hdf5-18/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/science/hdf5-18/files/patch-configure.diff	2009-03-09 20:23:38 UTC (rev 47900)
@@ -0,0 +1,11 @@
+--- configure.orig	2009-03-09 13:15:44.000000000 -0500
++++ configure	2009-03-09 13:17:30.000000000 -0500
+@@ -15771,7 +15771,7 @@
+   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
+ echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
+   test "$can_build_shared" = "no" && enable_shared=no
+-
++  enable_shared=yes
+   # On AIX, shared libraries and static libraries use the same namespace, and
+   # are all built from PIC.
+   case $host_os in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090309/4b5fc9f5/attachment-0001.html>


More information about the macports-changes mailing list