# -*- 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                   github 1.0

name                        coinor-coinutils
version                     2.11.10
revision                    0
categories                  math

github.setup                coin-or coinutils ${version} releases/
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from         tarball

checksums                   rmd160  92d48d43f7be67b4ff8c95c89fc6111452e9832d \
                            sha256  fdf1a892e0ae6f4df00c6c10e8617ed7164347c8fce8ba9fd77fddd9bab8bca4 \
                            size    1239046

maintainers                 {@flyingsamson tuxcad.de:flyingsamson} openmaintainer
description                 Utilities, data structures, and linear algebra methods for COIN-OR projects
long_description            CoinUtils is an open-source collection of classes and helper functions \
                            that are generally useful to multiple COIN-OR projects.\
                            \nThese utilities include:\
                            \n * classes for storing and manipulating sparse matrices and vectors,\
                            \n * performing matrix factorization,\
                            \n * parsing input files in standard formats, e.g. MPS,\
                            \n * building representations of mathematical programs,\
                            \n * performing simple presolve operations,\
                            \n * warm starting algorithms for mathematical programs,\
                            \n * comparing floating point numbers with a tolerance\
                            \n * classes for storing and manipulating conflict graphs, and\
                            \n * classes for searching and storing cliques and odd cycles in conflict graphs, among others.
license                     EPL-2

homepage                    https://github.com/coin-or/CoinUtils

depends_build-append        port:pkgconfig
depends_lib                 port:glpk

patchfiles                  wimplicit-function-declaration.diff

variant openblas description {compile with OpenBLAS support} {
    depends_lib-append          path:lib/libopenblas.dylib:OpenBLAS
    pre-configure {
        configure.args-append   --with-blas-lib="-L${prefix}/lib -lopenblas -llapack"
    }
}
default_variants            +openblas
