# -*- 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.0
revision            0
categories          graphics
license             BSD
maintainers         nomaintainer
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  aea547d6890b8183984c267d192a7f28a12c535a \
                    sha256  5cd7571fe621549b52c1fd64ab2309e3d04de95e6f1ad3f749230a95022efc4e \
                    size    352072

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
