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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           legacysupport 1.1
PortGroup           makefile 1.0

# getline
legacysupport.newest_darwin_requires_legacy 10

github.setup        Zuhaitz-dev fat 0.2.0-beta v
revision            0
categories          sysutils
license             MIT
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         FAT is a modern, TUI-based file and archive viewer
long_description    {*}${description} for your terminal.
checksums           rmd160  f0871205ccc16a5f01edc54cd72524da20a56c9b \
                    sha256  1a5cd3f2d12ca46dbe400e8f685eb8ecc34f269693373a398e8530a3abb5d097 \
                    size    799883
github.tarball_from archive

# https://github.com/Zuhaitz-dev/fat/pull/12
patchfiles          patch-fix-Makefile.diff

depends_lib-append  port:libmagic \
                    port:libtar \
                    port:libzip \
                    port:ncurses

# string_list.c:66: error: ‘for’ loop initial declaration used outside C99 mode
# zip.h:389: error: wrong number of arguments specified for ‘deprecated’ attribute
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2

build.env-append    EXTRA_CFLAGS=${configure.cflags} \
                    USE_HOMEBREW=0

destroot.env-append DESTDIR=${destroot}
