git: 0b84b9ab3946 - main - graphics/opencollada: Convert REINPLACE_CMD to patch file
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Tue May 11 21:51:35 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0b84b9ab3946f528bcf462aabd81553f4c5ff34c
commit 0b84b9ab3946f528bcf462aabd81553f4c5ff34c
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-05-11 21:14:33 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-05-11 21:46:58 +0000
graphics/opencollada: Convert REINPLACE_CMD to patch file
---
graphics/opencollada/Makefile | 3 ---
graphics/opencollada/files/patch-CMakeLists.txt | 11 +++++++++++
2 files changed, 11 insertions(+), 3 deletions(-)
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 <bsd.port.mk>
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)
+
+
+ #-----------------------------------------------------------------------------
More information about the dev-commits-ports-all
mailing list