git: faa3ba2385ae - main - devel/mrc: Fix build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Jun 2026 05:54:47 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=faa3ba2385aec8cbd9c2dd923928fad836d9b5bb
commit faa3ba2385aec8cbd9c2dd923928fad836d9b5bb
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-12 05:48:58 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-12 05:54:44 +0000
devel/mrc: Fix build
---
devel/mrc/Makefile | 6 ++----
devel/mrc/files/patch-CMakeLists.txt | 18 +++++++++++-------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/devel/mrc/Makefile b/devel/mrc/Makefile
index 3a8ae54bb053..61cd2b05508f 100644
--- a/devel/mrc/Makefile
+++ b/devel/mrc/Makefile
@@ -1,6 +1,7 @@
PORTNAME= mrc
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.17
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
@@ -28,9 +29,6 @@ OPTIONS_DEFINE= EXAMPLES
PORTEXAMPLES= *
-post-install: # workaround for https://github.com/mhekkel/mrc/issues/9
- @${INSTALL_PROGRAM} ${BUILD_WRKSRC}/mrc ${STAGEDIR}${PREFIX}/bin
-
-# tests as of 1.3.16: 100% tests passed, 0 tests failed out of 1
+# tests as of 1.3.17: 100% tests passed, 0 tests failed out of 1
.include <bsd.port.mk>
diff --git a/devel/mrc/files/patch-CMakeLists.txt b/devel/mrc/files/patch-CMakeLists.txt
index 52216a326af3..b1b894a10e21 100644
--- a/devel/mrc/files/patch-CMakeLists.txt
+++ b/devel/mrc/files/patch-CMakeLists.txt
@@ -1,11 +1,15 @@
---- CMakeLists.txt.orig 2025-05-26 08:12:33 UTC
+-- Install examples to share/examples/mrc instead of share/doc/mrc
+-- so that the EXAMPLES option works correctly in the FreeBSD port.
+-- The trailing slash on "examples/" installs directory contents
+-- rather than the directory itself.
+--
+--- CMakeLists.txt.orig 2026-04-08 13:44:36 UTC
+++ CMakeLists.txt
-@@ -100,7 +100,7 @@ endif()
- endif()
+@@ -110,6 +110,6 @@ endif()
+ install(FILES doc/mrc.1 DESTINATION share/man/man1)
endif()
--install(TARGETS mrc)
-+#install(DIRECTORY example DESTINATION share/examples/mrc)
+-install(DIRECTORY examples DESTINATION share/doc/mrc PATTERN build EXCLUDE)
++install(DIRECTORY examples/ DESTINATION share/examples/mrc PATTERN build EXCLUDE)
- if(WIN32)
- install(FILES cmake/mrc-config.cmake DESTINATION cmake)
+ # add_subdirectory(examples/simple)