Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2023 23:03:46 GMT
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 83a109cf8d9c - main - games/minetest: Fix build with CMake >= 3.28.0
Message-ID:  <202312282303.3BSN3kd5059601@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=83a109cf8d9c6ed937f55a3ce04da4b79b21058b

commit 83a109cf8d9c6ed937f55a3ce04da4b79b21058b
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2023-12-28 20:19:54 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-12-28 23:03:32 +0000

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

diff --git a/games/minetest/files/patch-src_CMakeLists.txt b/games/minetest/files/patch-src_CMakeLists.txt
new file mode 100644
index 000000000000..c9391d6c1612
--- /dev/null
+++ b/games/minetest/files/patch-src_CMakeLists.txt
@@ -0,0 +1,17 @@
+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/CMakeLists.txt.orig	2023-04-08 16:04:52 UTC
++++ src/CMakeLists.txt
+@@ -542,7 +542,7 @@ if(BUILD_CLIENT)
+ 		${GMP_LIBRARY}
+ 		${JSON_LIBRARY}
+ 		${LUA_BIT_LIBRARY}
+-		${FREETYPE_LIBRARY}
++		${FREETYPE_LIBRARIES}
+ 		${PLATFORM_LIBS}
+ 	)
+ 	if(NOT USE_LUAJIT)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312282303.3BSN3kd5059601>