aboutsummaryrefslogtreecommitdiff
path: root/games/uhexen
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2005-05-03 11:10:38 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2005-05-03 11:10:38 +0000
commit29c2e5033c8a1a694c27292d3b81d0b385d1ac87 (patch)
treea5e40076058ee883826e7f4fa89207772d8ab961 /games/uhexen
parentc3d216f7dca32f3cf491114307cf6d27a3639dfd (diff)
downloadports-29c2e5033c8a1a694c27292d3b81d0b385d1ac87.tar.gz
ports-29c2e5033c8a1a694c27292d3b81d0b385d1ac87.zip
Notes
Diffstat (limited to 'games/uhexen')
-rw-r--r--games/uhexen/Makefile4
-rw-r--r--games/uhexen/files/patch-src::m_misc.c43
2 files changed, 43 insertions, 4 deletions
diff --git a/games/uhexen/Makefile b/games/uhexen/Makefile
index de5930190185..28eb6c89a9ab 100644
--- a/games/uhexen/Makefile
+++ b/games/uhexen/Makefile
@@ -23,10 +23,6 @@ OPTIONS= NOWAD "Do not install demo-version WAD file" off
.include <bsd.port.pre.mk>
-.if ${ARCH} != "i386"
-BROKEN= "Does not compile on !i386"
-.endif
-
.if !defined(WITH_NOWAD)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} hexen.zip
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
diff --git a/games/uhexen/files/patch-src::m_misc.c b/games/uhexen/files/patch-src::m_misc.c
new file mode 100644
index 000000000000..7caa595b3604
--- /dev/null
+++ b/games/uhexen/files/patch-src::m_misc.c
@@ -0,0 +1,43 @@
+--- src/m_misc.c.orig Tue May 3 10:56:39 2005
++++ src/m_misc.c Tue May 3 10:57:24 2005
+@@ -440,7 +440,7 @@
+ {
+ char *name;
+ int *location;
+- int defaultvalue;
++ intptr_t defaultvalue;
+ int scantranslate; // PC scan code hack
+ int untranslated; // lousy hack
+ } default_t;
+@@ -503,20 +503,20 @@
+
+ #define DEFAULT_SAVEPATH "hexndata/"
+
+- { "savedir", (int *) &SavePath, (int) DEFAULT_SAVEPATH },
++ { "savedir", (int *) &SavePath, (intptr_t) DEFAULT_SAVEPATH },
+
+ { "messageson", (int *) &messageson, 1 },
+ { "speed_lock", (int *) &speed_lock, 1 },
+- { "chatmacro0", (int *) &chat_macros[0], (int) HUSTR_CHATMACRO0 },
+- { "chatmacro1", (int *) &chat_macros[1], (int) HUSTR_CHATMACRO1 },
+- { "chatmacro2", (int *) &chat_macros[2], (int) HUSTR_CHATMACRO2 },
+- { "chatmacro3", (int *) &chat_macros[3], (int) HUSTR_CHATMACRO3 },
+- { "chatmacro4", (int *) &chat_macros[4], (int) HUSTR_CHATMACRO4 },
+- { "chatmacro5", (int *) &chat_macros[5], (int) HUSTR_CHATMACRO5 },
+- { "chatmacro6", (int *) &chat_macros[6], (int) HUSTR_CHATMACRO6 },
+- { "chatmacro7", (int *) &chat_macros[7], (int) HUSTR_CHATMACRO7 },
+- { "chatmacro8", (int *) &chat_macros[8], (int) HUSTR_CHATMACRO8 },
+- { "chatmacro9", (int *) &chat_macros[9], (int) HUSTR_CHATMACRO9 }
++ { "chatmacro0", (int *) &chat_macros[0], (intptr_t) HUSTR_CHATMACRO0 },
++ { "chatmacro1", (int *) &chat_macros[1], (intptr_t) HUSTR_CHATMACRO1 },
++ { "chatmacro2", (int *) &chat_macros[2], (intptr_t) HUSTR_CHATMACRO2 },
++ { "chatmacro3", (int *) &chat_macros[3], (intptr_t) HUSTR_CHATMACRO3 },
++ { "chatmacro4", (int *) &chat_macros[4], (intptr_t) HUSTR_CHATMACRO4 },
++ { "chatmacro5", (int *) &chat_macros[5], (intptr_t) HUSTR_CHATMACRO5 },
++ { "chatmacro6", (int *) &chat_macros[6], (intptr_t) HUSTR_CHATMACRO6 },
++ { "chatmacro7", (int *) &chat_macros[7], (intptr_t) HUSTR_CHATMACRO7 },
++ { "chatmacro8", (int *) &chat_macros[8], (intptr_t) HUSTR_CHATMACRO8 },
++ { "chatmacro9", (int *) &chat_macros[9], (intptr_t) HUSTR_CHATMACRO9 }
+ };
+
+ int numdefaults;