# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0

name                libsigcxx2
set gname           libsigc++
version             2.4.1
revision            2
license             LGPL-2.1
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          devel
platforms           darwin
maintainers         devans openmaintainer
description         C++ signal callback system

long_description    libsigc++ implements a typesafe callback system for standard C++. It allows you to define signals and to \
                    connect those signals to any callback function, either global or a member function, regardless of whether it is \
                    static or virtual.

homepage            http://libsigc.sourceforge.net/
master_sites        gnome:sources/${gname}/${branch}/
distname            ${gname}-${version}
use_xz              yes

checksums           sha256  540443492a68e77e30db8d425f3c0b1299c825bf974d9bfc31ae7efafedc19ec \
                    rmd160  1a13886773661e4dc60982b403c27c6ebcbf2b36

depends_build       port:pkgconfig \
                    port:mm-common \
                    port:m4 \
                    path:bin/dot:graphviz \
                    port:doxygen \
                    port:libxslt

configure.perl      /usr/bin/perl
configure.env-append \
                    "M4=${prefix}/bin/gm4"
configure.args      --enable-static \
                    --disable-silent-rules

# Teach glibtool about -stdlib=libc++
use_autoreconf      yes
autoreconf.args     -fvi

post-destroot {
    set docdir ${prefix}/share/doc/${gname}-2.0
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO \
        ${destroot}${docdir}
}

livecheck.type      gnome
livecheck.name      ${gname}