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

github.setup        SINTEF-Geometry SISL e854a48fc5a169d2562fa54237ecb3574c37bd6b
version             2025.11.25
revision            0
categories          math geometry
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             AGPL-3
description         SISL is a comprehensive NURBS library \
                    for the modelling and interrogation of curves and surfaces
long_description    {*}${description}. It is implemented in C.
checksums           rmd160  8b156479d37a006f5718fa482bcbbba04f970cdf \
                    sha256  e2b8725c55559895bc963f7410e330fb8f96d7853b5f7b306e534c11e74b1574 \
                    size    2817767
github.tarball_from archive

if {[string match *gcc-4* ${configure.compiler}]} {
    post-patch {
        reinplace "s,-Wno-unused-but-set-variable,,g" ${worksrcpath}/CMakeLists.txt
    }
}

configure.args-append \
                    -Dsisl_COMPILE_APPS=OFF \
                    -Dsisl_COMPILE_EXAMPLES=OFF

# s6testimpl.c:423: error: ‘for’ loop initial declaration used outside C99 mode
compiler.c_standard 1999
configure.cflags-append \
                    -std=c99
