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

# Warning: OpenJPH embeds the package version number in the dylib name.
# Therefore dependent rev bumps are required on every version update.
# Upstream is aware of issue, and will eventually improve:
# https://github.com/aous72/OpenJPH/issues/155

version         0.33.0
github.setup    aous72 OpenJPH ${version}
github.tarball_from archive

categories      graphics
license         BSD
maintainers     nomaintainer
description     Open-source implementation of JPEG2000 Part-15
long_description \
    Open source implementation of High-throughput JPEG2000 (HTJ2K), \
    also known as JPH, JPEG2000 Part 15, ISO/IEC 15444-15, and ITU-T \
    T.814. Here, we are interested in implementing the HTJ2K only, \
    supporting features that are defined in JPEG2000 Part 1 (for \
    example, for wavelet transform, only reversible 5/3 and \
    irreversible 9/7 are supported).

checksums       rmd160  a2cc4652ba59714839cf03f526791cf016b56194 \
                sha256  3437f296ff8531b35558650b0ed7fde45cad39394329eef4064a3d4900cf101f \
                size    584955

depends_lib     port:tiff

compiler.c_standard 2011
compiler.cxx_standard 2011
# Wants compiler support for various Intel SIMD instructions
# https://trac.macports.org/ticket/73736
compiler.blacklist  {clang < 1100}
