Ticket #49720: Portfile-alps.diff
File Portfile-alps.diff, 2.1 KB (added by dstrubbe (David Strubbe), 9 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 PortGroup cmake 1.0 6 6 PortGroup conflicts_build 1.0 7 PortGroup mpi 1.0 7 8 8 9 name alps 9 10 version 2.1.1 … … 12 13 platforms darwin 13 14 license Restrictive 14 15 # http://alps.comp-phys.org/static/software/ALPS/LICENSE.txt/ 15 maintainers gmail.com:gamperl 16 maintainers gmail.com:gamperl openmaintainer 16 17 17 18 description Algorithms and Libraries for Physics Simulations 18 19 … … 31 32 32 33 depends_lib port:hdf5 33 34 35 mpi.enforce_variant hdf5 36 34 37 # alps has its own internal boost it wants to use, and fails if MacPorts' newer boost is active. 35 38 conflicts_build boost 36 39 40 compilers.choose cc cxx 41 # clang doesn't work for +applications or with MPI 42 mpi.setup -clang 43 # replace ancient llvm we would otherwise be using by default 44 if {![c_variant_isset]} { 45 default_variants-append +${compilers.gcc_default} 46 } 47 37 48 patchfiles patch-CMakeLists.txt.diff \ 38 49 patch-config-FindLapack.cmake.diff 39 50 … … 61 72 # alps/applications/dmrg/dmrg/dmrg.h:610:49: error: expected expression 62 73 # std::string name = simplify_name(it->get<1>()); 63 74 # ^ 64 compiler.blacklist *clang*65 66 75 configure.args-delete -DALPS_BUILD_APPLICATIONS=OFF 67 76 } 68 77 69 # why not mpich also as a variant? 70 variant openmpi description {Build with MPI support} { 71 depends_lib-append port:openmpi 72 73 configure.args-delete -DALPS_ENABLE_MPI=OFF 74 #-- Could NOT find MPI_C (missing: MPI_C_LIBRARIES MPI_C_INCLUDE_PATH) 75 #-- Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES MPI_CXX_INCLUDE_PATH) 78 pre-configure { 79 if {[mpi_variant_isset]} { 80 configure.args-delete -DALPS_ENABLE_MPI=OFF 81 configure.args-append -DMPI_C=${mpi.cc} -DMPI_CXX=${mpi.cxx} 82 } 76 83 } 77 84 78 85 set pythons_suffixes {26 27}