# -*- 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 PortSystem 1.0 # as of version 2.99.11 requires C++17 to build PortGroup compiler_blacklist_versions 1.0 PortGroup cxx11 1.1 name libsigcxx3 set gname libsigc++ version 2.99.11 license LGPL-2.1 set branch [join [lrange [split ${version} .] 0 1] .] categories devel platforms darwin maintainers {devans @dbevans} openmaintainer description Typesafe callback framework for C++ 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. \ This is the libsigc++-3.0 API, which installs in parallel with libsigc++-2.0. \ The API is not significantly different, but the implementation is far simpler, \ using variadic templates instead of generating C++ code from .m4 filessystem. homepage https://libsigcplusplus.github.io/libsigcplusplus/ master_sites gnome:sources/${gname}/${branch}/ distname ${gname}-${version} use_xz yes checksums rmd160 ef7785e84fea65b17178ce14d2973629792b6a1f \ sha256 177fb08df33da71780eef2ce4c5991a2b3b6d07d4ad1efbf6ad38f7964e4bb55 \ size 951848 depends_build port:pkgconfig \ port:mm-common \ port:m4 \ path:bin/dot:graphviz \ port:doxygen \ port:libxslt # requires a compiler that supports C++17 compiler.blacklist-append {clang < 900.0.39} macports-clang-3.* # powerpc platforms want to use macports-gcc-6 # C++17 support requires macports-gcc-7 compiler.blacklist-append macports-gcc-6 compiler.fallback-append macports-gcc-7 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}-3.0 xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ ${destroot}${docdir} } livecheck.type gnome-with-unstable livecheck.name ${gname}