# -*- 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           makefile 1.0

name                xBRZ
version             1.8
revision            0
categories          graphics
maintainers         nomaintainer

description         ${name} is a high-quality image upscaling filter for creating \
                    beautiful HD representations from low-resolution images.
long_description    {*}${description}
license             GPL-3
homepage            https://sourceforge.net/projects/xbrz
distname            ${name}_${version}
master_sites        sourceforge:project/xbrz/${name}
checksums           rmd160  fcfdbf830cd7824f096b389b547cf0ab9d5c48e4 \
                    sha256  e4e2513801c7097fe9a391b481a48b1890f80e696549d8cf27884bd223a4cba9 \
                    size    27793
use_zip             yes
extract.mkdir       yes

post-extract {
    copy ${filespath}/Makefile ${worksrcpath}
}

compiler.cxx_standard 2017

build.target        xbrz.so

destroot {
    copy ${worksrcpath}/${name}.so ${destroot}${prefix}/lib
    xinstall -m 0644 -W ${worksrcpath} xbrz_config.h xbrz_tools.h xbrz.h ${destroot}${prefix}/include
}
