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

Last change on this file was 150576, checked in by devans@…, 12 months ago

libcdr-0.1: update to version 0.1.3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 150576 2016-07-22 22:45:43Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libcdr-0.1
7set dname           libcdr
8version             0.1.3
9categories          graphics
10license             {GPL-2.1+ LGPL-2.1+ MPL-1.1+}
11maintainers         devans openmaintainer
12platforms           darwin
13homepage            https://wiki.documentfoundation.org/DLP/Libraries/${dname}
14master_sites        http://dev-www.libreoffice.org/src/${dname}
15
16description         Libcdr is a library and a set of tools for reading and converting binary files \
17                    produced by Corel DRAW.
18
19long_description    ${description}
20
21use_xz              yes
22
23distname            ${dname}-${version}
24
25checksums           sha256  66e28e502abef7f6f494ce03de037d532f5e7888cfdee62c01203c8325b33f22 \
26                    rmd160  29bdf0517b4476a109d4b42965fcab5e62058bee
27
28depends_build       port:pkgconfig \
29                    port:cppunit
30
31depends_lib         port:librevenge \
32                    port:boost \
33                    port:icu \
34                    port:lcms2 \
35                    port:zlib
36
37# build fix for gcc-4.2 (#43487)
38if {[string match "*gcc*" ${configure.compiler}]} {
39    configure.cxxflags-append -Wno-long-long
40}
41
42# The packaged glibtool in 0.1.1 doesn't pass --stdlib=libc++ down at link time
43use_autoreconf  yes
44autoreconf.args -fvi
45
46# questionable fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
47# libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
48# inclusion of <type_traits> which is not libstdc++ compatible
49#
50# In file included from CDRParser.cpp:20:
51# In file included from /opt/local/include/boost/spirit/include/classic.hpp:11:
52# In file included from /opt/local/include/boost/spirit/home/classic.hpp:29:
53# In file included from /opt/local/include/boost/spirit/home/classic/utility.hpp:37:
54# In file included from /opt/local/include/boost/spirit/home/classic/utility/scoped_lock.hpp:13:
55# In file included from /opt/local/include/boost/thread/lock_types.hpp:11:
56# /opt/local/include/boost/thread/detail/move.hpp:31:10: fatal error: 'type_traits' file not found
57# #include <type_traits>
58
59platform darwin {
60    if {${configure.cxx_stdlib} eq "libstdc++"} {
61        configure.cppflags-append \
62            -DBOOST_NO_CXX11_RVALUE_REFERENCES
63    }
64}
65
66configure.args      --disable-werror \
67                    --disable-silent-rules \
68                    --enable-tests \
69                    --without-docs
70
71test.run            yes
72test.target         check
73
74variant docs description {Build API documentation} {
75    depends_build-append  port:doxygen
76    configure.args-replace --without-docs --with-docs
77}
78
79# delete binaries that conflict with libcdr
80
81post-destroot {
82    file delete -force ${destroot}${prefix}/bin
83}
84
85livecheck.type      regex
86livecheck.url       ${master_sites}
87livecheck.regex     "${dname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.