# -*- 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        mircomir jxrlib 1.4.2
revision            0
categories          graphics
license             BSD
maintainers         {@Dave-Allured noaa.gov:dave.allured} \
                    openmaintainer
github.tarball_from archive

description         jxrlib is JPEG XR Image Codec reference implementation library
long_description    {*}${description}

patchfiles          0001-Add-ability-to-build-using-cmake.patch

checksums           rmd160  29f1e7a969ee119c897eb5870a044ce3ac1336f2 \
                    sha256  1ccc2b6e3afd758c8b33cabc1f05ff56c9babb8b91a99b8281136a1a329b8adb \
                    size    352141

patch.pre_args-replace \
                    -p0 \
                    -p1

post-patch {
    reinplace       s|@VERSION@|${version}|g \
                    ${worksrcpath}/CMakeLists.txt
}

# Exclude pre-release versions.
livecheck.regex     archive/refs/tags/(\[0-9.\]+)\.tar\.gz
