source: trunk/dports/math/optpp/Portfile

Last change on this file was 129985, checked in by sean@…, 3 years ago

mpi-1.0: remove mpi.choose

This variable never worked correctly and caused mpi ports to wrongly list
fortran variants when only a c/cxx compiler was needed. So, we use
compilers.choose now.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1# $Id: Portfile 129985 2014-12-24 00:42:39Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup  mpi 1.0
5
6name            optpp
7version         2.4
8categories      math
9platforms       darwin
10maintainers     nomaintainer
11license     LGPL
12description     C++ library for non-linear optimization
13long_description        \
14        OPT++ is a C++ library for non-linear optimization.
15
16homepage        https://software.sandia.gov/opt++/
17distname        optpp-${version}
18master_sites    ${homepage}/downloads/
19checksums   md5     7bd39f389c19ef16c3f62bc6ffa06234 \
20            sha1    089fb515f2f2e8632d603f2d1306d39aa355e9f0 \
21            rmd160  1f554c4702dedc24150f198e1a1df35ad1bf9a19
22
23compilers.choose cc cxx
24mpi.setup
25
26patchfiles patch-acx_blas.m4.diff
27use_autoconf yes
28configure.ldflags       "-framework vecLib"
29configure.args --includedir=${prefix}/include/OPT++ --with-blas
30
31pre-configure {
32    if {[mpi_variant_isset]} {
33        configure.args-append --enable-mpi
34        configure.env-append MPICC=${mpi.cc} \
35                             MPICXX=${prefix}/lib/openmpi/bin/mpic++
36    }
37}
38
39livecheck.type  regex
40livecheck.url   ${master_sites}
41livecheck.regex ${name}-(\[0-9.\]+)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.