Ticket #55098: patch-libcdr0.1-Portfile-PPC.diff

File patch-libcdr0.1-Portfile-PPC.diff, 1.9 KB (added by kencu (Ken), 7 years ago)

The portfile patch allows build on PPC Leopard (at least).

  • Portfile

    old new  
    11# -*- 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
    22
    33PortSystem          1.0
     4PortGroup           cxx11 1.1
    45
    56name                libcdr-0.1
    67set dname           libcdr
     
    3334                    port:lcms2 \
    3435                    port:zlib
    3536
    36 # build fix for gcc-4.2 (#43487)
    37 if {[string match "*gcc*" ${configure.compiler}]} {
    38     configure.cxxflags-append -Wno-long-long
    39 }
    4037
    4138# The packaged glibtool in 0.1.1 doesn't pass --stdlib=libc++ down at link time
    4239use_autoreconf  yes
    4340autoreconf.args -fvi
    4441
    45 # questionable fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
    46 # libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
    47 # inclusion of <type_traits> which is not libstdc++ compatible
    48 #
    49 # In file included from CDRParser.cpp:20:
    50 # In file included from /opt/local/include/boost/spirit/include/classic.hpp:11:
    51 # In file included from /opt/local/include/boost/spirit/home/classic.hpp:29:
    52 # In file included from /opt/local/include/boost/spirit/home/classic/utility.hpp:37:
    53 # In file included from /opt/local/include/boost/spirit/home/classic/utility/scoped_lock.hpp:13:
    54 # In file included from /opt/local/include/boost/thread/lock_types.hpp:11:
    55 # /opt/local/include/boost/thread/detail/move.hpp:31:10: fatal error: 'type_traits' file not found
    56 # #include <type_traits>
    57 
    58 platform darwin {
    59     if {${configure.cxx_stdlib} eq "libstdc++"} {
    60         configure.cppflags-append \
    61             -DBOOST_NO_CXX11_RVALUE_REFERENCES
    62     }
    63 }
    64 
    6542configure.args      --disable-werror \
    6643                    --disable-silent-rules \
    6744                    --enable-tests \