source: trunk/dports/graphics/libcdr/Portfile

Last change on this file was 139827, checked in by devans@…, 2 years ago

libcdr: assert BOOST_SYSTEM_NO_DEPRECATED to fix build failure with boost 1.59.0, see comments.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 139827 2015-08-28 22:31:48Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            libcdr
7version         0.0.16
8revision        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/${name}
14master_sites    http://dev-www.libreoffice.org/src/${name}
15
16description \
17    Libcdr is a library and a set of tools for reading and converting binary files \
18    produced by Corel DRAW.
19
20long_description \
21    ${description}
22
23use_xz          yes
24
25checksums       sha256  4c8a6586920f7b040ce51fa375eb87507291e0de4f568469db25f52915bc1135 \
26                rmd160  c1fe5b74634385fc9c5ab71d45b1dd063469ded9
27
28depends_build   port:pkgconfig
29
30depends_lib     port:boost \
31                port:icu \
32                port:libwpd \
33                port:libwpg \
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.0.16 doesn't pass --stdlib=libc++ down at link time
43use_autoreconf  yes
44autoreconf.args -fvi
45
46# In boost 1.59.0, a number of symbols related to the Boost.System library have been renamed
47# for compatibility with the C++ committee's standard library specs.  The old symbols have been deprecated
48# and aliases to the new symbols are provided.  When boost headers are included, these aliases
49# can create dependencies on the Boost.System library even if no Boost.System symbols are actually used.
50# Typically this causes missing symbol errors during linking when LDFLAGS (legitimately) does not
51# include -lboost_system-mt.
52#
53# Asserting BOOST_SYSTEM_NO_DEPRECATED deactivates these aliases allowing this and other effected
54# ports to build as before.
55#
56# See http://www.boost.org/doc/libs/1_59_0/libs/system/doc/reference.html#Deprecated-names for details
57#
58# This workaround can be removed when the offending deprecation aliases are removed in a future
59# version of boost.
60
61configure.cppflags-append "-DBOOST_SYSTEM_NO_DEPRECATED"
62
63configure.args  --disable-werror \
64                --disable-silent-rules \
65                --without-docs
66
67variant docs description {Build reference documentation} {
68    depends_build-append  port:doxygen
69    configure.args-replace --without-docs --with-docs
70}
71
72# no further updates in this branch expected
73livecheck.type  none
Note: See TracBrowser for help on using the repository browser.