From aa074e0315f1864012cebeb8b1aa182034273b59 Mon Sep 17 00:00:00 2001 From: Stefan Schlosser Date: Wed, 21 Feb 2024 19:08:49 +0100 Subject: [PATCH] games/gemrb-devel: add new port This is the development version of the existing games/gemrb port. --- games/Makefile | 1 + games/gemrb-devel/Makefile | 88 + games/gemrb-devel/distinfo | 5 + games/gemrb-devel/files/pkg-message.in | 24 + games/gemrb-devel/pkg-descr | 3 + games/gemrb-devel/pkg-plist | 2662 ++++++++++++++++++++++++ games/gemrb/Makefile | 2 + 7 files changed, 2785 insertions(+) create mode 100644 games/gemrb-devel/Makefile create mode 100644 games/gemrb-devel/distinfo 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..724664eaf --- /dev/null +++ b/games/gemrb-devel/Makefile @@ -0,0 +1,88 @@ +PORTNAME= gemrb +DISTVERSION= 0.9.2.20240221 +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_GITHUB= yes +GH_TAGNAME= 1624f45 +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..34c7cd4e1 --- /dev/null +++ b/games/gemrb-devel/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1708538064 +SHA256 (gemrb-gemrb-0.9.2.20240221-1624f45_GH0.tar.gz) = 88648899a6a192a4e253c1feee53d9e41ce306336664d4df6ca1c05a3d5c38be +SIZE (gemrb-gemrb-0.9.2.20240221-1624f45_GH0.tar.gz) = 14366939 +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/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: <