# -*- 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       active_variants 1.1

name            gimp-lqr-plugin
version         0.7.2
revision        3 
license         GPL-2
maintainers     {devans @dbevans} openmaintainer
categories      graphics
homepage        http://liquidrescale.wikidot.com/en:start

description     Liquid Rescale Gimp plug-in.
long_description \
    The Liquid Rescale Gimp plug-in \
    aims at resizing pictures non uniformly \
    while preserving their features

universal_variant no

master_sites    http://liquidrescale.wikidot.com/local--files/en:download-page-sources/

use_bzip2       yes

checksums       rmd160  1e03d5f6eb8b2914bdfa2e05eb33db0850f47f24 \
                sha256  169e11164e4fe4e93a0f06e545748bd77b206b7a471bdebf7dd3bc8a008e647a

depends_build   port:autoconf \
                port:automake \
                port:intltool \
                port:libtool \
                path:bin/pkg-config:pkgconfig

depends_lib     path:lib/pkgconfig/gimp-2.0.pc:gimp2 \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:liblqr

patchfiles      patch-autogen.sh.diff \
                patch-invalid-parameter-name-fix.diff

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

configure.cmd   ./autogen.sh

configure.args  --disable-silent-rules

variant quartz {}

if {[variant_isset quartz]} {
    require_active_variants gimp2 quartz
} else {
    require_active_variants gimp2 "" quartz
}

livecheck.type  regex
livecheck.url   http://liquidrescale.wikidot.com/en:download-page
livecheck.regex "(\\d+(?:\\.\\d+)*).* released on"