# -*- 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.1

name                mpdecimal
version             4.0.0
revision            3
categories          math
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         mpdecimal is a package for correctly-rounded arbitrary precision \
                    decimal floating point arithmetic.
long_description    {*}${description}

homepage            https://www.bytereef.org/mpdecimal/
master_sites        https://www.bytereef.org/software/mpdecimal/releases/

checksums           rmd160  e0d465bb433d4f53db9192175fdedb9388e7aed1 \
                    sha256  942445c3245b22730fd41a67a7c5c231d11cb1b9936b9c0f76334fb7d0b4468c \
                    size    315325

patchfiles          no-rpath.patch

build.target        default

compiler.cxx_standard   2011
compiler.thread_local_storage yes

muniversal.arch_flag        no
muniversal.arch_compiler    yes

# https://trac.macports.org/ticket/71164
configure.env-append \
                    "LDXXFLAGS=${configure.cxxflags} ${configure.ldflags}"

livecheck.type      regex
livecheck.url       ${homepage}/download.html
livecheck.regex     ${name}-(\[0-9.\]+)[quotemeta ${extract.suffix}]
