summaryrefslogtreecommitdiff
path: root/games/hugo/patches/patch-aa
blob: a22c8d6c07448325cf8f9f9c0680c3c72165cf9b (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
$NetBSD: patch-aa,v 1.3 2004/08/27 06:29:07 jlam Exp $

--- Makefile.orig	2001-11-26 19:54:04.000000000 +1100
+++ Makefile
@@ -50,9 +50,9 @@ CFG_OPTIONS=-DDO_COLOR
 # Standard optimizations
 # Pentium with gcc 2.7.0 or better
 #CFLAGS=-O2 -Wall -fomit-frame-pointer -malign-functions=2 -malign-loops=2 -malign-jumps=2
-CFLAGS=-O2 -Wall
+#CFLAGS=-O2 -Wall
 # If you are using the ncurses package, define NCURSES for the compiler
-CFLAGS:=$(CFLAGS) -DNCURSES -DGCC_UNIX -DUSE_TEMPFILES
+CFLAGS:=$(CFLAGS) -DNCURSES -DGCC_UNIX -DUSE_TEMPFILES -DHUGO_LIBDIR=\"$(PREFIX)/share/hugo\"
 ifeq ($(MAKECMDGOALS), he)
 CFLAGS:=$(CFLAGS) -DNO_LATIN1_CHARSET
 endif
@@ -62,7 +62,8 @@ endif
 
 # If you need a special include path to get the right curses header, specify
 # it.
-CC=gcc -I/usr/local/include -Isource $(CFG_OPTIONS) $(CFLAGS)
+#CC=gcc -I/usr/local/include -Isource $(CFG_OPTIONS) $(CFLAGS)
+CC:=$(CC) -I$(PREFIX)/include -Isource $(CFG_OPTIONS) $(CFLAGS)
 
 # If using ncurses you need -lncurses, otherwise use -lcurses.  You may also
 # need -ltermcap or -ltermlib.  If you need to specify a particular path to
@@ -71,7 +72,7 @@ CC=gcc -I/usr/local/include -Isource $(C
 #HE_LIBS=-lcurses -ltermcap
 #HE_LIBS=-lcurses -ltermlib
 #HE_LIBS=-lcurses 
-HE_LIBS=-lncurses 
+HE_LIBS=-L$(PREFIX)/lib ${COMPILER_RPATH_FLAG}$(PREFIX)/lib -lncurses 
 
 # Shouldn't need to change anything below here.
 HC_H=source/hcheader.h source/htokens.h
@@ -97,17 +98,17 @@ clean:
 
 hc:	$(HC_OBJS)
 #	gcc -g -o hc $(HC_OBJS)
-	gcc -o hc $(HC_OBJS)
+	$(CC) -o hc $(HC_OBJS)
 
 he:	$(HE_OBJS)
 #	gcc -g -static -o he $(HE_OBJS) $(HE_LIBS)
 #	gcc -g -o he $(HE_OBJS) $(HE_LIBS)
-	gcc -o he $(HE_OBJS) $(HE_LIBS)
+	$(CC) -o he $(HE_OBJS) $(HE_LIBS)
 
 hd:	$(HE_OBJS) $(HD_OBJS)
 #	gcc -g -static -o hd $(HD_OBJS) $(HE_LIBS)
 #	gcc -g -o hd $(HD_OBJS) $(HE_LIBS)
-	gcc -o hd $(HE_OBJS) $(HD_OBJS) $(HE_LIBS)
+	$(CC) -o hd $(HE_OBJS) $(HD_OBJS) $(HE_LIBS)
 
 iotest:	source/iotest.c gcc/hegcc.c $(HE_H)
 	$(CC) -o iotest source/iotest.c hegcc.o stringfn.o $(HE_LIBS)