source: trunk/dports/graphics/libvisio-0.1/Portfile

Last change on this file was 144077, checked in by devans@…, 19 months ago

libvisio-0.1: update to version 0.1.5.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# -*- 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
2# $Id: Portfile 144077 2015-12-31 19:05:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libvisio-0.1
7set dname           libvisio
8version             0.1.5
9categories          graphics
10platforms           darwin
11maintainers         devans openmaintainer
12license             LGPL-2
13
14description         Libvisio is a C++ library for reading and parsing \
15                    drawings in VSD (Visio) format.
16
17long_description    ${description} VSD is the format used by Visio.
18
19homepage            https://wiki.documentfoundation.org/DLP/Libraries/${dname}
20master_sites        http://dev-www.libreoffice.org/src/${dname}
21
22use_xz              yes
23
24distname            ${dname}-${version}
25
26checksums           sha256  430a067903660bb1b97daf4b045e408a1bb75ca45e615cf05fb1a4da65fc5a8c \
27                    rmd160  d2cb94bb055e61e2dd4a318de61fb69f1009f86a
28
29depends_build       port:pkgconfig
30
31depends_lib         port:librevenge \
32                    port:boost \
33                    port:cppunit \
34                    port:icu \
35                    port:libxml2 \
36                    port:zlib
37
38patchfiles          patch-ambiguous-pow.diff
39
40# Version 0.1.1's glibtool doesn't know to pass -stdlib=... to the linker
41use_autoreconf      yes
42autoreconf.args     -fvi
43
44# questionable fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
45# libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
46# inclusion of <type_traits> which is not libstdc++ compatible
47#
48# In file included from VSDContentCollector.cpp:13:
49# In file included from /opt/local/include/boost/spirit/include/classic.hpp:11:
50# In file included from /opt/local/include/boost/spirit/home/classic.hpp:29:
51# In file included from /opt/local/include/boost/spirit/home/classic/utility.hpp:37:
52# In file included from /opt/local/include/boost/spirit/home/classic/utility/scoped_lock.hpp:13:
53# In file included from /opt/local/include/boost/thread/lock_types.hpp:11:
54# /opt/local/include/boost/thread/detail/move.hpp:31:10: fatal error: 'type_traits' file not found
55# #include <type_traits>
56
57platform darwin {
58    if {${configure.cxx_stdlib} eq "libstdc++"} {
59        configure.cppflags-append \
60            -DBOOST_NO_CXX11_RVALUE_REFERENCES
61    }
62}
63
64configure.args      --without-docs \
65                    --disable-silent-rules \
66                    --disable-werror \
67                    --enable-tests
68
69test.run            yes
70test.target         check
71
72# delete binaries that conflict with libvisio
73
74post-destroot {
75    file delete -force ${destroot}${prefix}/bin
76}
77
78variant docs description {Build documentation using doxygen} {
79    depends_build-append    port:doxygen
80    configure.args-delete   --without-docs
81}
82   
83livecheck.type      regex
84livecheck.url       [lindex ${master_sites} 0]
85livecheck.regex     \"${dname}-(\[0-9.\]+)${extract.suffix}\"
Note: See TracBrowser for help on using the repository browser.