# -*- 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 3b7d61b9f885063c89901f3901fb4426f9cfb58f
name                gklib
version             20260607
revision            0
categories          math
maintainers         nomaintainer
license             Apache-2

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

checksums           rmd160  ec575d2237d447ed8bbec22028c1476cdbb84501 \
                    sha256  ce44d6d64a786df09dc979b0b18f095b0fd95d03682bdaac5276e4d234b41b56 \
                    size    201448
github.tarball_from archive

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
}
