# -*- 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        specious osxutils 1.9.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories          sysutils
maintainers         {ryandesign @ryandesign} openmaintainer
license             GPL-2+

description         Command line utilities for Finder commands

long_description    osxutils is a package of potentially useful Mac-oriented \
                    command line utilities. \
                    These tools represent an effort in bringing command line \
                    control over certain aspects of macOS, in particular \
                    file meta-data such as Finder flags, heritage file Type \
                    and Creator codes, comments and suffixes/file extensions.

checksums           rmd160  501b91da0a9235dff62856201d0e7f4ee57aa97d \
                    sha256  a2bafed3746d0a5fc2931198a83cffb653e4e010ca514ae254ebd7291df6553e \
                    size    61270

patchfiles          patch-compile.diff \
                    patch-setfcomment-setfcomment.c.diff

post-patch {
    if {${prefix} ne "/usr/local"} {
        reinplace "s|/usr/local|${prefix}|g" {*}[glob ${worksrcpath}/*/*.1] ${worksrcpath}/Makefile
    }
}

use_configure       no

variant universal {}

build.args          CC=${configure.cc} \
                    ARCH_FLAG="[get_canonical_archflags cc]" \
                    OPT="${configure.optflags}"

# ${prefix}/bin/google
conflicts-append    googlecl
