1 | # $Id: Portfile 23224 2007-03-27 17:27:07Z pipping@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name optpp |
---|
6 | version 2.4 |
---|
7 | categories math |
---|
8 | maintainers mmoll@cs.rice.edu |
---|
9 | |
---|
10 | description C++ library for non-linear optimization |
---|
11 | long_description \ |
---|
12 | OPT++ is a C++ library for non-linear optimization. |
---|
13 | |
---|
14 | homepage http://csmr.ca.sandia.gov/projects/opt++/ |
---|
15 | distname optpp-${version} |
---|
16 | master_sites ${homepage} |
---|
17 | extract.suffix .tar.gz |
---|
18 | checksums md5 7bd39f389c19ef16c3f62bc6ffa06234 |
---|
19 | |
---|
20 | patchfiles patch-acx_blas.m4 |
---|
21 | use_autoconf yes |
---|
22 | configure.env LDFLAGS="-framework vecLib" |
---|
23 | configure.args --includedir=${prefix}/include/OPT++ --with-blas |
---|
24 | |
---|
25 | variant mpi { |
---|
26 | configure.args-append --enable-mpi |
---|
27 | configure.env-append MPICC=${prefix}/lib/openmpi/bin/mpicc \ |
---|
28 | MPICXX=${prefix}/lib/openmpi/bin/mpic++ \ |
---|
29 | MPILIBS='-L${prefix}/lib' |
---|
30 | depends_lib port:openmpi |
---|
31 | } |
---|