# -*- 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
PortGroup           makefile 1.0

github.setup        jbruchon jdupes 1.27.3 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
checksums           rmd160  8b89f1664be14ecf88689a5dda2ecf688aece698 \
                    sha256  fce3684f5dbfdf2f01f23a3576cd0141745a9d10a5ccb57b1b881eefc78bd64a \
                    size    174865

categories          sysutils
license             MIT
maintainers         nomaintainer
description         identify and take actions upon duplicate files
long_description    ${name} is a powerful duplicate file finder and an \
                    enhanced fork of 'fdupes'.

depends_lib-append \
                    port:libjodycode

compiler.c_standard 2011

# Ensure installation is rooted in the macports domain, rather than '/usr/local'
# See: https://trac.macports.org/ticket/68168
destroot.args-append \
                    PREFIX=${prefix}

platform darwin {
    if {${os.major} > 16} {
        # dedupe feature requires macOS 10.13 or higher
        build.args-append \
                    ENABLE_DEDUPE=1
    }
}

platform darwin 8 {
    # https://trac.macports.org/ticket/66274
    depends_build-append \
                    port:gmake

    build.cmd       ${prefix}/bin/gmake
}
