git: e95a2d4d6388 - main - games/gemrb: Fix build with CMake >= 3.28.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Dec 2023 23:03:45 UTC
The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=e95a2d4d6388482e568260f9c895b2720c6e9248 commit e95a2d4d6388482e568260f9c895b2720c6e9248 Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2023-12-28 20:18:37 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2023-12-28 23:03:32 +0000 games/gemrb: Fix build with CMake >= 3.28.0 PR: 275730 Approved by: portmgr (blanket) --- .../patch-gemrb_plugins_TTFImporter_CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/games/gemrb/files/patch-gemrb_plugins_TTFImporter_CMakeLists.txt b/games/gemrb/files/patch-gemrb_plugins_TTFImporter_CMakeLists.txt new file mode 100644 index 000000000000..9d4f2f03dab9 --- /dev/null +++ b/games/gemrb/files/patch-gemrb_plugins_TTFImporter_CMakeLists.txt @@ -0,0 +1,20 @@ +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 + +--- gemrb/plugins/TTFImporter/CMakeLists.txt.orig 2022-08-29 19:10:39 UTC ++++ gemrb/plugins/TTFImporter/CMakeLists.txt +@@ -1,8 +1,8 @@ +-IF (FREETYPE_LIBRARY) ++IF (FREETYPE_LIBRARIES) + INCLUDE_DIRECTORIES( ${FREETYPE_INCLUDE_DIRS}) + INCLUDE_DIRECTORIES(${Iconv_INCLUDE_DIR}) + + ADD_GEMRB_PLUGIN (TTFImporter TTFFontManager.cpp TTFFont.cpp Freetype.cpp) +- TARGET_LINK_LIBRARIES( TTFImporter ${FREETYPE_LIBRARY} ) ++ TARGET_LINK_LIBRARIES(TTFImporter ${FREETYPE_LIBRARIES}) + TARGET_LINK_LIBRARIES(TTFImporter ${Iconv_LIBRARY} ${CHARSET_LIBRARY}) +-ENDIF (FREETYPE_LIBRARY) ++ENDIF (FREETYPE_LIBRARIES)