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

name                libstdcxx_clang_fix
version             0.0.1
revision            2
categories          devel
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description         Install alternate math.h header file for use when using Clang and libstdc++.
long_description    {*}${description}

supported_archs     noarch

if {${os.major} < 11} {
    # Since we're installing something, disable README creation
    stub.readme     no

    post-destroot {
        set dir ${destroot}${prefix}/include/gcc/c++/backward
        xinstall -d -m 0755 ${dir}
        xinstall -m 0644 ${filespath}/math.h ${dir}
    }
}

livecheck.type      none