games/ezquake: support for textures built into bsp maps up to 8192x8192 in size

1. Add support for textures built into bsp maps up to 8192x8192 in size.
2. Add LICENSE.
3. Recreate all patches with make makepatch.

Approved by:	arrowd (mentor, implicit)
This commit is contained in:
Vladimir Druzenko 2024-02-21 16:50:23 +03:00
parent 9b8eff5fb0
commit b9da7fa044
6 changed files with 29 additions and 15 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= ezquake
DISTVERSION= 3.2.3
PORTREVISION= 3
PORTREVISION= 4
PORTEPOCH= 2
CATEGORIES= games
MASTER_SITES= https://github.com/ezQuake/ezquake-source/archive/ \
@ -13,6 +13,9 @@ MAINTAINER= vvd@FreeBSD.org
COMMENT= Modern QuakeWorld client
WWW= https://www.ezquake.com/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcurl.so:ftp/curl \
libexpat.so:textproc/expat2 \
libjansson.so:devel/jansson \

View File

@ -1,6 +1,6 @@
--- Makefile.orig
--- Makefile.orig 2021-02-09 17:35:52 UTC
+++ Makefile
@@ -89,6 +89,7 @@
@@ -89,6 +89,7 @@ SDL2_CFLAGS ?= $(shell sdl2-config --cflags)
SDL2_LIBS ?= $(shell sdl2-config --libs)
CFLAGS_c += $(BUILD_DEFS) $(VER_DEFS) $(PATH_DEFS) $(SDL2_CFLAGS) -DNDEBUG -DJSS_CAM -DUSE_PR2 -DWITH_NQPROGS -DUSE_SDL2 -DWITH_ZIP
@ -8,7 +8,7 @@
LIBS_c += $(SDL2_LIBS)
# built-in requirements
@@ -379,7 +380,7 @@
@@ -379,7 +380,7 @@ endif
ifdef CONFIG_WINDOWS
TARG_c := ezquake.exe
else

View File

@ -1,6 +1,6 @@
--- config_manager.c.orig
--- config_manager.c.orig 2021-02-09 17:35:52 UTC
+++ config_manager.c
@@ -68,7 +68,7 @@
@@ -68,7 +68,7 @@ cvar_t cfg_save_sysinfo = {"cfg_save_sysinfo", "0"};
cvar_t cfg_save_cmdline = {"cfg_save_cmdline", "1"};
cvar_t cfg_backup = {"cfg_backup", "0"};
cvar_t cfg_legacy_exec = {"cfg_legacy_exec", "1"};

View File

@ -1,6 +1,6 @@
--- fs.c.orig
--- fs.c.orig 2021-02-09 17:35:52 UTC
+++ fs.c
@@ -63,6 +63,8 @@
@@ -63,6 +63,8 @@ char com_basedir[MAX_OSPATH]; // c:/quake
char com_homedir[MAX_PATH]; // something really long C:/Documents and Settings/qqshka
char userdirfile[MAX_OSPATH] = {0};
char com_userdir[MAX_OSPATH] = {0};
@ -9,7 +9,7 @@
int userdir_type = -1;
searchpath_t *fs_searchpaths = NULL;
@@ -616,6 +618,12 @@
@@ -616,6 +618,12 @@ void FS_SetGamedir (char *dir, qbool force)
// Flush all data, so it will be forced to reload.
Cache_Flush ();
@ -22,7 +22,7 @@
snprintf(com_gamedir, sizeof(com_gamedir), "%s/%s", com_basedir, dir);
FS_AddGameDirectory(com_gamedir, FS_LOAD_FILE_ALL);
@@ -699,6 +707,8 @@
@@ -699,6 +707,8 @@ void FS_InitFilesystemEx( qbool guess_cwd ) {
#elif defined(__linux__)
if (!Sys_fullpath(com_basedir, "/proc/self/exe", sizeof(com_basedir)))
Sys_Error("FS_InitFilesystemEx: Sys_fullpath failed");
@ -31,7 +31,7 @@
#else
com_basedir[0] = 0; // FIXME: MAC / FreeBSD
#endif
@@ -717,12 +727,11 @@
@@ -717,12 +727,11 @@ void FS_InitFilesystemEx( qbool guess_cwd ) {
strlcpy (com_basedir, COM_Argv(i + 1), sizeof(com_basedir));
}
else { // made com_basedir equa to cwd
@ -48,7 +48,7 @@
}
for (i = 0; i < (int) strlen(com_basedir); i++)
@@ -767,6 +776,14 @@
@@ -767,6 +776,14 @@ void FS_InitFilesystemEx( qbool guess_cwd ) {
}
// start up with id1 by default

View File

@ -0,0 +1,11 @@
--- gl_texture.c.orig 2021-02-09 17:35:52 UTC
+++ gl_texture.c
@@ -417,7 +417,7 @@ static void GL_Upload32 (unsigned *data, int width, in
static void GL_Upload8 (byte *data, int width, int height, int mode)
{
- static unsigned trans[640 * 480];
+ static unsigned trans[8192 * 8192];
int i, image_size, p;
unsigned *table;

View File

@ -1,6 +1,6 @@
--- host.c.orig
--- host.c.orig 2021-02-09 17:35:52 UTC
+++ host.c
@@ -333,16 +333,30 @@
@@ -333,16 +333,30 @@ void SYSINFO_Init(void)
SYSINFO_processor_description = cpu_model;
gettimeofday(&old_tp, NULL);
@ -31,7 +31,7 @@
if (gl_renderer && gl_renderer[0]) {
if (SYSINFO_3D_description != NULL) {
@@ -351,7 +365,7 @@
@@ -351,7 +365,7 @@ void SYSINFO_Init(void)
SYSINFO_3D_description = Q_strdup(gl_renderer);
}