Ticket #49066: Portfile-alps.diff

File Portfile-alps.diff, 5.2 KB (added by dstrubbe (David Strubbe), 9 years ago)
  • Portfile

     
    1010revision                8
    1111categories              science
    1212platforms               darwin
     13license                 Restrictive
     14# http://alps.comp-phys.org/static/software/ALPS/LICENSE.txt/
    1315maintainers             gmail.com:gamperl
    1416
    15 description             Parallel Algorithms for Lattice Models
     17description             Algorithms and Libraries for Physics Simulations
    1618
    17 long_description        Libraries for generic parallel algorithms for \
    18                         classical and quantum lattice models
     19long_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.
    1924
    2025homepage                http://alps.comp-phys.org/
    2126master_sites            ${homepage}static/software/releases
    2227distname                ${name}-${version}-r6176-src-with-boost
     28#worksrcdir              ${distname}/alps
    2329
    2430checksums               rmd160 f2ab3938a364a026be8557406427521901091a51                             \
    2531                        sha256 554841986ad5a9d5d5a89941e5665c249fe1b8eba537078001bb6c5c21a1f335
     
    2935# alps has its own internal boost it wants to use, and fails if MacPorts' newer boost is active.
    3036conflicts_build         boost
    3137
    32 patchfiles              patch-CMakeLists.txt.diff
     38patchfiles              patch-CMakeLists.txt.diff \
     39                        patch-config-FindLapack.cmake.diff
    3340
    3441configure.args-delete   -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\"
    3542configure.args-append   -DCMAKE_SYSTEM_PREFIX_PATH=\"/usr\;${prefix}\"                              \
     
    3946                        -DALPS_BOOST_LIBRARY_NAME=alps-boost                                        \
    4047                        -DALPS_BUILD_APPLICATIONS=OFF                                               \
    4148                        -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
    4354
     55# make sure this comes after further options that the cmake portgroup adds, to specify directory correctly,
     56# overwrite the default setting to worksrcpath.
     57configure.post_args    ./alps
     58
    4459use_parallel_build      yes
    4560
    46 variant applications    description {compile ALPS with appliations} {
     61variant applications    description {compile ALPS with applications} {
    4762    # alps/applications/dmrg/dmrg/dmrg.h:610:49: error: expected expression
    4863    #     std::string name = simplify_name(it->get<1>());
    4964    #                                                 ^
     
    5267    configure.args-delete -DALPS_BUILD_APPLICATIONS=OFF
    5368}
    5469
     70# why not mpich also as a variant?
    5571variant openmpi         description {Build with MPI support} {
    5672    depends_lib-append  port:openmpi
    5773   
  • files/patch-CMakeLists.txt.diff

     
    1 --- alps/CMakeLists.txt.orig    2012-05-30 23:49:50.000000000 +0200
    2 +++ alps/CMakeLists.txt 2013-07-22 11:07:16.000000000 +0200
     1--- alps/CMakeLists.txt.orig    2015-10-13 12:32:28.000000000 -0400
     2+++ alps/CMakeLists.txt 2015-10-13 12:32:46.000000000 -0400
    33@@ -107,7 +107,7 @@
    44 
    55 #maintenance building options
     
    99 #include (CMakeDetermineFortranCompiler)
    1010 #message (STATUS "Fortran compiler: ${CMAKE_Fortran_COMPILER}")
    1111 #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 "")