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

github.setup        ampas aces_container 1.0.2 v
revision            1
categories          graphics
# the license is a GPL incompatible BSD Variant
# see https://fedoraproject.org/wiki/Licensing:BSD?rd=Licensing/BSD
license             AMPAS
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description         Reference implementation of SMPTE S2065-4
long_description    \
    A reference implementation for an ACES container file writer intended to be used with the Academy Color Encoding System (ACES). \
    The resulting file is compliant with the ACES container specification (SMPTE S2065-4).
platforms           darwin

checksums           rmd160  73a2f4bcce0d8bf80f186dddaa5adcdd1e444aba \
                    sha256  9249950de9f432008bb5810f67f02ffbb77ec7ee1c5f96b6dd38ae11814479b7 \
                    size    27117

# a fix for case-sensitive filesystems
# see https://trac.macports.org/ticket/57497
patchfiles-append   patch-install_location.diff

# .pc file only installed if pkgconfig present
depends_build-append port:pkgconfig

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} LICENSE README.md ${destroot}${prefix}/share/doc/${name}
}