Ticket #52442: opencsg-libcxx-fix.diff

File opencsg-libcxx-fix.diff, 1012 bytes (added by ken-cunningham-webuse, 8 years ago)
  • science/OpenCSG/Portfile

    old new  
    3333    reinplace "s@\\.\\./glew/include@@" ${worksrcpath}/src/src.pro
    3434}
    3535
     36
     37# FYI - I would bet configure is never called because we're using portgroup qmake
     38# these arguments don't appear to make it into the build script
    3639configure.optflags  -O3
    3740configure.args      -r -o Makefile OpenCSG.pro
     41
     42# add references to libc++ in CXXFLAGS and LDFLAGS for systems that need them
     43# there is no configure script, so force them it with reinplace
     44post-configure {
     45    if {${configure.cxx_stdlib} eq "libc++"} {
     46                reinplace "s|CXXFLAGS      = -pipe|CXXFLAGS      = -pipe -std=c++11 -stdlib=libc++ |g" ${worksrcpath}/src/Makefile
     47                reinplace "s|-lGLEW|-lGLEW -stdlib=libc++ |g" ${worksrcpath}/src/Makefile
     48    }
     49}
     50
     51
     52
    3853build.target        sub-src-all
    3954
    4055destroot {