I haven't had any problem with this patch in amd64 and this shouldn't
affect other arches. It is definitely working here.
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/openarena/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 5 Nov 2008 21:25:28 -0000 1.3
+++ Makefile 10 Jan 2009 16:40:12 -0000
@@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.3 2008/11/05 21:25:28 weerd Exp $
-ONLY_FOR_ARCHS = i386 macppc
+ONLY_FOR_ARCHS = i386 macppc amd64
COMMENT-main = OpenArena client
COMMENT-server = OpenArena server
@@ -16,7 +16,7 @@
PKGNAME-server = openarena-server-${V}
PKGNAME-data = openarena-data-${V}
-PKG_ARCH-data = i386,macppc
+PKG_ARCH-data = i386,macppc,amd64
DISTNAME = oa${V:S/.//g}
DISTFILES = ${DISTNAME}.zip openarena-engine-${V}-1.tar.bz2
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/games/openarena/patches/patch-Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-Makefile
--- patches/patch-Makefile 27 Oct 2008 13:29:02 -0000 1.1.1.1
+++ patches/patch-Makefile 10 Jan 2009 16:40:12 -0000
@@ -1,7 +1,6 @@
-$OpenBSD: patch-Makefile,v 1.1.1.1 2008/10/27 13:29:02 weerd Exp $
---- Makefile.orig Thu Aug 7 00:52:08 2008
-+++ Makefile Fri Aug 22 21:27:21 2008
-@@ -143,8 +143,8 @@ endif
+--- Makefile.orig Sun Aug 10 05:22:37 2008
++++ Makefile Sun Jan 11 01:27:06 2009
+@@ -143,8 +143,8 @@
#############################################################################
@@ -12,7 +11,7 @@
CDIR=$(MOUNT_DIR)/client
SDIR=$(MOUNT_DIR)/server
RDIR=$(MOUNT_DIR)/renderer
-@@ -584,12 +584,11 @@ else # ifeq freebsd
+@@ -584,12 +584,11 @@
ifeq ($(PLATFORM),openbsd)
@@ -28,7 +27,16 @@
ifeq ($(USE_OPENAL),1)
BASE_CFLAGS += -DUSE_OPENAL
-@@ -603,8 +602,8 @@ ifeq ($(PLATFORM),openbsd)
+@@ -598,13 +597,17 @@
+ endif
+ endif
+
++ ifeq ($(ARCH),amd64)
++ BASE_CFLAGS += -D__WORDSIZE=64
++ endif
++
+ ifeq ($(USE_CODEC_VORBIS),1)
+ BASE_CFLAGS += -DUSE_CODEC_VORBIS
endif
BASE_CFLAGS += -DNO_VM_COMPILED -I/usr/X11R6/include -I/usr/local/include
@@ -39,7 +47,7 @@
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
-funroll-loops -fstrength-reduce
HAVE_VM_COMPILED=false
-@@ -781,13 +780,13 @@ endif #SunOS
+@@ -781,13 +784,13 @@
TARGETS =
ifneq ($(BUILD_SERVER),0)
@@ -56,7 +64,7 @@
endif
endif
-@@ -1450,12 +1449,12 @@ Q3POBJ += \
+@@ -1450,12 +1453,12 @@
Q3POBJ_SMP += \
$(B)/clientsmp/sdl_glimp.o
@@ -71,7 +79,7 @@
$(echo_cmd) "LD $@"
$(Q)$(CC) -o $@ $(Q3OBJ) $(Q3POBJ_SMP) $(CLIENT_LDFLAGS) \
$(THREAD_LDFLAGS) $(LDFLAGS) $(LIBSDLMAIN)
-@@ -1582,7 +1581,7 @@ else
+@@ -1582,7 +1585,7 @@
$(B)/ded/con_tty.o
endif
@@ -80,7 +88,7 @@
$(echo_cmd) "LD $@"
$(Q)$(CC) -o $@ $(Q3DOBJ) $(LDFLAGS)
-@@ -2041,17 +2040,17 @@ copyfiles: release
+@@ -2037,17 +2040,17 @@
-$(MKDIR) -p -m 0755 $(COPYDIR)/missionpack
ifneq ($(BUILD_CLIENT),0)