Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
[PATCH] fix build with libpng 1.4.x
In 1.4.x the png_*_NULL defines are gone. Replace them with a normal
NULL instead.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
src/SDL/i_sshot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: prboom-2.5.0/src/SDL/i_sshot.c
===================================================================
--- prboom-2.5.0.orig/src/SDL/i_sshot.c
+++ prboom-2.5.0/src/SDL/i_sshot.c
@@ -231,7 +231,7 @@ int I_ScreenShot (const char *fname)
if (fp)
{
png_struct *png_ptr = png_create_write_struct(
- PNG_LIBPNG_VER_STRING, png_error_ptr_NULL, error_fn, warning_fn);
+ PNG_LIBPNG_VER_STRING, NULL, error_fn, warning_fn);
if (png_ptr)
{
@@ -279,7 +279,7 @@ int I_ScreenShot (const char *fname)
break;
}
}
- png_destroy_write_struct(&png_ptr, png_infopp_NULL);
+ png_destroy_write_struct(&png_ptr, NULL);
}
fclose(fp);
}

View File

@@ -0,0 +1,21 @@
configure: remove predefined -O2 optimization flag
CFLAGS_OPT variable forces to use -O2 optimization flag denying the
possibility to use different optimization flag values.
Remove -O2 flag from CFLAGS_OPT.
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
---
diff -urpN prboom-2.5.0.orig/configure.ac prboom-2.5.0/configure.ac
--- prboom-2.5.0.orig/configure.ac 2019-06-20 14:07:45.058481879 +0200
+++ prboom-2.5.0/configure.ac 2019-06-20 14:09:05.066238825 +0200
@@ -48,7 +48,7 @@ else
fi
dnl --- cph: work out flags to pass to compiler
-CFLAGS_OPT="-O2 -fomit-frame-pointer"
+CFLAGS_OPT="-fomit-frame-pointer"
AC_C_COMPILE_FLAGS(-Wall)
dnl --- Option to enable debugging
AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug],[turns on various debugging features, like range checking and internal heap diagnostics]),,enable_debug="no")

View File

@@ -0,0 +1,140 @@
From 92d44b6383a3e053feac2c820b8114873fcd798e Mon Sep 17 00:00:00 2001
From: entryway <entryway@localhost>
Date: Fri, 10 Jun 2011 19:59:18 +0000
Subject: [PATCH] gcc warnings: 'const **myargv' instead of 'const char * const
* myargv'
Upstream: https://github.com/coelckers/prboom-plus/commit/92d44b6383a3e053feac2c820b8114873fcd798e
[thomas: backport to 2.5.0]
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
---
src/SDL/i_main.c | 3 ++-
src/d_main.c | 20 ++++++++++++--------
src/m_argv.c | 3 +--
src/m_argv.h | 2 +-
4 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/SDL/i_main.c b/src/SDL/i_main.c
index 05cd655..1c19ef0 100644
--- a/src/SDL/i_main.c
+++ b/src/SDL/i_main.c
@@ -356,7 +356,8 @@ int main(int argc, char **argv)
#endif
myargc = argc;
- myargv = argv;
+ myargv = malloc(sizeof(myargv[0]) * myargc);
+ memcpy(myargv, argv, sizeof(myargv[0]) * myargc);
#ifdef _WIN32
if (!M_CheckParm("-nodraw")) {
diff --git a/src/d_main.c b/src/d_main.c
index 6d8493e..320e07a 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -870,7 +870,7 @@ static void FindResponseFile (void)
int indexinfile;
byte *file = NULL;
const char **moreargs = malloc(myargc * sizeof(const char*));
- const char **newargv;
+ char **newargv;
// proff 04/05/2000: Added for searching responsefile
char fname[PATH_MAX+1];
@@ -904,14 +904,15 @@ static void FindResponseFile (void)
int k;
lprintf(LO_ERROR,"\nResponse file empty!\n");
- newargv = calloc(sizeof(char *),MAXARGVS);
+ newargv = calloc(sizeof(newargv[0]),myargc);
newargv[0] = myargv[0];
for (k = 1,index = 1;k < myargc;k++)
{
if (i!=k)
newargv[index++] = myargv[k];
}
- myargc = index; myargv = newargv;
+ myargc = index;
+ myargv = newargv;
return;
}
@@ -919,8 +920,8 @@ static void FindResponseFile (void)
memcpy((void *)moreargs,&myargv[i+1],(index = myargc - i - 1) * sizeof(myargv[0]));
{
- const char *firstargv = myargv[0];
- newargv = calloc(sizeof(char *),MAXARGVS);
+ char *firstargv = myargv[0];
+ newargv = calloc(sizeof(newargv[0]), 1);
newargv[0] = firstargv;
}
@@ -949,16 +950,19 @@ static void FindResponseFile (void)
// Terminate string, realloc and add to argv
*p = 0;
+ newargv = realloc(newargv, sizeof(newargv[0]) * (indexinfile + 1));
newargv[indexinfile++] = realloc(s,strlen(s)+1);
}
} while(size > 0);
}
free(file);
+ newargv = realloc(newargv, sizeof(newargv[0]) * (indexinfile + index));
memcpy((void *)&newargv[indexinfile],moreargs,index*sizeof(moreargs[0]));
free((void *)moreargs);
- myargc = indexinfile+index; myargv = newargv;
+ myargc = indexinfile+index;
+ myargv = newargv;
// DISPLAY ARGS
//jff 9/3/98 use logical output routine
@@ -999,7 +1003,7 @@ static void DoLooseFiles(void)
int lmpcount = 0;
int dehcount = 0;
int i,j,p;
- const char **tmyargv; // use these to recreate the argv array
+ char **tmyargv; // use these to recreate the argv array
int tmyargc;
boolean skip[MAXARGVS]; // CPhipps - should these be skipped at the end
@@ -1060,7 +1064,7 @@ static void DoLooseFiles(void)
// Now go back and redo the whole myargv array with our stuff in it.
// First, create a new myargv array to copy into
- tmyargv = calloc(sizeof(char *),MAXARGVS);
+ tmyargv = calloc(sizeof(tmyargv[0]),MAXARGVS);
tmyargv[0] = myargv[0]; // invocation
tmyargc = 1;
diff --git a/src/m_argv.c b/src/m_argv.c
index 9392840..4fa1ed8 100644
--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -37,8 +37,7 @@
#include "m_argv.h"
int myargc;
-const char * const * myargv; // CPhipps - not sure if ANSI C allows you to
-// modify contents of argv, but I can't imagine it does.
+char **myargv;
//
// M_CheckParm
diff --git a/src/m_argv.h b/src/m_argv.h
index 5340c15..b1d5907 100644
--- a/src/m_argv.h
+++ b/src/m_argv.h
@@ -39,7 +39,7 @@
* MISC
*/
extern int myargc;
-extern const char * const * myargv; /* CPhipps - const * const * */
+extern char **myargv;
/* Returns the position of the given parameter in the arg list (0 if not found). */
int M_CheckParm(const char *check);
--
2.50.1

