# -*- 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
PortGroup                   cmake  1.1

github.setup                beltoforion muparser 2.3.4 v
revision                    0
categories                  math devel
maintainers                 {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license                     BSD
homepage                    https://beltoforion.de/en/muparser/

description                 extensible high performance math parser library in C++

long_description            muParser is an extensible high performance math parser \
                            library written in C++. It is based on transforming an \
                            expression into a bytecode and precalculating constant \
                            parts of it.

checksums                   rmd160  78d8a9b790f439eecdd09b0d4dbeeb49ecf676f5 \
                            sha256  0c3fa54a3ebf36dda0ed3e7cd5451c964afbb15102bdbcba08aafb359a290121 \
                            size    112693
github.tarball_from         archive

configure.args-append       -DENABLE_SAMPLES=OFF \
                            -DENABLE_OPENMP=OFF \
                            -DBUILD_SHARED_LIBS=ON \
                            -DBUILD_TESTING=ON

compiler.cxx_standard       2011

# Needed for running tests:
configure.pre_args-replace  -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                            -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

test.run                    yes
