summaryrefslogtreecommitdiff
path: root/games-fps/openarena/files/openarena-0.8.8-makefile.patch
blob: d72bbe79b29d013233a22ba36bd2c443164520fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Julian Ospald <hasufell@gentoo.org>
Date: Thu May 17 23:34:20 UTC 2012
Subject: flags, arch

--- openarena-engine-source-0.8.8/Makefile
+++ openarena-engine-source-0.8.8/Makefile
@@ -73,6 +73,10 @@
 
 ifndef ARCH
 ARCH=$(COMPILE_ARCH)
+else
+  ifeq ($(ARCH),amd64)
+    ARCH=x86_64
+  endif
 endif
 export ARCH
 
@@ -263,8 +267,7 @@
   endif
   endif
 
-  BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
-    -pipe -DUSE_ICON
+  BASE_CFLAGS = -fno-strict-aliasing -DUSE_ICON -I.
   CLIENT_CFLAGS = $(SDL_CFLAGS)
   SERVER_CFLAGS =
 
@@ -335,7 +338,7 @@
   THREAD_LIBS=-lpthread
   LIBS=-ldl -lm
 
-  CLIENT_LIBS=$(SDL_LIBS) -lGL
+  CLIENT_LIBS=$(SDL_LIBS) -lGL -ljpeg
 
   ifeq ($(USE_OPENAL),1)
     ifneq ($(USE_OPENAL_DLOPEN),1)