[121680] trunk/dports/science/netcdf/Portfile

takeshi at macports.org takeshi at macports.org
Thu Jul 3 21:48:01 PDT 2014


Revision: 121680
          https://trac.macports.org/changeset/121680
Author:   takeshi at macports.org
Date:     2014-07-03 21:48:00 -0700 (Thu, 03 Jul 2014)
Log Message:
-----------
netcdf: use mpicc when hdf5-18 is built with a mpi variant. add -ljpeg with hdf4 variant, closing #44075

Modified Paths:
--------------
    trunk/dports/science/netcdf/Portfile

Modified: trunk/dports/science/netcdf/Portfile
===================================================================
--- trunk/dports/science/netcdf/Portfile	2014-07-04 03:22:41 UTC (rev 121679)
+++ trunk/dports/science/netcdf/Portfile	2014-07-04 04:48:00 UTC (rev 121680)
@@ -14,6 +14,7 @@
 #mpi.enforce_variant         hdf5-18
 
 github.setup                Unidata netcdf-c 4.3.2 v
+epoch                       2
 name                        netcdf
 maintainers                 takeshi openmaintainer
 platforms                   darwin
@@ -52,6 +53,12 @@
     }
 }
 
+set v [mpi_active_variant_name bin:h5pcc:hdf5-18]
+if {${v} != ""} {
+    configure.cc    mpicc
+    default_variants    +${v}
+}
+
 post-destroot {
     file delete -force ${destroot}${prefix}/share/man/whatis.db
 }
@@ -66,6 +73,7 @@
 
 variant hdf4 description {enable support for hdf4} {
     depends_lib-append    port:hdf4
+    configure.env-append    LIBS=-ljpeg
     configure.args-append --enable-hdf4 \
                           --disable-hdf4-file-tests
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140703/d0206690/attachment.html>


More information about the macports-changes mailing list