From: Eitan Adler on
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?
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Tijl Coosemans on
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
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Rainer Hurling on
Am 21.03.2010 21:42 (UTC+1) schrieb Tijl Coosemans:
> 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

and, as far as I understand, put "-e" between command and the rest (see
Porters Handbook, chapter 4.4):

${REINPLACE_CMD} -e 's,$${CMAKE_BINARY_DIR}/lib,libdata/lib,'
${WRKSRC}/CMakeLists.txt
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Eitan Adler on
> ${REINPLACE_CMD} -e 's,$${CMAKE_BINARY_DIR}/lib,libdata/lib,'
> ${WRKSRC}/CMakeLists.txt
>
This works perfectly - I was missing the double $$ - thanks.
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"