[149038] trunk/dports/science/paraview/Portfile

dstrubbe at macports.org dstrubbe at macports.org
Wed May 25 16:12:49 PDT 2016


Revision: 149038
          https://trac.macports.org/changeset/149038
Author:   dstrubbe at macports.org
Date:     2016-05-25 16:12:49 -0700 (Wed, 25 May 2016)
Log Message:
-----------
paraview: Add MPI support. Build shared libraries. Add myself as co-maintainer.

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

Modified: trunk/dports/science/paraview/Portfile
===================================================================
--- trunk/dports/science/paraview/Portfile	2016-05-25 21:39:04 UTC (rev 149037)
+++ trunk/dports/science/paraview/Portfile	2016-05-25 23:12:49 UTC (rev 149038)
@@ -5,6 +5,7 @@
 
 PortGroup           cmake 1.0
 PortGroup           qt4 1.0
+PortGroup           mpi 1.0
 
 name                paraview
 version             4.2.0
@@ -18,7 +19,7 @@
 
 set branch          [join [lrange [split ${version} .] 0 1] .]
 
-maintainers         gmail.com:jjstickel openmaintainer
+maintainers         gmail.com:jjstickel dstrubbe openmaintainer
 
 description         3D data analysis and visualization application
 
@@ -57,8 +58,29 @@
 configure.args-append \
     -DBUILD_TESTING:BOOL=OFF \
     -DMACOSX_APP_INSTALL_PREFIX=${destroot}${applications_dir} \
-    -DZLIB_LIBRARY_RELEASE=${prefix}/lib/libz.dylib
+    -DZLIB_LIBRARY_RELEASE=${prefix}/lib/libz.dylib \
+    -DBUILD_SHARED_LIBS:BOOL=ON
 
+pre-configure {
+    configure.args-append -DCMAKE_CXX_COMPILER=${configure.cxx} \
+        -DCMAKE_C_COMPILER=${configure.cc}
+
+       if {[mpi_variant_isset]} {
+           configure.args-append  \
+               -DPARAVIEW_USE_MPI:BOOL=ON \
+               -DMPI_C_COMPILER=${mpi.cc} \
+               -DMPI_CXX_COMPILER=${mpi.cxx} \
+               -DMPIEXEC=${mpi.exec} \
+               -DMPI_Fortran_COMPILER=${mpi.fc}
+       }
+}
+
+#    DPARAVIEW_DO_UNIX_STYLE_INSTALLS:BOOL=ON
+#configure.cxxflags-append 	        -DUSE_INTERP_ERRORLINE
+
+compilers.choose    cxx cc fc
+mpi.setup           default
+
 # I do not understand why, but the default "destroot" makes a mess of things;
 # even setting full path of MACOSX_APP_INSTALL_PREFIX above and an empty
 # DESTDIR does not work; JJS 12/21/15
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160525/315a7a5e/attachment.html>


More information about the macports-changes mailing list