diff --git a/graphics/opencollada/Makefile b/graphics/opencollada/Makefile index c752e99a9ac0..303f6db0059b 100644 --- a/graphics/opencollada/Makefile +++ b/graphics/opencollada/Makefile @@ -24,7 +24,4 @@ CFLAGS+= -Wno-narrowing CMAKE_ON= USE_LIBXML USE_SHARED USE_STATIC USE_LDCONFIG= ${PREFIX}/lib/opencollada -post-patch: - @${REINPLACE_CMD} -e 's|$${OPENCOLLADA_INST_LIBRARY}/cmake|${PREFIX}/share/cmake/Modules|' ${WRKSRC}/CMakeLists.txt - .include diff --git a/graphics/opencollada/files/patch-CMakeLists.txt b/graphics/opencollada/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..27da548df03a --- /dev/null +++ b/graphics/opencollada/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2018-11-26 22:43:10 UTC ++++ CMakeLists.txt +@@ -192,7 +192,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_WARNINGS + + set(OPENCOLLADA_INST_INCLUDE ${CMAKE_INSTALL_PREFIX}/include/opencollada) + set(OPENCOLLADA_INST_LIBRARY ${CMAKE_INSTALL_PREFIX}/lib/opencollada) +-set(OPENCOLLADA_INST_CMAKECONFIG ${OPENCOLLADA_INST_LIBRARY}/cmake) ++set(OPENCOLLADA_INST_CMAKECONFIG ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules) + + + #-----------------------------------------------------------------------------