Skip to content

Commit

Permalink
games/ezquake: support for textures built into bsp maps up to 8192x81…
Browse files Browse the repository at this point in the history
…92 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)
  • Loading branch information
VVD committed Feb 21, 2024
1 parent 9b8eff5 commit b9da7fa
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 15 deletions.
5 changes: 4 additions & 1 deletion games/ezquake/Makefile
Original file line number Diff line number Diff line change
@@ -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/ \
Expand All @@ -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 \
Expand Down
6 changes: 3 additions & 3 deletions games/ezquake/files/patch-Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
--- 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
+CFLAGS_c += -DQ1DIR='"$(Q1DIR)"' -DDATADIR='"$(DATADIR)"'
LIBS_c += $(SDL2_LIBS)

# built-in requirements
@@ -379,7 +380,7 @@
@@ -379,7 +380,7 @@ endif
ifdef CONFIG_WINDOWS
TARG_c := ezquake.exe
else
Expand Down
4 changes: 2 additions & 2 deletions games/ezquake/files/patch-config_manager.c
Original file line number Diff line number Diff line change
@@ -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"};
Expand Down
12 changes: 6 additions & 6 deletions games/ezquake/files/patch-fs.c
Original file line number Diff line number Diff line change
@@ -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};
Expand All @@ -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 ();

Expand All @@ -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");
Expand All @@ -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
Expand All @@ -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
Expand Down
11 changes: 11 additions & 0 deletions games/ezquake/files/patch-gl__texture.c
Original file line number Diff line number Diff line change
@@ -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;

6 changes: 3 additions & 3 deletions games/ezquake/files/patch-host.c
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit b9da7fa

Please sign in to comment.