# -*- 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.30.1
name                    [string tolower ${github.project}]
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  c92a88a2724d012b1e22011a505d32d1b2c080a0 \
                        sha256  fb3ccf71af838ed2a42c6ea669308a2adaba115ae9d5862dfb1e2865b43eb5b8 \
                        size    531155
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.cxx_standard   2011
