# -*- 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               cmake 1.1
PortGroup               github 1.0

github.setup            fernandotcl monkeys-audio 3.99.6 release-
revision                0
categories              audio
maintainers             {@barracuda156 gmail.com:vital.had} openmaintainer
license                 Restrictive NoMirror
# Re license see: https://lists.debian.org/debian-legal/2007/09/msg00079.html
description             Lossless audio compressor
long_description        Monkeyʼs Audio Codec is a lossless compressor for audio files. \
                        Files in this format can typically be recognized by the .ape extension.

checksums               rmd160  f4bcebe08ade43065f783c880a82e1a9f42e2980 \
                        sha256  0d279bf2042ac5a8fc57674de0f20a4c78f8f33926346d98949bc312c76860f1 \
                        size    78937
github.tarball_from     archive

# https://github.com/fernandotcl/monkeys-audio/pull/8
patchfiles              0001-CMakeLists-use-MATCHES-for-Clang.patch

platform darwin {
    # Since we set NoMirror, need to fetch from the GH repo, and older systems will fail to do it.
    if {${os.major} < 13} {
        fetch.type      git
    }
}