summaryrefslogtreecommitdiff
path: root/games/xbill/patches/patch-aa
blob: 6c4ea14712423d96ba4d97ffe8b511028b915790 (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
$NetBSD: patch-aa,v 1.9 2005/10/23 22:57:55 rillig Exp $

--- Imakefile.orig	1997-01-23 10:38:35.000000000 -0600
+++ Imakefile
@@ -1,4 +1,4 @@
-XBILL_DIR = /var/lib/games/xbill/
+XBILL_DIR = $(PREFIX)/share/xbill/
 XCOMM XBILL_DIR = $(HOME)/.xbill/
 
 XCOMM Which widget set?  Motif looks slightly better; Athena is free.
@@ -10,7 +10,7 @@ XCOMM If you do not have libXpm installe
 XCOMM the statement below and insert the correct path.
 XCOMM Make sure xpm.h can be referenced as <X11/xpm.h>
 
-XPMINC = -I$(HOME)/include
+XCOMM XPMINC = -I$(HOME)/include
 XPMLIB = -lXpm
 
 XCOMM You shouldn't have to change anything below this line.
@@ -18,12 +18,10 @@ XCOMM You shouldn't have to change anyth
 XBILL_DEF = -DXBILL_HOME=\"$(XBILL_DIR)\"
 
 INCLUDES = -I. $(XPMINC)
-CXXDEFINES = $(XBILL_DEF) $(DEFS) $(INCS)
-CCFLAGS = $(ALLDEFINES) -Wall -g
 
-CXX = g++ $(CCFLAGS)
 CCC = $(CXX)
 CC = $(CXX)
+CCLINK = $(CXXLINK)
 
 #ifdef Use_Motif
   WIDGET = motif
@@ -35,7 +33,7 @@ CC = $(CXX)
 #endif
 
 LOCAL_LIBRARIES = $(WIDGETLIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
-DEFINES = -D$(WIDGET)
+DEFINES = -D$(WIDGET) $(XBILL_DEF)
 
 TARGET = xbill
 
@@ -136,6 +134,9 @@ XBMS =	bitmaps/apple.xbm \
 
 ComplexProgramTarget($(TARGET))
 
-InstallProgramWithFlags(scores, $(XBILL_DIR), -m 777)
+install::
+	mkdir -p $(XBILL_DIR)
+	${INSTALL} -c -s -m ${GAMEMODE} -o ${GAMEOWN} -g ${GAMEGRP} xbill $(PREFIX)/bin
+
 InstallMultiple ($(XPMS), $(XBILL_DIR)pixmaps)
 InstallMultiple ($(XBMS), $(XBILL_DIR)bitmaps)