summaryrefslogtreecommitdiff
path: root/games/xjig/patches/patch-aa
blob: e2ce0a5b7929c080d53d120f912fd42f710a9f5d (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
$NetBSD: patch-aa,v 1.4 2003/04/27 18:23:28 cjep Exp $

--- Imakefile.orig	1996-07-24 20:48:27.000000000 +0100
+++ Imakefile
@@ -8,7 +8,7 @@ XCOMM with the optimize-options on gcc-2
 XCOMM optimization on your version, but if it doesn't work, a compiler bug
 XCOMM might be the reason...
 
-XCOMM           CXX = gcc -g
+CXX = gcc -O5 -I${X11BASE}/include
 
 XCOMM On some machines (like on linux) you can gain speed by using the
 XCOMM MIT-SHM extension for transfering images to the server via shared
@@ -27,7 +27,7 @@ XCOMM    RANG_CHECK = -DRANGE_CHECK
 
 XCOMM which default file should be loaded if no option is set
 
-        JIG_DEFAULT = \"tina.gif\"
+        JIG_DEFAULT = \"${PREFIX}/lib/xjig/tina.gif\"
 
 XCOMM #######################################################################
 
@@ -58,5 +58,6 @@ CleanTarget()
 xjig.o:
 	$(CXX) $(CXXFLAGS) -DJIG_DEFAULT=$(JIG_DEFAULT) -c xjig.C -o $@
 
-XCOMM .C.o:
-XCOMM 	$(CXX) $(CFLAGS) -c $< -o $@
+.SUFFIXES:	.C
+.C.o:
+	$(CXX) $(CXXFLAGS) -c $< -o $@