diff --git a/games/gzdoom/Makefile b/games/gzdoom/Makefile index bd7b23c72993..125329bf8d9e 100644 --- a/games/gzdoom/Makefile +++ b/games/gzdoom/Makefile @@ -1,47 +1,47 @@ PORTNAME= gzdoom PORTVERSION= 4.7.1 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONPREFIX= g CATEGORIES= games MAINTAINER= kevans@FreeBSD.org COMMENT= GL-enhanced source port for Doom-engine games WWW= https://zdoom.org/ LICENSE= BSD3CLAUSE GPLv3 LGPL3 LICENSE_COMB= multi LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/docs/licenses/bsd.txt LICENSE_FILE_GPLv3= ${WRKSRC}/docs/licenses/gpl.txt LICENSE_FILE_LGPL3= ${WRKSRC}/docs/licenses/lgpl.txt BUILD_DEPENDS= zip:archivers/zip LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libzmusic.so:audio/zmusic USES= cmake compiler:c++11-lang gl gnome jpeg pkgconfig sdl DATADIR= ${DMDIR}/${PORTNAME} USE_GITHUB= yes GH_ACCOUNT= coelckers CMAKE_ARGS= -DINSTALL_DOCS_PATH=${DOCSDIR} \ -DINSTALL_PK3_PATH=${DMDIR} \ -DINSTALL_SOUNDFONT_PATH=${DMDIR} USE_GNOME= atk cairo gdkpixbuf2 gtk20 pango USE_SDL= sdl2 USE_GL= gl glu CXXFLAGS+= -DSHARE_DIR=\\\"${DATADIR}\\\" LDFLAGS+= -Wl,--as-needed DESKTOP_ENTRIES= "GZDoom" "" "${PORTNAME}" "${PORTNAME}" "Game;Shooter;" "" .include "${.CURDIR}/../doom-data/Makefile.include" post-install: ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.xpm \ ${STAGEDIR}${PREFIX}/share/pixmaps .include diff --git a/games/gzdoom/files/patch-src_common_platform_posix_sdl_sdlglvideo.cpp b/games/gzdoom/files/patch-src_common_platform_posix_sdl_sdlglvideo.cpp new file mode 100644 index 000000000000..6e001316a22b --- /dev/null +++ b/games/gzdoom/files/patch-src_common_platform_posix_sdl_sdlglvideo.cpp @@ -0,0 +1,13 @@ +--- src/common/platform/posix/sdl/sdlglvideo.cpp.orig 2021-10-20 06:18:37 UTC ++++ src/common/platform/posix/sdl/sdlglvideo.cpp +@@ -396,9 +396,7 @@ SDLVideo::SDLVideo () + } + + // Fail gracefully if we somehow reach here after linking against a SDL2 library older than 2.0.6. +- SDL_version sdlver; +- SDL_GetVersion(&sdlver); +- if (!(sdlver.patch >= 6)) ++ if (!SDL_VERSION_ATLEAST(2, 0, 6)) + { + I_FatalError("Only SDL 2.0.6 or later is supported."); + }