git: 7fcb266e8434 - main - comms/mbelib: Convert the sed invocation into a patch file

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Mon, 28 Sep 2026 18:36:48 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7fcb266e8434938e126919bcf50f07ee92ddaed0

commit 7fcb266e8434938e126919bcf50f07ee92ddaed0
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-09-28 18:32:33 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-09-28 18:33:36 +0000

    comms/mbelib: Convert the sed invocation into a patch file
    
    PR:             298639
    Reported by:    mat
    Fixes:  40ccce5d1a8540eef2e6a25f0f844fd23db0e755
---
 comms/mbelib/Makefile                   | 3 ---
 comms/mbelib/files/patch-CMakeLists.txt | 9 +++++++++
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/comms/mbelib/Makefile b/comms/mbelib/Makefile
index 5174aeef693a..d17761dd704f 100644
--- a/comms/mbelib/Makefile
+++ b/comms/mbelib/Makefile
@@ -26,7 +26,4 @@ CMAKE_ON=	DISABLE_TEST
 PLIST_FILES=	include/mbelib.h lib/libmbe.a lib/libmbe.so.1.0 \
 		lib/libmbe.so.1 lib/libmbe.so
 
-do-patch:
-	${REINPLACE_CMD} 's|VERSION 2.6|VERSION 3.10|' ${WRKSRC}/CMakeLists.txt
-
 .include <bsd.port.mk>
diff --git a/comms/mbelib/files/patch-CMakeLists.txt b/comms/mbelib/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..4f610939b87d
--- /dev/null
+++ b/comms/mbelib/files/patch-CMakeLists.txt
@@ -0,0 +1,9 @@
+--- CMakeLists.txt.orig	2016-01-08 17:31:41 UTC
++++ CMakeLists.txt
+@@ -1,5 +1,5 @@ project(mbe)
+ project(mbe)
+-cmake_minimum_required(VERSION 2.6)
++cmake_minimum_required(VERSION 3.10)
+ 
+ FILE(GLOB SRCS *.c)
+