12
package/prboom/Config.in Normal file
View File

@@ -0,0 +1,12 @@
config BR2_PACKAGE_PRBOOM
bool "prboom"
select BR2_PACKAGE_SDL
select BR2_PACKAGE_SDL_MIXER
select BR2_PACKAGE_SDL_NET
help
PrBoom is a Doom client which allows you to play the good
old game on newer hardware. It even supports higher
resolution and better rendering, while still keeping the old
style alive.
http://prboom.sourceforge.net/

View File

@@ -0,0 +1,3 @@
# Locally computed:
sha256 226c1c470f8cc983327536404f405a1d026cf0a5188c694a1243cc8630014bae prboom-2.5.0.tar.gz
sha256 1cba07ce0f6d1366d84b7cc62b76966ba79075e5f379c1e230c3ff0635fa789f COPYING

61
package/prboom/prboom.mk Normal file
View File

@@ -0,0 +1,61 @@
################################################################################
#
# prboom
#
################################################################################
PRBOOM_VERSION = 2.5.0
PRBOOM_SITE = http://downloads.sourceforge.net/project/prboom/prboom%20stable/$(PRBOOM_VERSION)
PRBOOM_CONF_ENV = ac_cv_type_gid_t=yes ac_cv_type_uid_t=yes
PRBOOM_DEPENDENCIES = sdl sdl_net sdl_mixer
PRBOOM_LICENSE = GPL-2.0+
PRBOOM_LICENSE_FILES = COPYING
PRBOOM_AUTORECONF = YES
PRBOOM_CFLAGS = $(TARGET_CFLAGS)
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
PRBOOM_CFLAGS += -O0
endif
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_15),y)
PRBOOM_CFLAGS += -std=gnu18
endif
PRBOOM_CONF_ENV += CFLAGS="$(PRBOOM_CFLAGS)"
ifeq ($(BR2_PACKAGE_LIBPNG),y)
PRBOOM_DEPENDENCIES += libpng
endif
ifeq ($(BR2_STATIC_LIBS),y)
# SDL_mixer uses symbols from SDL, but ends up after it on the link
# cmdline. Fix it by forcing the SDL libs at the very end
PRBOOM_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/sdl-config --static-libs`"
endif
PRBOOM_CONF_OPTS = \
--oldincludedir=$(STAGING_DIR)/usr/include \
--with-sdl-prefix=$(STAGING_DIR)/usr \
--with-sdl-exec-prefix=$(STAGING_DIR)/usr \
--disable-cpu-opt \
--disable-sdltest \
--disable-gl
# endianness detection isn't used when cross compiling
define PRBOOM_BIG_ENDIAN_FIXUP
$(SED) 's,.*#.*undef WORDS_BIGENDIAN.*,#define WORDS_BIGENDIAN 1,g' \
$(PRBOOM_DIR)/config.h
endef
ifeq ($(BR2_ENDIAN),"BIG")
PRBOOM_POST_CONFIGURE_HOOKS += PRBOOM_BIG_ENDIAN_FIXUP
endif
define PRBOOM_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/src/prboom $(TARGET_DIR)/usr/games/prboom
$(INSTALL) -D $(@D)/src/prboom-game-server $(TARGET_DIR)/usr/games/prboom-game-server
$(INSTALL) -D $(@D)/data/prboom.wad $(TARGET_DIR)/usr/share/games/doom/prboom.wad
endef
$(eval $(autotools-package))