# -*- 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
# requires C++11 as of version 0.1.6
maintainers {devans @dbevans} openmaintainer
description Libvisio is a C++ library for reading and parsing \
drawings in VSD (Visio) format.
long_description ${description} VSD is the format used by Visio.
homepage https://wiki.documentfoundation.org/DLP/Libraries/${dname}
master_sites http://dev-www.libreoffice.org/src/${dname}
distname ${dname}-${version}
checksums sha256 fe1002d3671d53c09bc65e47ec948ec7b67e6fb112ed1cd10966e211a8bb50f9 \
rmd160 e77511771580a150f3a4219f27d9b5f0906e4cc0
depends_build port:pkgconfig
depends_lib port:librevenge \
patchfiles patch-ambiguous-pow.diff
# Version 0.1.1's glibtool doesn't know to pass -stdlib=... to the linker
# questionable fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
# libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
# inclusion of <type_traits> which is not libstdc++ compatible
# In file included from VSDContentCollector.cpp:13:
# In file included from /opt/local/include/boost/spirit/include/classic.hpp:11:
# In file included from /opt/local/include/boost/spirit/home/classic.hpp:29:
# In file included from /opt/local/include/boost/spirit/home/classic/utility.hpp:37:
# In file included from /opt/local/include/boost/spirit/home/classic/utility/scoped_lock.hpp:13:
# In file included from /opt/local/include/boost/thread/lock_types.hpp:11:
# /opt/local/include/boost/thread/detail/move.hpp:31:10: fatal error: 'type_traits' file not found
if {${configure.cxx_stdlib} eq "libstdc++"} {
configure.cppflags-append \
-DBOOST_NO_CXX11_RVALUE_REFERENCES