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

name                fxt
version             2023.12.18
categories          math science
license             GPL-3+
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Library of low-level algorithms
long_description    {*}${description}
homepage            https://www.jjj.de/fxt/
master_sites        ${homepage}
checksums           rmd160  7a55b7deac0632667ccff3209e37dd2a8cea82eb \
                    sha256  7f145aad938b3d727aca296b0eacaef5a5cc32e8331fd79be83fc2d88c873093 \
                    size    1859772
extract.rename      yes

patchfiles          patch-makefile.diff

post-patch {
    reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/makefile
}

use_configure       no

compiler.cxx_standard 2017

build.args-append   CC="${configure.cc} [get_canonical_archflags cc]" \
                    CXX="${configure.cxx} [get_canonical_archflags cxx]"

destroot.env-append PREFIX=${prefix}
