From aefb6f71b089b308b2564ebf5111ba8da3c85d5e Mon Sep 17 00:00:00 2001 From: bsdcode Date: Mon, 19 Feb 2024 21:18:20 +0100 Subject: [PATCH] games/gemrb-devel: add new port This is the development version of the existing games/gemrb port. git add . --- games/Makefile | 1 + games/gemrb-devel/Makefile | 89 + games/gemrb-devel/distinfo | 5 + ...h-gemrb_plugins_TTFImporter_CMakeLists.txt | 20 + games/gemrb-devel/files/pkg-message.in | 24 + games/gemrb-devel/pkg-descr | 3 + games/gemrb-devel/pkg-plist | 2662 +++++++++++++++++ games/gemrb/Makefile | 2 + 8 files changed, 2806 insertions(+) create mode 100644 games/gemrb-devel/Makefile create mode 100644 games/gemrb-devel/distinfo create mode 100644 games/gemrb-devel/files/patch-gemrb_plugins_TTFImporter_CMakeLists.txt create mode 100644 games/gemrb-devel/files/pkg-message.in create mode 100644 games/gemrb-devel/pkg-descr create mode 100644 games/gemrb-devel/pkg-plist diff --git a/games/Makefile b/games/Makefile index 5b46ffd91..f51d32739 100644 --- a/games/Makefile +++ b/games/Makefile @@ -319,6 +319,7 @@ SUBDIR += gcompris-qt SUBDIR += gemdropx SUBDIR += gemrb + SUBDIR += gemrb-devel SUBDIR += genact SUBDIR += gigalomania SUBDIR += gillo diff --git a/games/gemrb-devel/Makefile b/games/gemrb-devel/Makefile new file mode 100644 index 000000000..7aa0ca45f --- /dev/null +++ b/games/gemrb-devel/Makefile @@ -0,0 +1,89 @@ +PORTNAME= gemrb +DISTVERSION= 0.9.2.20240214 +CATEGORIES= games emulators +PKGNAMESUFFIX= -devel + +MAINTAINER= bsdcode@disroot.org +COMMENT= GemRB (Game engine made with preRendered Background) +WWW= https://www.gemrb.org/ + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= cmake compiler:c++14-lang iconv python sdl shebangfix +SHEBANG_FILES= admin/extend2da.py +USE_GCC= yes # https://github.com/gemrb/gemrb/issues/1786 +USE_GITHUB= yes +GH_TAGNAME= 90eff5f +USE_LDCONFIG= yes +USE_SDL= sdl2 + +CONFLICTS_INSTALL= gemrb + +CMAKE_ARGS= -DCMAKE_BUILD_TYPE=Release \ + -DHAVE_LDEXPF=1 \ + -DLAYOUT=fhs \ + -DPYTHON_VERSION=Auto \ + -DSANITIZE=None \ + -DSDL_BACKEND=SDL2 +CMAKE_OFF= DISABLE_WERROR \ + INSOURCEBUILD \ + STATIC_LINK \ + USE_LIBVLC \ + USE_SDL_CONTROLLER_API \ + USE_TESTS \ + USE_TRACY + +SUB_FILES= pkg-message + +OPTIONS_DEFINE= DOCS +OPTIONS_DEFAULT= DEMO FREETYPE OPENAL OPENGL PNG SDLMIXER VORBIS + +OPTIONS_GROUP= AUDIO RESOURCE VIDEO +OPTIONS_GROUP_AUDIO= OPENAL SDLMIXER +OPTIONS_GROUP_RESOURCE= DEMO FREETYPE PNG VORBIS +OPTIONS_GROUP_VIDEO= OPENGL RESIND + +OPTIONS_SUB= yes + +DEMO_DESC= Optional demo assets +DEMO_GH_ACCOUNT= gemrb:demo +DEMO_GH_PROJECT= gemrb-assets:demo +DEMO_GH_TAGNAME= 5b5dcde:demo + +FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 +FREETYPE_CMAKE_BOOL= USE_FREETYPE + +OPENAL_USES= openal:al,alut +OPENAL_CMAKE_BOOL= USE_OPENAL + +OPENGL_USES= gl +OPENGL_USE= gl=egl +OPENGL_CMAKE_ON= -DOPENGL_BACKEND=OpenGL +OPENGL_CMAKE_OFF= -DOPENGL_BACKEND=None + +PNG_LIB_DEPENDS= libpng.so:graphics/png +PNG_CMAKE_BOOL= USE_PNG + +RESIND_DESC= Scale to screensize with pixelscaling +RESIND_CMAKE_BOOL= SDL_RESOLUTION_INDEPENDANCE + +SDLMIXER_DESC= Audio support via SDL_mixer +SDLMIXER_USE= sdl=mixer2 +SDLMIXER_CMAKE_BOOL= USE_SDLMIXER + +VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis +VORBIS_CMAKE_BOOL= USE_VORBIS + +PLIST_SUB= PORTVERSION=${PORTVERSION:R} + +post-extract-DEMO-on: + ${MKDIR} ${WRKSRC}/demo/music/mx0100 + ${INSTALL_DATA} ${WRKSRC_demo}/demo/audio/whispers-seamless.ogg ${WRKSRC}/demo/music/mx0100/mx0100a.ogg + ${MKDIR} ${WRKSRC}/demo/music/theme + ${INSTALL_DATA} ${WRKSRC_demo}/demo/audio/themea.ogg ${WRKSRC}/demo/music/theme + +post-install: + ${RM} ${STAGEDIR}${ETCDIR}/GemRB.cfg + +.include diff --git a/games/gemrb-devel/distinfo b/games/gemrb-devel/distinfo new file mode 100644 index 000000000..3fffca146 --- /dev/null +++ b/games/gemrb-devel/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1708369382 +SHA256 (gemrb-gemrb-0.9.2.20240214-90eff5f_GH0.tar.gz) = bef214409effc69f3ff8395ec06d34b797c84f01b44d00e5b55477339c4a4a66 +SIZE (gemrb-gemrb-0.9.2.20240214-90eff5f_GH0.tar.gz) = 14366690 +SHA256 (gemrb-gemrb-assets-5b5dcde_GH0.tar.gz) = 3e180e3ae063651bfabaab5795a946183212fd451986e3f4cac9203278283d23 +SIZE (gemrb-gemrb-assets-5b5dcde_GH0.tar.gz) = 11161448 diff --git a/games/gemrb-devel/files/patch-gemrb_plugins_TTFImporter_CMakeLists.txt b/games/gemrb-devel/files/patch-gemrb_plugins_TTFImporter_CMakeLists.txt new file mode 100644 index 000000000..9d4f2f03d --- /dev/null +++ b/games/gemrb-devel/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) diff --git a/games/gemrb-devel/files/pkg-message.in b/games/gemrb-devel/files/pkg-message.in new file mode 100644 index 000000000..26668d0fa --- /dev/null +++ b/games/gemrb-devel/files/pkg-message.in @@ -0,0 +1,24 @@ +[ +{ type: install + message: <