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

name                    ctlang
github.setup            ampas CTL 1.5.3 ctl-
revision                0
categories              graphics lang
# 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             Programming language for digital color management
long_description        The Color Transformation Language, or CTL, \
                        is a programming language for digital color management.

checksums               rmd160  d1e11e9129b2c81020a8395173d22cc42c7ce31c \
                        sha256  0a9f5f3de8964ac5cca31597aca74bf915a3d8214e3276fdcb52c80ad25b0096 \
                        size    3073036
github.tarball_from     archive

compiler.cxx_standard   2011

depends_build-append    \
    port:pkgconfig
depends_lib-append      \
    port:aces_container \
    port:imath          \
    port:openexr        \
    port:tiff

configure.pre_args-replace \
                        -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                        -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

configure.args-append   -DBUILD_SHARED_LIBS=ON

test.run                yes
