git: c23260105dff - main - devel/libftdi1: Fix building with CMake 4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Sep 2026 09:29:18 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c23260105dff4697aa3fc70b1a434198880b86d9
commit c23260105dff4697aa3fc70b1a434198880b86d9
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-09-13 09:27:51 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-09-13 09:28:12 +0000
devel/libftdi1: Fix building with CMake 4
Approved by: portmgr (fixit blanket)
---
devel/libftdi1/files/patch-CMakeLists.txt | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/devel/libftdi1/files/patch-CMakeLists.txt b/devel/libftdi1/files/patch-CMakeLists.txt
index 94553f6760d4..9f593fa64436 100644
--- a/devel/libftdi1/files/patch-CMakeLists.txt
+++ b/devel/libftdi1/files/patch-CMakeLists.txt
@@ -1,6 +1,15 @@
--- CMakeLists.txt.orig 2020-07-07 19:32:55 UTC
+++ CMakeLists.txt
-@@ -136,7 +136,7 @@ endif ()
+@@ -12,7 +12,7 @@ set(CMAKE_COLOR_MAKEFILE ON)
+ set(CMAKE_BUILD_TYPE RelWithDebInfo)
+ endif("${CMAKE_BUILD_TYPE}" STREQUAL "")
+ set(CMAKE_COLOR_MAKEFILE ON)
+-cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
++cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
+
+ add_definitions(-Wall)
+
+@@ -136,7 +136,7 @@ if ( FTDIPP )
add_subdirectory(src)
if ( FTDIPP )
@@ -9,7 +18,7 @@
add_subdirectory(ftdipp)
endif ()
if ( PYTHON_BINDINGS )
-@@ -168,7 +168,7 @@ endif(${WIN32})
+@@ -168,7 +168,7 @@ install(FILES ${CMAKE_BINARY_DIR}/libftdi1.pc ${CMAKE_
configure_file(${CMAKE_SOURCE_DIR}/libftdi1.pc.in ${CMAKE_BINARY_DIR}/libftdi1.pc @ONLY)
configure_file(${CMAKE_SOURCE_DIR}/libftdipp1.pc.in ${CMAKE_BINARY_DIR}/libftdipp1.pc @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/libftdi1.pc ${CMAKE_BINARY_DIR}/libftdipp1.pc