summaryrefslogtreecommitdiffstats
path: root/games/xevil/files/patch-aa
blob: a786c4ed1900865da80140e9a13a9d017ebd0c7a (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
--- config.mk.orig	Sun Mar 23 00:08:58 2003
+++ config.mk	Fri Nov 24 15:44:19 2006
@@ -34,7 +34,7 @@
 # You can add -DNDEBUG to speed up a release build by removing the assert() 
 # calls.  But, on a really obscure Linux machine, this caused Xlib to blow up 
 # internally, so you do so at your own risk.
-DEBUG_OPT   =   -O #-DNDEBUG
+DEBUG_OPT   =   -DNDEBUG
 
 LINK_OPT    =	
 
@@ -83,7 +83,9 @@
 #### Attempt to guesss the host architecture using the HOSTYPE and hostype
 # variables.  Then call self with the architecture name.
 default:
-	@if [ $${HOSTTYPE-bob} != bob ] ; then \
+	@if [ $${OPSYS-bob} != bob ]; then \
+		archit=$$OPSYS ; \
+	elif [ $${HOSTTYPE-bob} != bob ] ; then \
 		archit=$$HOSTTYPE ; \
 	elif [ $${hosttype-bob} != bob ] ; then \
 		archit=$$hosttype ; \
@@ -161,9 +163,9 @@
 # The -DMSEC_PER_CLOCK=8 is kind of a hack, take it out if the game speed of 
 # XEvil is all screwed up.
 freebsd:
-	@$(MAKE) CC="c++" \
-CFLAGS="-DUSE_RANDOM -DPROTECTED_IS_PUBLIC -DMSEC_PER_CLOCK=8 -DUNAME_USR_BIN" \
-INCL_DIRS="-I/usr/X11R6/include" LIBS_DIRS="-L/usr/X11R6/lib" \
+	@$(MAKE) CC="${CXX}" \
+CFLAGS="-DUSE_RANDOM -DUSE_UINT_NET_LENGTH -DUNAME_USR_BIN ${CXXFLAGS}" \
+INCL_DIRS="-I$(LOCALBASE)/include" LIBS_DIRS="-L$(LOCALBASE)/lib" \
 OBJ_DIR=$(DEPTH)/x11/FREEBSD PCKG_NAME="freebsd" \
 LIBS="-lXpm -lX11 -lm" $(TARGETS)
 
OpenPOWER on IntegriCloud