# -*- 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        y-256 libdivsufsort 2.0.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          devel
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Lightweight suffix-sorting library
long_description    libdivsufsort is a software library that implements \
                    a lightweight suffix array construction algorithm.
checksums           rmd160  6cf2c80876cb4067bd12941603bd9c7f0146de28 \
                    sha256  ce0b399cd9eb5c8e7ef37566e126fd90430afd361e17e2ff3e09e177932a9473 \
                    size    31305

compiler.cxx_standard 2011

configure.args-append \
                    -DBUILD_DIVSUFSORT64=ON \
                    -DBUILD_EXAMPLES=OFF \
                    -DBUILD_SHARED_LIBS=ON \
                    -DUSE_OPENMP=ON \
                    -DWITH_LFS=ON
