Ticket #49066: Portfile-alps.diff
File Portfile-alps.diff, 5.2 KB (added by dstrubbe (David Strubbe), 9 years ago) |
---|
-
Portfile
10 10 revision 8 11 11 categories science 12 12 platforms darwin 13 license Restrictive 14 # http://alps.comp-phys.org/static/software/ALPS/LICENSE.txt/ 13 15 maintainers gmail.com:gamperl 14 16 15 description Parallel Algorithms for Lattice Models17 description Algorithms and Libraries for Physics Simulations 16 18 17 long_description Libraries for generic parallel algorithms for \ 18 classical and quantum lattice models 19 long_description The ALPS project (Algorithms and Libraries for Physics Simulations) is an \ 20 open-source effort aiming at providing high-end simulation codes for strongly \ 21 correlated quantum mechanical systems as well as C++ libraries for simplifying \ 22 the development of such code. ALPS strives to increase software reuse in the \ 23 physics community. 19 24 20 25 homepage http://alps.comp-phys.org/ 21 26 master_sites ${homepage}static/software/releases 22 27 distname ${name}-${version}-r6176-src-with-boost 28 #worksrcdir ${distname}/alps 23 29 24 30 checksums rmd160 f2ab3938a364a026be8557406427521901091a51 \ 25 31 sha256 554841986ad5a9d5d5a89941e5665c249fe1b8eba537078001bb6c5c21a1f335 … … 29 35 # alps has its own internal boost it wants to use, and fails if MacPorts' newer boost is active. 30 36 conflicts_build boost 31 37 32 patchfiles patch-CMakeLists.txt.diff 38 patchfiles patch-CMakeLists.txt.diff \ 39 patch-config-FindLapack.cmake.diff 33 40 34 41 configure.args-delete -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" 35 42 configure.args-append -DCMAKE_SYSTEM_PREFIX_PATH=\"/usr\;${prefix}\" \ … … 39 46 -DALPS_BOOST_LIBRARY_NAME=alps-boost \ 40 47 -DALPS_BUILD_APPLICATIONS=OFF \ 41 48 -DALPS_ENABLE_MPI=OFF \ 42 ./alps 49 -DHDF5_dl_LIBRARY_DEBUG=NO \ 50 -DHDF5_hdf5_LIBRARY_DEBUG=NO \ 51 -DHDF5_hdf5_hl_LIBRARY_DEBUG=NO \ 52 -DHDF5_m_LIBRARY_DEBUG=NO \ 53 -DHDF5_z_LIBRARY_DEBUG=NO 43 54 55 # make sure this comes after further options that the cmake portgroup adds, to specify directory correctly, 56 # overwrite the default setting to worksrcpath. 57 configure.post_args ./alps 58 44 59 use_parallel_build yes 45 60 46 variant applications description {compile ALPS with appli ations} {61 variant applications description {compile ALPS with applications} { 47 62 # alps/applications/dmrg/dmrg/dmrg.h:610:49: error: expected expression 48 63 # std::string name = simplify_name(it->get<1>()); 49 64 # ^ … … 52 67 configure.args-delete -DALPS_BUILD_APPLICATIONS=OFF 53 68 } 54 69 70 # why not mpich also as a variant? 55 71 variant openmpi description {Build with MPI support} { 56 72 depends_lib-append port:openmpi 57 73 -
files/patch-CMakeLists.txt.diff
1 --- alps/CMakeLists.txt.orig 201 2-05-30 23:49:50.000000000 +02002 +++ alps/CMakeLists.txt 201 3-07-22 11:07:16.000000000 +02001 --- alps/CMakeLists.txt.orig 2015-10-13 12:32:28.000000000 -0400 2 +++ alps/CMakeLists.txt 2015-10-13 12:32:46.000000000 -0400 3 3 @@ -107,7 +107,7 @@ 4 4 5 5 #maintenance building options … … 9 9 #include (CMakeDetermineFortranCompiler) 10 10 #message (STATUS "Fortran compiler: ${CMAKE_Fortran_COMPILER}") 11 11 #include (CMakeTestFortranCompiler) 12 @@ -318,7 +318,7 @@ 13 ENDIF(NOT WIN32) 14 endif (NOT ALPS_FOR_VISTRAILS) 15 if(MAC_VECLIB) 16 - set(LAPACK_LDFLAGS "-framework vecLib") 17 + set(LAPACK_LDFLAGS "-framework Accelerate") 18 endif(MAC_VECLIB) 19 set(LAPACK_LINKER_FLAGS ${LAPACK_LDFLAGS}) 20 -
files/patch-config-FindLapack.cmake.diff
1 --- alps/config/FindLapack.cmake.orig 2015-10-13 12:54:11.000000000 -0400 2 +++ alps/config/FindLapack.cmake 2015-10-13 12:54:42.000000000 -0400 3 @@ -108,7 +108,7 @@ 4 5 IF(NOT HAVE_MKL) 6 IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 7 - SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -framework vecLib") 8 + SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -framework Accelerate") 9 SET(LAPACK_LIBRARY_INIT 1) 10 SET(MAC_VECLIB 1 CACHE BOOL "use Mac Framework") 11 SET(LAPACK_LIBRARY "")