Skip to content
Permalink
Browse files

paraview: use cmake PortGroup version 1.1

  • Loading branch information
MarcusCalhoun-Lopez committed Jul 24, 2019
1 parent c22a039 commit 5b41d3ec53857f0a4f56af39aa4fbf9036ec6c00
Showing with 20 additions and 9 deletions.
  1. +20 −9 science/paraview/Portfile
@@ -2,14 +2,14 @@

PortSystem 1.0

PortGroup cmake 1.0
PortGroup cmake 1.1
PortGroup cxx11 1.1
PortGroup qt5 1.0
PortGroup mpi 1.0

name paraview
version 5.5.2
revision 3
revision 4

categories science graphics
platforms darwin
@@ -45,15 +45,26 @@ qt5.min_version 5.6

patchfiles patch-incomplete-types.patch

cmake.out_of_source yes
cmake.install_rpath

configure.pre_args-delete\
-DCMAKE_INSTALL_PREFIX=${prefix}
# paraview sets its own optimization flags
configure.optflags

configure.args-delete \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
-DCMAKE_INSTALL_RPATH=${prefix}/lib \
-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
# avoid `Unknown build type "MacPorts". Allowed values are Debug, Release,`
if {[variant_isset debug]} {
cmake.build_type Debug
} else {
cmake.build_type Release
}

configure.pre_args-delete \
-DCMAKE_INSTALL_PREFIX="${cmake.install_prefix}"

configure.post_args-append \
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

# avoid `Exit code: 2`
use_parallel_build no

# ${destroot} needs to be part of MACOSX_APP_INSTALL_PREFIX; see further
# comments below, JJS 12/21/15

0 comments on commit 5b41d3e

Please sign in to comment.
You can’t perform that action at this time.