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 33 33 reinplace "s@\\.\\./glew/include@@" ${worksrcpath}/src/src.pro 34 34 } 35 35 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 36 39 configure.optflags -O3 37 40 configure.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 44 post-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 38 53 build.target sub-src-all 39 54 40 55 destroot {