# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           muniversal 1.0
PortGroup           boost 1.0

name                ADOL-C
version             2.7.2
revision            1
categories          math science
platforms           darwin
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license             {EPL-1 GPL-2}
homepage            https://projects.coin-or.org/ADOL-C/
master_sites        https://www.coin-or.org/download/source/ADOL-C/
extract.suffix      .tgz

description         Algorithmic Differentiation Library for C/C++

long_description    The package ADOL-C (Automatic Differentiation by OverLoading in C++) \
                    facilitates the evaluation of first and higher derivatives of vector functions \
                    that are defined by computer programs written in C or C++

checksums           rmd160  5234313bd4d28cea2c7b94bc6be0928217b43bd6 \
                    sha256  902b98e39fdc44b2eb3deaa2e5b7e5d998b7c189e074db88d068e690b65782c3 \
                    size    2477709

compiler.cxx_standard \
                    2011

patchfiles-append   patch-configure.diff \
                    patch-adolclib.pc.in.diff

# do not build python swig module
configure.args-append \
                    ac_cv_path_SWIG=no \
                    ac_cv_path_PYTHON=""

depends_lib-append  port:ColPack

configure.args-append \
                    --with-boost=[boost::install_area] \
                    --with-colpack=${prefix} \
                    --enable-sparse \
                    --enable-atrig-erf
