From: Eitan Adler on 21 Mar 2010 16:14 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 21 Mar 2010 16:42 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 22 Mar 2010 02:38 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 22 Mar 2010 16:01 > ${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"
|
Pages: 1 Prev: mail/moztraybiff incorrectly works with WRKDIRPREFIX Next: �W�@�L�G���~�¦�`��R�Q�h�ʱ� |