help with sed for post-patch
Tijl Coosemans
tijl at coosemans.org
Sun Mar 21 20:42:18 UTC 2010
On Sunday 21 March 2010 21:14:11 Eitan Adler wrote:
> I need to change
> set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
> to
> set(LIBRARY_OUTPUT_PATH libdata/lib)
>
> Here is what I have
> ${REINPLACE_CMD} -E 's/\$\{CMAKE_BINARY_DIR\}\/lib/libdata\/lib/'
> ${WRKSRC}/CMakeLists.txt
>
> how could I fix this?
In a Makefile you have to replace $ by $$.
${REINPLACE_CMD} 's,$${CMAKE_BINARY_DIR}/lib,libdata/lib,' ${WRKSRC}/CMakeLists.txt
More information about the freebsd-ports
mailing list