# -*- 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
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.
platforms           darwin

checksums           rmd160  b6f92f2a3260ed071eb6a80b3bea20446ba75468 \
                    sha256  f0adb2725c94be33db0beb3746806e018c063dcc213f1a293839801b8ec9e114 \
                    size    876342

depends_lib         port:brotli

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

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