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

name            gconfmm
version         2.28.3
revision        0
checksums       rmd160  397b6bece47c2f88c4dd7070f72ff0a8cc633a62 \
                sha256  d7bd2d29c1a87b85329547fb29a0eca52d944e60699982152775002e24c09228 \
                size    376840

set branch      [join [lrange [split ${version} .] 0 1] .]

description     gconfmm provides C++ wrappers for gconf.

long_description \
                ${description}

maintainers     nomaintainer
categories      gnome
license         LGPL-2.1+
homepage        https://gitlab.gnome.org/Archive/${name}
master_sites    gnome:sources/${name}/${branch}/
use_xz          yes

depends_build   path:bin/pkg-config:pkgconfig \
                path:bin/perl:perl5

depends_lib     path:lib/pkgconfig/glibmm-2.68.pc:glibmm \
                port:gconf

patchfiles      patch-configure.ac.diff \
                gconfmm26-2.28.3-no-extern-c-glib-includes.patch

compiler.cxx_standard   2011

# We are patching configure.ac.
use_autoreconf      yes
autoreconf.cmd  ./autogen.sh
autoreconf.args
autoreconf.env  NOCONFIGURE=1
depends_build-append \
                port:autoconf \
                port:automake \
                port:libtool \
                port:mm-common

livecheck.type  gnome
