# $Id: Portfile 88422 2012-01-02 01:18:04Z ryandesign@macports.org $

PortSystem                1.0
PortGroup                 cmake 1.0

name                      alps
version                   2.0.1
categories                science
maintainers               gmail.com:gamperl
description               Parallel Algorithms for Lattice Models
long_description          Libraries for generic parallel algorithms for classical and quantum lattice models
homepage                  http://alps.comp-phys.org
platforms                 darwin
master_sites              ${homepage}/static/software/releases
distname                  ${name}-${version}-r5565-src-with-boost

checksums                 md5 b1e70b00310643fe1b60531160543bd4                      \
                          sha1 34680ea84b7dd2670740afbc6254c88983150c5c             \
                          rmd160 6607d16d4a275d016c8f2ba330238b4676f3fe8a

depends_lib               port:hdf5-18                                              \
                          port:py26-numpy                                           \
                          port:py26-matplotlib                                      \
                          port:py26-scipy

use_parallel_build        yes
configure.args-delete     -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\"
configure.args-append     -DCMAKE_SYSTEM_PREFIX_PATH=\"/usr\;${prefix}\"            \
                          -DBoost_ROOT_DIR:PATH=${workpath}/${distname}/boost       \
                          -DALPS_BUILD_TESTS=OFF                                    \
                          -DALPS_INCLUDE_TUTORIALS=OFF                              \
                          -DALPS_BOOST_LIBRARY_NAME=alps-boost                      \
                          ./alps
