# -*- 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 b8452a5d945c3e6aed0447e22bc6392cd7d5adad
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             2021.03.16
categories          math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             AGPL-3
description         SISL is a comprehensive NURBS library for the modeling and interrogation of curves and surfaces.
long_description    {*}${description} It is implemented in C.
checksums           rmd160  9e47f29dd1e340486eabe59a5f5e37704d4f655e \
                    sha256  45326a7294621fd67878cb593773be9be002ac7705f2dc936c37e9c75dac91c1 \
                    size    2788139

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
