# -*- 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.7
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  96179d18591e8ae0bda2c2cebedfe41050f13d22 \
                    sha256  6cb8e61226b5d126e403c1519b3c9a452dce4e3fa3762dd9a592aebb78ce8fd6 \
                    size    354166

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
