Ticket #11889: Portfile

File Portfile, 827 bytes (added by mmoll@…, 17 years ago)
Line 
1# $Id: Portfile 23224 2007-03-27 17:27:07Z pipping@macports.org $
2
3PortSystem 1.0
4
5name            optpp
6version         2.4
7categories      math
8maintainers     mmoll@cs.rice.edu
9
10description     C++ library for non-linear optimization
11long_description        \
12        OPT++ is a C++ library for non-linear optimization.
13
14homepage        http://csmr.ca.sandia.gov/projects/opt++/
15distname        optpp-${version}
16master_sites    ${homepage}
17extract.suffix .tar.gz
18checksums       md5 7bd39f389c19ef16c3f62bc6ffa06234
19
20patchfiles patch-acx_blas.m4
21use_autoconf yes
22configure.env LDFLAGS="-framework vecLib"
23configure.args --includedir=${prefix}/include/OPT++ --with-blas
24
25variant 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}