summaryrefslogtreecommitdiff
path: root/games/xdoom
diff options
context:
space:
mode:
Diffstat (limited to 'games/xdoom')
-rw-r--r--games/xdoom/Makefile8
-rw-r--r--games/xdoom/distinfo4
-rw-r--r--games/xdoom/patches/patch-ap19
3 files changed, 12 insertions, 19 deletions
diff --git a/games/xdoom/Makefile b/games/xdoom/Makefile
index d515cc3c43d..b35a4d3cdcf 100644
--- a/games/xdoom/Makefile
+++ b/games/xdoom/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2005/02/24 22:43:33 minskim Exp $
+# $NetBSD: Makefile,v 1.23 2005/02/24 23:07:34 minskim Exp $
DISTNAME= linuxdoom-1.10
PKGNAME= xdoom-1.10
@@ -24,6 +24,12 @@ USE_X11BASE= yes
USE_GNU_TOOLS+= make
MAKE_ENV+= X11BASE=${X11BASE} INSTALL_PREFIX=${X11PREFIX}
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -D__BIG_ENDIAN__=1
+.endif
+
.include "../../mk/ossaudio.buildlink3.mk"
post-extract:
diff --git a/games/xdoom/distinfo b/games/xdoom/distinfo
index bbeb6d9ce10..2318bb26947 100644
--- a/games/xdoom/distinfo
+++ b/games/xdoom/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2005/02/24 23:04:31 minskim Exp $
+$NetBSD: distinfo,v 1.13 2005/02/24 23:07:34 minskim Exp $
SHA1 (doomsrc.zip) = ffd07e0bd95b7c6ba0cd003fb6ff5ebd535d6f99
RMD160 (doomsrc.zip) = c88e57b3cc72ca8bbfacbe138f8a3c69a13bf2e1
@@ -21,7 +21,7 @@ SHA1 (patch-al) = a3c5b2ae0a820010339c06655f53778e5edfd498
SHA1 (patch-am) = 3b4606d1d040b8c9a9685ef66faf88598d64d3f2
SHA1 (patch-an) = 2c146291dcacf250986a8a014dd1b0d69bb8f825
SHA1 (patch-ao) = b2d0ae80d2832c0aac89da1a078afedd7d97362d
-SHA1 (patch-ap) = 14c78b5911fda030aa6d89426632ee0b42c4da96
+SHA1 (patch-ap) = fe23b3894de0a1c4e32b266377a420e329179beb
SHA1 (patch-aq) = 83b21a11e8007ea04fbedf10330887469b48dbab
SHA1 (patch-ar) = 9f7285b05baf484f6546cc6678088e02cd0ff7ea
SHA1 (patch-as) = 8d56b0a78a6cedb3b1ad63d9418081fb0277cf3d
diff --git a/games/xdoom/patches/patch-ap b/games/xdoom/patches/patch-ap
index b873f2a0534..f1cc9fb0906 100644
--- a/games/xdoom/patches/patch-ap
+++ b/games/xdoom/patches/patch-ap
@@ -1,21 +1,8 @@
-$NetBSD: patch-ap,v 1.2 2002/07/29 11:09:51 blymn Exp $
+$NetBSD: patch-ap,v 1.3 2005/02/24 23:07:34 minskim Exp $
---- linuxdoom-1.10/m_swap.h.orig Tue Dec 23 06:44:41 1997
+--- linuxdoom-1.10/m_swap.h.orig 1997-12-22 14:14:41.000000000 -0600
+++ linuxdoom-1.10/m_swap.h
-@@ -23,19 +23,23 @@
- #ifndef __M_SWAP__
- #define __M_SWAP__
-
-+#include <sys/endian.h>
-
- #ifdef __GNUG__
- #pragma interface
- #endif
-
-+#if BYTE_ORDER == BIG_ENDIAN
-+#define __BIG_ENDIAN__ 1
-+#endif
-
+@@ -32,10 +32,10 @@
// Endianess handling.
// WAD files are stored little endian.
#ifdef __BIG_ENDIAN__