[141519] trunk/dports/science/alps
dstrubbe at macports.org
dstrubbe at macports.org
Sat Dec 12 01:52:30 PST 2015
Revision: 141519
https://trac.macports.org/changeset/141519
Author: dstrubbe at macports.org
Date: 2015-10-19 18:55:31 -0700 (Mon, 19 Oct 2015)
Log Message:
-----------
alps: Fix the build (due to changes in CMake or its portgroup, and with the vecLib framework). Add license. Update descriptions (which were maybe from an older ancestor of the code?). Typo. Suggestion to add MPICH support too (although in fact the openmpi variant seems to do nothing currently!). Maintainer timeout, ticket #49066.
Modified Paths:
--------------
trunk/dports/science/alps/Portfile
trunk/dports/science/alps/files/patch-CMakeLists.txt.diff
Added Paths:
-----------
trunk/dports/science/alps/files/patch-config-FindLapack.cmake.diff
Modified: trunk/dports/science/alps/Portfile
===================================================================
--- trunk/dports/science/alps/Portfile 2015-10-20 01:40:39 UTC (rev 141518)
+++ trunk/dports/science/alps/Portfile 2015-10-20 01:55:31 UTC (rev 141519)
@@ -10,12 +10,17 @@
revision 8
categories science
platforms darwin
+license Restrictive
+# http://alps.comp-phys.org/static/software/ALPS/LICENSE.txt/
maintainers gmail.com:gamperl
-description Parallel Algorithms for Lattice Models
+description Algorithms and Libraries for Physics Simulations
-long_description Libraries for generic parallel algorithms for \
- classical and quantum lattice models
+long_description The ALPS project (Algorithms and Libraries for Physics Simulations) is an \
+ open-source effort aiming at providing high-end simulation codes for strongly \
+ correlated quantum mechanical systems as well as C++ libraries for simplifying \
+ the development of such code. ALPS strives to increase software reuse in the \
+ physics community.
homepage http://alps.comp-phys.org/
master_sites ${homepage}static/software/releases
@@ -29,7 +34,8 @@
# alps has its own internal boost it wants to use, and fails if MacPorts' newer boost is active.
conflicts_build boost
-patchfiles patch-CMakeLists.txt.diff
+patchfiles patch-CMakeLists.txt.diff \
+ patch-config-FindLapack.cmake.diff
configure.args-delete -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\"
configure.args-append -DCMAKE_SYSTEM_PREFIX_PATH=\"/usr\;${prefix}\" \
@@ -39,11 +45,19 @@
-DALPS_BOOST_LIBRARY_NAME=alps-boost \
-DALPS_BUILD_APPLICATIONS=OFF \
-DALPS_ENABLE_MPI=OFF \
- ./alps
+ -DHDF5_dl_LIBRARY_DEBUG=NO \
+ -DHDF5_hdf5_LIBRARY_DEBUG=NO \
+ -DHDF5_hdf5_hl_LIBRARY_DEBUG=NO \
+ -DHDF5_m_LIBRARY_DEBUG=NO \
+ -DHDF5_z_LIBRARY_DEBUG=NO
+# make sure this comes after further options that the cmake portgroup adds, to specify directory correctly,
+# overwrite the default setting to worksrcpath.
+configure.post_args ./alps
+
use_parallel_build yes
-variant applications description {compile ALPS with appliations} {
+variant applications description {compile ALPS with applications} {
# alps/applications/dmrg/dmrg/dmrg.h:610:49: error: expected expression
# std::string name = simplify_name(it->get<1>());
# ^
@@ -52,10 +66,13 @@
configure.args-delete -DALPS_BUILD_APPLICATIONS=OFF
}
+# why not mpich also as a variant?
variant openmpi description {Build with MPI support} {
depends_lib-append port:openmpi
- configure.args-delete -DALPS_ENABLE_MPI=OFF
+ configure.args-delete -DALPS_ENABLE_MPI=OFF
+#-- Could NOT find MPI_C (missing: MPI_C_LIBRARIES MPI_C_INCLUDE_PATH)
+#-- Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES MPI_CXX_INCLUDE_PATH)
}
set pythons_suffixes {26 27}
Modified: trunk/dports/science/alps/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/science/alps/files/patch-CMakeLists.txt.diff 2015-10-20 01:40:39 UTC (rev 141518)
+++ trunk/dports/science/alps/files/patch-CMakeLists.txt.diff 2015-10-20 01:55:31 UTC (rev 141519)
@@ -1,5 +1,5 @@
---- alps/CMakeLists.txt.orig 2012-05-30 23:49:50.000000000 +0200
-+++ alps/CMakeLists.txt 2013-07-22 11:07:16.000000000 +0200
+--- alps/CMakeLists.txt.orig 2015-10-13 12:32:28.000000000 -0400
++++ alps/CMakeLists.txt 2015-10-13 12:32:46.000000000 -0400
@@ -107,7 +107,7 @@
#maintenance building options
@@ -9,3 +9,12 @@
#include (CMakeDetermineFortranCompiler)
#message (STATUS "Fortran compiler: ${CMAKE_Fortran_COMPILER}")
#include (CMakeTestFortranCompiler)
+@@ -318,7 +318,7 @@
+ ENDIF(NOT WIN32)
+ endif (NOT ALPS_FOR_VISTRAILS)
+ if(MAC_VECLIB)
+- set(LAPACK_LDFLAGS "-framework vecLib")
++ set(LAPACK_LDFLAGS "-framework Accelerate")
+ endif(MAC_VECLIB)
+ set(LAPACK_LINKER_FLAGS ${LAPACK_LDFLAGS})
+
Added: trunk/dports/science/alps/files/patch-config-FindLapack.cmake.diff
===================================================================
--- trunk/dports/science/alps/files/patch-config-FindLapack.cmake.diff (rev 0)
+++ trunk/dports/science/alps/files/patch-config-FindLapack.cmake.diff 2015-10-20 01:55:31 UTC (rev 141519)
@@ -0,0 +1,11 @@
+--- alps/config/FindLapack.cmake.orig 2015-10-13 12:54:11.000000000 -0400
++++ alps/config/FindLapack.cmake 2015-10-13 12:54:42.000000000 -0400
+@@ -108,7 +108,7 @@
+
+ IF(NOT HAVE_MKL)
+ IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+- SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -framework vecLib")
++ SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -framework Accelerate")
+ SET(LAPACK_LIBRARY_INIT 1)
+ SET(MAC_VECLIB 1 CACHE BOOL "use Mac Framework")
+ SET(LAPACK_LIBRARY "")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/d8300f8b/attachment-0001.html>
More information about the macports-changes
mailing list