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

github.setup            4ti2 4ti2 1_6_10 Release_
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from     tarball
version                 [string map {_ .} ${github.version}]

categories              math
license                 GPL-2

maintainers             nomaintainer

homepage                https://4ti2.github.io
description             A software package for algebraic, geometric and combinatorial problems on linear spaces.
long_description        {*}${description}

checksums               rmd160  bf210dd04bd5b372fd759b185cf307d8ae81b132 \
                        sha256  9dc8f5c404a49fd95908c5f3a25e6db06adb84dd46b642bf18d25798ca38ed08 \
                        size    5005130

use_autoreconf          yes
autoreconf.args         -fvi

compiler.cxx_standard   2011

# fatal error: 'cstdint' file not found
compiler.blacklist-append \
                        macports-clang-3.* {clang < 600} *gcc-3.* *gcc-4.*

depends_lib-append      port:glpk \
                        port:gmp

# invert default behaviour by enabling shared library and disable static ones
configure.args          --disable-static \
                        --enable-shared
