# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           cmake 1.1

name                di
version             6.2.2.2
revision            0

categories          sysutils
maintainers         {mps @Schamschula} openmaintainer
license             zlib
description         disk information utility
long_description    di is a disk information utility, displaying everything \
                    (and more) than the classic df command does.

homepage            https://diskinfo-di.sourceforge.io/
master_sites        sourceforge:project/diskinfo-di

checksums           rmd160  937c5b0c165c794f4662bef3da685a2fb9d47c1c \
                    sha256  19eeeb7ebcad3061ae7814cdae5593accfb2bb261ce24795a604a282cbfc60fe \
                    size    140770

depends_build-append \
                    port:gettext

depends_lib         port:gettext-runtime

# Could use gmp (or tommath when https://trac.macports.org/ticket/71791 is fixed)
configure.args-append \
                    -DDI_USE_MATH=DI_INTERNAL

if {${os.platform} eq "darwin" && ${os.major} < 14} {
    # clang: error: unknown argument: '-fstack-protector-strong'
    configure.args-append \
                    -DDI_FORTIFY=N
}

livecheck.type      regex
livecheck.url       https://sourceforge.net/projects/diskinfo-di/files/
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
