summaryrefslogtreecommitdiff
path: root/games/powwow/patches/patch-ab
blob: ae0267ff913f1baad6d576e008c7f8ce96dbc020 (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
$NetBSD: patch-ab,v 1.5 2005/12/19 15:45:01 joerg Exp $

--- make_it.orig	2002-06-01 10:33:35.000000000 +0000
+++ make_it
@@ -52,11 +52,18 @@ case $OS in
                 CC='gcc'
                 CF='-O2 -fomit-frame-pointer -DUSE_RANDOM -DUSE_VT100 -DLINES=25'
                 LF='';;
-
+	NetBSD|Darwin|DragonFly)
+		echo "Making Powwow for $OS"
+		CC='gcc'
+		CF='-O2 -pipe -DUSE_SGTTY -DBSD_LIKE -DUSE_RANDOM -DUSE_REGEXP'
+		if [ ! -z "$POWWOW_DIR" ]; then
+		  CF="$CF -DPOWWOW_DIR=\\\"$POWWOW_DIR\\\""
+		fi
+	 	;;
 	*)
 		echo 'UNSUPPORTED OS!!! Trying with defaults.';;
 esac
-echo "make" $* "CC='$CC' CDEFS='$CF' LDFLAGS='$LF' "
+echo "make" $* "CC='$CC' CDEFS='$CF $CFLAGS' LDFLAGS='$LF' "
 
-make $* CC="${CC}" CDEFS="${CF}" LDFLAGS="${LF}"
+make $* CC="${CC}" CDEFS="${CF} ${CFLAGS}" LDFLAGS="${LF}"