summaryrefslogtreecommitdiffhomepage
path: root/patches
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2021-08-26 20:43:59 +0200
committerØrjan Malde <red@foxi.me>2021-08-26 21:00:05 +0200
commita36ec531d21325b4be4538f28ca3ba7a9563e433 (patch)
treeb50edd51e34b637030696d04fa4e8337062f07f3 /patches
parent37a38e0b8a38e2406caf08e2910040f86e314ae2 (diff)
downloadmidipix_build-a36ec531d21325b4be4538f28ca3ba7a9563e433.tar.bz2
midipix_build-a36ec531d21325b4be4538f28ca3ba7a9563e433.tar.xz
groups/231.native_packages_etc.group: adds quake v1.0.9
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches')
-rw-r--r--patches/sdlquake-1.0.9.local.patch25
-rw-r--r--patches/sdlquake-1.0.9_pre.local.patch35
2 files changed, 60 insertions, 0 deletions
diff --git a/patches/sdlquake-1.0.9.local.patch b/patches/sdlquake-1.0.9.local.patch
new file mode 100644
index 00000000..b3f223b4
--- /dev/null
+++ b/patches/sdlquake-1.0.9.local.patch
@@ -0,0 +1,25 @@
+diff -ru sdlquake-1.0.9.orig/draw.c sdlquake-1.0.9/draw.c
+--- sdlquake-1.0.9.orig/draw.c 1999-12-22 00:53:24.000000000 +0100
++++ sdlquake-1.0.9/draw.c 2021-08-26 20:17:34.381572611 +0200
+@@ -557,6 +557,9 @@
+ #elif defined(__linux__)
+ sprintf (ver, "(Linux Quake %2.2f) %4.2f", (float)LINUX_VERSION, (float)VERSION);
+ dest = conback->data + 320*186 + 320 - 11 - 8*strlen(ver);
++#elif defined(__midipix__)
++ sprintf (ver, "(Midipix Quake) %4.2f", (float)VERSION);
++ dest = conback->data + 320*186 + 320 - 11 -8*strlen(ver);
+ #else
+ dest = conback->data + 320 - 43 + 320*186;
+ sprintf (ver, "%4.2f", VERSION);
+diff -ru sdlquake-1.0.9.orig/net.h sdlquake-1.0.9/net.h
+--- sdlquake-1.0.9.orig/net.h 1999-12-22 00:54:20.000000000 +0100
++++ sdlquake-1.0.9/net.h 2021-08-26 20:15:24.072736300 +0200
+@@ -238,7 +238,7 @@
+ extern int hostCacheCount;
+ extern hostcache_t hostcache[HOSTCACHESIZE];
+
+-#if !defined(_WIN32 ) && !defined (__linux__) && !defined (__sun__)
++#if !defined(_WIN32 ) && !defined (__linux__) && !defined(__midipix__) && !defined (__sun__)
+ #ifndef htonl
+ extern unsigned long htonl (unsigned long hostlong);
+ #endif
diff --git a/patches/sdlquake-1.0.9_pre.local.patch b/patches/sdlquake-1.0.9_pre.local.patch
new file mode 100644
index 00000000..f00d3a5b
--- /dev/null
+++ b/patches/sdlquake-1.0.9_pre.local.patch
@@ -0,0 +1,35 @@
+diff -ru sdlquake-1.0.9.orig/configure sdlquake-1.0.9/configure
+--- sdlquake-1.0.9.orig/configure 1999-12-28 19:54:25.000000000 +0100
++++ sdlquake-1.0.9/configure 2021-08-26 20:37:08.560929386 +0200
+@@ -1271,8 +1271,8 @@
+ if test "$SDL_CONFIG" = "no" ; then
+ no_sdl=yes
+ else
+- SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
+- SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
++ SDL_CFLAGS=`$PKG_CONFIG --cflags sdl`
++ SDL_LIBS=`$PKG_CONFIG --libs sdl`
+
+ sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
+diff -ru sdlquake-1.0.9.orig/Makefile.in sdlquake-1.0.9/Makefile.in
+--- sdlquake-1.0.9.orig/Makefile.in 1999-12-28 20:16:53.000000000 +0100
++++ sdlquake-1.0.9/Makefile.in 2021-08-26 20:12:02.680734842 +0200
+@@ -74,7 +74,7 @@
+
+ sdlquake_LDADD = @MATHLIB@ @INETLIB@
+
+-sdlquake_SOURCES = adivtab.h anorm_dots.h anorms.h asm_draw.h asm_i386.h block16.h block8.h bspfile.h cd_sdl.c cdaudio.h chase.c cl_demo.c cl_input.c cl_main.c cl_parse.c cl_tent.c clean.bat client.h cmd.c cmd.h common.c common.h conproc.h console.c console.h crc.c crc.h cvar.c cvar.h d_copy.S d_edge.c d_fill.c d_iface.h d_ifacea.h d_init.c d_local.h d_modech.c d_part.c d_polyse.c d_scan.c d_sky.c d_sprite.c d_surf.c d_zpoint.c dosasm.S dosisms.h draw.c draw.h host.c host_cmd.c input.h keys.c keys.h mathlib.c mathlib.h menu.c menu.h model.c model.h modelgen.h mpdosock.h net.h net_bsd.c net_bw.h net_dgrm.c net_dgrm.h net_loop.c net_loop.h net_main.c net_udp.c net_udp.h net_vcr.c net_vcr.h net_wso.c pr_cmds.c pr_comp.h pr_edict.c pr_exec.c progdefs.h progs.h protocol.h quakeasm.h quakedef.h r_aclip.c r_alias.c r_bsp.c r_draw.c r_edge.c r_efrag.c r_light.c r_local.h r_main.c r_misc.c r_part.c r_shared.h r_sky.c r_sprite.c r_surf.c r_vars.c r_varsa.S render.h resource.h sbar.c sbar.h scitech screen.c screen.h server.h snd_dma.c snd_mem.c snd_mix.c snd_sdl.c sound.h spritegn.h sv_main.c sv_move.c sv_phys.c sv_user.c sys.h sys_sdl.c vgamodes.h vid.h vid_sdl.c view.c view.h wad.c wad.h winquake.h world.c world.h zone.c zone.h $(X86_SRCS) $(NONX86_SRCS)
++sdlquake_SOURCES = adivtab.h anorm_dots.h anorms.h asm_draw.h asm_i386.h block16.h block8.h bspfile.h cd_sdl.c cdaudio.h chase.c cl_demo.c cl_input.c cl_main.c cl_parse.c cl_tent.c clean.bat client.h cmd.c cmd.h common.c common.h conproc.h console.c console.h crc.c crc.h cvar.c cvar.h d_edge.c d_fill.c d_iface.h d_ifacea.h d_init.c d_local.h d_modech.c d_part.c d_polyse.c d_scan.c d_sky.c d_sprite.c d_surf.c d_zpoint.c dosasm.S dosisms.h draw.c draw.h host.c host_cmd.c input.h keys.c keys.h mathlib.c mathlib.h menu.c menu.h model.c model.h modelgen.h mpdosock.h net.h net_bsd.c net_bw.h net_dgrm.c net_dgrm.h net_loop.c net_loop.h net_main.c net_udp.c net_udp.h net_vcr.c net_vcr.h net_wso.c pr_cmds.c pr_comp.h pr_edict.c pr_exec.c progdefs.h progs.h protocol.h quakeasm.h quakedef.h r_aclip.c r_alias.c r_bsp.c r_draw.c r_edge.c r_efrag.c r_light.c r_local.h r_main.c r_misc.c r_part.c r_shared.h r_sky.c r_sprite.c r_surf.c r_vars.c r_varsa.S render.h resource.h sbar.c sbar.h scitech screen.c screen.h server.h snd_dma.c snd_mem.c snd_mix.c snd_sdl.c sound.h spritegn.h sv_main.c sv_move.c sv_phys.c sv_user.c sys.h sys_sdl.c vgamodes.h vid.h vid_sdl.c view.c view.h wad.c wad.h winquake.h world.c world.h zone.c zone.h $(NONX86_SRCS)
+
+
+ X86_SRCS = snd_mixa.S sys_dosa.S d_draw.S d_draw16.S d_parta.S d_polysa.S d_scana.S d_spr8.S d_varsa.S math.S r_aclipa.S r_aliasa.S r_drawa.S r_edgea.S surf16.S surf8.S worlda.S
+@@ -117,7 +117,7 @@
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ sdlquake_OBJECTS = cd_sdl.o chase.o cl_demo.o cl_input.o cl_main.o \
+-cl_parse.o cl_tent.o cmd.o common.o console.o crc.o cvar.o d_copy.o \
++cl_parse.o cl_tent.o cmd.o common.o console.o crc.o cvar.o \
+ d_edge.o d_fill.o d_init.o d_modech.o d_part.o d_polyse.o d_scan.o \
+ d_sky.o d_sprite.o d_surf.o d_zpoint.o dosasm.o draw.o host.o \
+ host_cmd.o keys.o mathlib.o menu.o model.o net_bsd.o net_dgrm.o \