I have a cmake file that I need to patch. There are two lines in particular:

#   find_path(COIN_VERSION3 Inventor/scxml/ScXML.h ${COIN3D_INCLUDE_DIR})
.
.
.
         find_path(COIN_VERSION3 Inventor/scxml/ScXML.h ${COIN3D_INCLUDE_DIR})
.
.
.

I only need to replace the uncommented line. So I tried

post-configure {
    reinplace {:^#:!s:Inventor/scxml:scxml:g} \
        ${worksrcpath}/src/3rdParty/CMakeLists.txt
}

But this had no effect, when it should work in sed. Am I missing something?


Mark




_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to