# -*- 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 libjodycode 3.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
checksums           rmd160  521a8c7eada622e8569e5bd3d6add6cf1fb40a99 \
                    sha256  7e07cad7931602b6de2130d0ad82cc964d2f5dae17853e7e54f50b91fc205960 \
                    size    27359

categories          devel
license             MIT
maintainers         nomaintainer
description         Library for imagepile, jdupes, winregfs, zeromerge.
long_description    ${name} is a software code library containing code \
                    shared among several of the programs written by \
                    Jody Bruchon such as imagepile, jdupes, winregfs, \
                    and zeromerge.

# The following patch adds the absolute path to -install_name, along
# with version numbers to -compatibility_version and -current version.
# This patch also renames the compiled library and symlinks to .dylib
# rather than .so.
patchfiles-append   Makefile.patch

compiler.c_standard 2011

# Disable use of Intel extensions, as they also require aligned_alloc.
# And latter only available for 10.14+ x86_64 anyway.
# See: https://trac.macports.org/ticket/68041
build.args-append \
                    NO_SIMD=1

platform darwin 8 {
    depends_build-append \
                    port:gmake

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