# -*- 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 # $Id$ PortSystem 1.0 name libcdr-0.1 set dname libcdr version 0.1.3 categories graphics license {GPL-2.1+ LGPL-2.1+ MPL-1.1+} maintainers devans openmaintainer platforms darwin homepage https://wiki.documentfoundation.org/DLP/Libraries/${dname} master_sites http://dev-www.libreoffice.org/src/${dname} description Libcdr is a library and a set of tools for reading and converting binary files \ produced by Corel DRAW. long_description ${description} use_xz yes distname ${dname}-${version} checksums sha256 66e28e502abef7f6f494ce03de037d532f5e7888cfdee62c01203c8325b33f22 \ rmd160 29bdf0517b4476a109d4b42965fcab5e62058bee depends_build port:pkgconfig \ port:cppunit depends_lib port:librevenge \ port:boost \ port:icu \ port:lcms2 \ port:zlib # build fix for gcc-4.2 (#43487) if {[string match "*gcc*" ${configure.compiler}]} { configure.cxxflags-append -Wno-long-long } # The packaged glibtool in 0.1.1 doesn't pass --stdlib=libc++ down at link time use_autoreconf yes autoreconf.args -fvi # 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 which is not libstdc++ compatible # # In file included from CDRParser.cpp:20: # 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 # #include platform darwin { if {${configure.cxx_stdlib} eq "libstdc++"} { configure.cppflags-append \ -DBOOST_NO_CXX11_RVALUE_REFERENCES } } configure.args --disable-werror \ --disable-silent-rules \ --enable-tests \ --without-docs test.run yes test.target check variant docs description {Build API documentation} { depends_build-append port:doxygen configure.args-replace --without-docs --with-docs } # delete binaries that conflict with libcdr post-destroot { file delete -force ${destroot}${prefix}/bin } livecheck.type regex livecheck.url ${master_sites} livecheck.regex "${dname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"