aboutsummaryrefslogtreecommitdiff
path: root/games/eduke32
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-09-03 14:25:21 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-09-03 14:25:21 +0000
commitbe4893b43e87cdcd03fd6c476b7d179dc27ebfa2 (patch)
treeaafe385e35083c51378ef25494049fae0c5b8365 /games/eduke32
parent6b4de2698636ccc6f6b7a341e63f08d05a73cb01 (diff)
downloadports-be4893b43e87cdcd03fd6c476b7d179dc27ebfa2.tar.gz
ports-be4893b43e87cdcd03fd6c476b7d179dc27ebfa2.zip
Notes
Diffstat (limited to 'games/eduke32')
-rw-r--r--games/eduke32/files/patch-Makefile.common21
-rw-r--r--games/eduke32/files/patch-build_src_baselayer.c11
-rw-r--r--games/eduke32/files/patch-build_src_engine.c30
3 files changed, 62 insertions, 0 deletions
diff --git a/games/eduke32/files/patch-Makefile.common b/games/eduke32/files/patch-Makefile.common
new file mode 100644
index 000000000000..f6cafcb20acb
--- /dev/null
+++ b/games/eduke32/files/patch-Makefile.common
@@ -0,0 +1,21 @@
+--- Makefile.common.orig 2015-07-08 03:34:34 UTC
++++ Makefile.common
+@@ -258,7 +258,6 @@ ifndef LTO
+ endif
+ endif
+
+-COMMONFLAGS=$(ARCH)
+ COMPILERFLAGS=
+
+ ifeq ($(PACKAGE_REPOSITORY),0)
+@@ -278,8 +277,8 @@ ifneq ($(RELEASE)$(DEBUGANYWAY),10)
+ OPTIMIZATIONS += $(DEBUGFLAG)
+ endif
+
+-CONLYFLAGS=-std=gnu99 -Wimplicit -Werror-implicit-function-declaration
+-CPPONLYFLAGS= -fno-exceptions -fno-rtti -Wno-write-strings
++CONLYFLAGS=-std=gnu99 -Wimplicit
++CPPONLYFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings
+ ASFORMAT=elf$(SYSBITS)
+ ASFLAGS=-s -f $(ASFORMAT) #-g
+ LINKERFLAGS=
diff --git a/games/eduke32/files/patch-build_src_baselayer.c b/games/eduke32/files/patch-build_src_baselayer.c
new file mode 100644
index 000000000000..1961024a0988
--- /dev/null
+++ b/games/eduke32/files/patch-build_src_baselayer.c
@@ -0,0 +1,11 @@
+--- build/src/baselayer.c.orig 2015-07-25 17:23:17 UTC
++++ build/src/baselayer.c
+@@ -219,7 +219,7 @@ void calc_ylookup(int32_t bpl, int32_t l
+ {
+ Baligned_free(ylookup);
+
+- ylookup = (intptr_t *)Xaligned_alloc(16, lastyidx * sizeof(intptr_t));
++ posix_memalign(&ylookup, 16, lastyidx * sizeof(intptr_t));
+ #if !defined(NOASM) && !defined(GEKKO) && !defined(__ANDROID__)
+ nx_unprotect((intptr_t)ylookup, (intptr_t)ylookup + (lastyidx * sizeof(intptr_t)));
+ #endif
diff --git a/games/eduke32/files/patch-build_src_engine.c b/games/eduke32/files/patch-build_src_engine.c
new file mode 100644
index 000000000000..a7ccecc9d871
--- /dev/null
+++ b/games/eduke32/files/patch-build_src_engine.c
@@ -0,0 +1,30 @@
+--- build/src/engine.c.orig 2015-08-02 08:40:39 UTC
++++ build/src/engine.c
+@@ -5349,7 +5349,8 @@ static void drawalls(int32_t bunch)
+ static char fn[32], tmpbuf[80];
+ char purple = getclosestcol(63, 0, 63);
+ char yellow = getclosestcol(63, 63, 0);
+- char *bakframe = (char *)Xaligned_alloc(16, xdim*ydim);
++ char *bakframe;
++ posix_memalign(&bakframe, 16, xdim*ydim);
+
+ begindrawing(); //{{{
+ Bmemcpy(bakframe, (char *)frameplace, xdim*ydim);
+@@ -8142,7 +8143,7 @@ static void dosetaspect(void)
+ if (xdimen != oxdimen && voxoff[0][0])
+ {
+ if (distrecip == NULL)
+- distrecip = (uint32_t *)Xaligned_alloc(16, DISTRECIPSIZ * sizeof(uint32_t));
++ posix_memalign(&distrecip, 16, DISTRECIPSIZ * sizeof(uint32_t));
+
+ if (xdimen < 1 << 11)
+ {
+@@ -11654,7 +11655,7 @@ static void initsmost(void)
+ if (*dynarray[i].ptr)
+ Baligned_free(*dynarray[i].ptr);
+
+- *dynarray[i].ptr = Xaligned_alloc(16, dynarray[i].size);
++ posix_memalign(dynarray[i].ptr, 16, dynarray[i].size);
+ }
+
+ ysavecnt = YSAVES;