# -*- 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        uclouvain openjpeg 2.5.4 v
github.tarball_from archive
revision            0

checksums           rmd160  2c3f3117a1b0d4354f03d1798693cc3451563e9d \
                    sha256  a695fbe19c0165f295a8531b1e4e855cd94d0875d2f88ec4b61080677e27188a \
                    size    2157028

categories          graphics
license             BSD

maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer

description         Library for manipulating JPEG-2000 images

long_description    The OpenJPEG library is an open-source JPEG 2000 codec. \
                    It has been developed in order to promote the use of JPEG \
                    2000, the new still-image compression standard from the \
                    Joint Photographic Experts Group (JPEG).

homepage            https://www.openjpeg.org/

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

depends_lib         port:libpng \
                    port:tiff \
                    port:lcms2 \
                    port:zlib \
                    port:jbigkit

configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include

if {${universal_possible} && [variant_isset universal]} {
    if {${build_arch} in [list ppc ppc64]} {
        PortGroup  muniversal 1.0

    }
}
