# -*- 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

# OpenBSD ports use commit-based version, follow them.
# https://github.com/openbsd/ports/commit/8e3975c5bbdf219d3e902db754549f0e9c98c32f
github.setup        y-256 libdivsufsort 522cac82e5f4980fb7dc4f9f982aa63069b2d4ad
version             2.0.2.1
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  9cc954e78a6cf494c96c4e02cd63876d8bcad57f \
                    sha256  39456c1f7910e06b61f62410d3c8c20ac8f1f9c5395b73d3f77841b99e52d6d8 \
                    size    25897
github.tarball_from archive

compiler.cxx_standard 2011
#compiler.openmp_version 2.5

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