# -*- 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            aous72 OpenJPH 0.31.0
revision                0
categories              graphics
license                 BSD
maintainers             {@barracuda156 macos-powerpc.org:barracuda} openmaintainer

description             Open-source implementation of High-throughput JPEG2000 (HTJ2K)
long_description        {*}${description}
checksums               rmd160  9e7a99147b6885dd228ea0c2fca82ca6185e14e8 \
                        sha256  fe169dbbaae71a169a0a6a68dccb346616193252c1ca044217afa0d5d1dc436f \
                        size    534814
github.tarball_from     archive

depends_lib-append      port:tiff

configure.args-append   -DBUILD_SHARED_LIBS=ON \
                        -DOJPH_BUILD_EXECUTABLES=ON \
                        -DOJPH_BUILD_TESTS=OFF \
                        -DOJPH_DISABLE_SIMD=ON \
                        -DOJPH_ENABLE_TIFF_SUPPORT=ON

compiler.c_standard     2011
compiler.cxx_standard   2014
compiler.blacklist-append   {clang < 1100}
