Changes between Initial Version and Version 1 of Ticket #51840, comment 8


Ignore:
Timestamp:
Sep 28, 2016, 5:41:54 AM (8 years ago)
Author:
ken-cunningham-webuse
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51840, comment 8

    initial v1  
    1 and likewise in openscad, changing the reinplace block to this in the portfile works on 10.6, and maybe other systems.
     1and likewise in openscad, changing the reinplace block to this in the portfile works on 10.6, and maybe other systems with a proper os.major guard added...
    22{{{
    33post-configure {
    44    # remove useless/harmful warning flags. g++-4.2 will not accept -Wno-unused-local-typedefs
    55    reinplace -W ${worksrcpath} "s|\-W\[^ \]* ||g" Makefile
     6
     7    if {${configure.cxx_stdlib} eq "libc++"} {
    68        reinplace "s|CXXFLAGS      = -pipe|CXXFLAGS      = -pipe -std=c++11 -stdlib=libc++ |g" ${worksrcpath}/Makefile
    79        reinplace "s|QMAKE_COMP_QMAKE_OBJECTIVE_CXXFLAGS = -pipe|QMAKE_COMP_QMAKE_OBJECTIVE_CXXFLAGS = -pipe -std=c++11 -stdlib=libc++ |g" ${worksrcpath}/Makefile
    810        reinplace "s|export MACOSX_DEPLOYMENT_TARGET = 10.7|export MACOSX_DEPLOYMENT_TARGET = 10.6|g" ${worksrcpath}/Makefile
    9 
     11    }
    1012}
    1113}}}