# -*- 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        google brunsli 0.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          archivers
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Brunsli is a lossless JPEG repacking library.
long_description    {*}${description} Brunsli allows for a 22% decrease in file size while \
                    allowing the original JPEG to be recovered byte-by-byte.

checksums           rmd160  b6f92f2a3260ed071eb6a80b3bea20446ba75468 \
                    sha256  f0adb2725c94be33db0beb3746806e018c063dcc213f1a293839801b8ec9e114 \
                    size    876342

depends_lib         port:brotli

compiler.cxx_standard 2011

patchfiles          patch-brunsli.cmake.diff \
                    patch-CMakeLists.txt.diff

post-patch {
    reinplace "s|%PREFIX%|${prefix}|g" \
        ${worksrcpath}/brunsli.cmake
}
