# -*- 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.3
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  7c22992fd3390d5be5500c2b1c689a7d2a64c065 \
                    sha256  d83e3b950a76bafc014f267bf7e4c793bdfca26c5ffd22c0b9e7367e26335288 \
                    size    352649

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
