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

name                atkmm
set my_name         atkmm
version             2.36.3
revision            1

categories          gnome devel
license             LGPL-2.1+
maintainers         {devans @dbevans} {mascguy @mascguy} openmaintainer

description         atkmm is the C++ binding for the ATK library.
long_description    ${description} This port is part of the GNOME C++ bindings suite.
homepage            http://www.gtkmm.org/

set branch          [join [lrange [split ${version} .] 0 1] .]
master_sites        gnome:sources/${my_name}/${branch}/
distname            ${my_name}-${version}
dist_subdir         ${my_name}
use_xz              yes

checksums           rmd160  6fa72750e95b8e1eaa8fc299304ce0b74c4f0e5e \
                    sha256  6ec264eaa0c4de0adb7202c600170bde9a7fbe4d466bfbe940eaf7faaa6c5974 \
                    size    797504

# Disable unexpected download of subprojects
meson.wrap_mode     nodownload

depends_build-append \
                    port:mm-common \
                    path:bin/pkg-config:pkgconfig

# Pull in legacy bindings via 'atkmm-1.6', so that dependents don't have to be changed
depends_lib-append \
                    port:atk \
                    port:atkmm-1.6 \
                    path:lib/pkgconfig/glibmm-2.68.pc:glibmm

compiler.cxx_standard 2017

configure.args-append \
                    -Dbuild-documentation=false

livecheck.type      gnome
livecheck.name      ${my_name}