# -*- 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        KarypisLab GKlib 8bd6bad750b2b0d90800c632cf18e8ee93ad72d7
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                gklib
version             20230327
categories          math
maintainers         nomaintainer
license             Apache-2

description         KarypisLab library of various helper routines and frameworks used by the lab's software
long_description    {*}${description}

checksums           rmd160  39a59731517446b364dc29100914a3ebe50a40ea \
                    sha256  d6d8e0916450c949f373bd8b4bd20d327f810322e22eeb2dc19d81165c18442b \
                    size    186196

compiler.thread_local_storage   yes

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON

if {${configure.build_arch} ni [list i386 x86_64]} {
    configure.args-append \
                    -DNO_X86=ON
}

variant openmp description {Enable openmp support} {
    compiler.openmp_version 4.0
    configure.args-append \
                    -DOPENMP=ON
}
