# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           boost 1.0
PortGroup           cmake 1.1
PortGroup           github 1.0

github.setup        thliebig CSXCAD 0116fc1a5852ae4648f964b9886569bbb8f08b48
github.tarball_from archive
version             20251223-[string range ${github.version} 0 7]
checksums           rmd160  f140b274ac3f50b8d7b05ffc80fc1bef2cd12720 \
                    sha256  90db46964a29e374bf936f51b362d0f17e8299410c37e200f9e0bdc7a3081aa3 \
                    size    202025
revision            0

platforms           darwin macosx
categories          textproc
license             GPL-3
maintainers         {ra1nb0w @ra1nb0w} openmaintainer

description         ${name} is a C++ library to describe geometrical objects and their \
                    physical or non-physical properties
long_description    {*}${description}

compiler.cxx_standard   2011

# This port should either use mpi PG, or disable MPICH.
patchfiles-append \
    patch-no-mpich.diff

# remove when upstream
patchfiles-append \
    clocale_fix.patch

depends_build-append \
    path:bin/pkg-config:pkgconfig

depends_lib-append \
    port:cgal4 \
    port:fparser \
    port:hdf5 \
    port:tinyxml \
    port:vtk

configure.args-append \
    -DFPARSER_ROOT_DIR=${prefix}
