git: 44e6073453c1 - main - games/freeminer: Fix build with CMake >= 3.28.0

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Thu, 28 Dec 2023 23:03:43 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=44e6073453c1cb286ef303cd1459383f7d6d3149

commit 44e6073453c1cb286ef303cd1459383f7d6d3149
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2023-12-28 20:11:10 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-12-28 23:03:31 +0000

    games/freeminer: Fix build with CMake >= 3.28.0
    
    PR:             275730
    Approved by:    portmgr (blanket)
---
 .../freeminer/files/patch-src_cguittfont_CMakeLists.txt  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/games/freeminer/files/patch-src_cguittfont_CMakeLists.txt b/games/freeminer/files/patch-src_cguittfont_CMakeLists.txt
new file mode 100644
index 000000000000..edf5a12c1b37
--- /dev/null
+++ b/games/freeminer/files/patch-src_cguittfont_CMakeLists.txt
@@ -0,0 +1,16 @@
+Fix build with CMake >= 3.28.0. FREETYPE_LIBRARY has not officially been
+part of the user-facing interface of the FindFreetype module since CMake
+2.6.0 [1] and has only been coincidentally defined up until this point.
+
+[1] https://gitlab.kitware.com/cmake/cmake/-/commit/d18fb61c76c720ec5b1ac2cc4f30a5beaf071c33
+
+--- src/cguittfont/CMakeLists.txt.orig	2023-12-26 21:52:39 UTC
++++ src/cguittfont/CMakeLists.txt
+@@ -24,6 +24,6 @@ target_link_libraries(
+ target_link_libraries(
+ 	cguittfont
+ 	${IRRLICHT_LIBRARY}
+-	${FREETYPE_LIBRARY}
++	${FREETYPE_LIBRARIES}
+ 	${ZLIB_LIBRARIES}  # needed by freetype, repeated here for safety
+ 	)