source: trunk/dports/math/optpp/Portfile @ 23154

Last change on this file since 23154 was 23154, checked in by pipping@…, 13 years ago
  • replace hardcoded prefix with variable
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 800 bytes
Line 
1# $Id: Portfile 23154 2007-03-26 19:30:30Z pipping@macports.org $
2
3PortSystem 1.0
4
5name            optpp
6version         2.3
7categories      math
8maintainers     moll@isi.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 dd82937f2901bdcd972bfd5260849a36
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        build.env MPILIBS='-L${prefix}/lib'
31        depends_lib port:openmpi
32}
Note: See TracBrowser for help on using the repository browser.