aboutsummaryrefslogtreecommitdiff
path: root/games/q2pro/files
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2007-01-20 16:08:29 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2007-01-20 16:08:29 +0000
commitc78fe46fff156b7810f1c45ac769993e0b986273 (patch)
tree6610301a67957fb14a35a5a5561ac34d558cb9c6 /games/q2pro/files
parent0cad1865218b65effd133c378e6ab6ae5897c795 (diff)
downloadports-c78fe46fff156b7810f1c45ac769993e0b986273.tar.gz
ports-c78fe46fff156b7810f1c45ac769993e0b986273.zip
- Disable x86 assembly code on non-i386.
- Add X86_ASM option. Reported by: pointyhat
Notes
Notes: svn path=/head/; revision=182864
Diffstat (limited to 'games/q2pro/files')
-rw-r--r--games/q2pro/files/patch-build__client.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/games/q2pro/files/patch-build__client.mk b/games/q2pro/files/patch-build__client.mk
index 38567ff80f91..fe098a95a368 100644
--- a/games/q2pro/files/patch-build__client.mk
+++ b/games/q2pro/files/patch-build__client.mk
@@ -1,10 +1,16 @@
---- ./build/client.mk.orig Mon Dec 25 17:07:02 2006
-+++ ./build/client.mk Mon Dec 25 17:07:02 2006
-@@ -42,7 +42,7 @@
+--- build/client.mk.orig Sat Jan 20 12:40:15 2007
++++ build/client.mk Sat Jan 20 12:40:20 2007
+@@ -41,8 +41,13 @@
+ # linux
#
SRCFILES_LINUX = sys_unix.c snd_linux.c cd_linux.c vid_sdl.c in_linux.c
++ifdef USE_X86_ASM
ASMFILES_LINUX = snd_mixa.s
-LDFLAGS_LINUX += -lz -ldl -lSDL
++else
++SRCFILES_LINUX += snd_mix.c
++CFLAGS_LINUX += -DC_ONLY
++endif
+LDFLAGS_LINUX += -lz `sdl-config --libs`
include ../../post.mk