# -*- 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        wdas ptex 2.5.2 v
revision            0
categories          graphics
license             BSD
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description         Per-face texture mapping for production rendering
long_description    Ptex is a texture mapping system developed by Walt Disney \
                    Animation Studios for production-quality rendering.

checksums           rmd160  10348bc6d1b215e6ce8e2e298f84e938bc4de40f \
                    sha256  dd95fbea4b50e9e68fd042f540fb83157a0ff25053066c3439d4527de3621d34 \
                    size    310776
github.tarball_from archive

# revert https://github.com/wdas/ptex/commit/1818ffc24c3049a9c26f796daf298bb9c1883839 on older systems
# see https://trac.macports.org/ticket/57495
if {${os.major} < 16} {
    patchfiles-append   patch-lock.diff
}

depends_build-append    path:bin/doxygen:doxygen \
                        path:bin/pkg-config:pkgconfig

depends_lib-append      port:zlib

compiler.cxx_standard   2017

# CMakeLists.txt attempts to use git to determine version
configure.args-append   -DPTEX_VER=${version}
