Merge from vendor branch TNF:
[pkgsrc.git] / games / xbill / patches / patch-aa
1 $NetBSD: patch-aa,v 1.3 1998/09/30 08:51:30 tron Exp $
2
3 --- Imakefile.orig      Thu Jan 23 09:38:35 1997
4 +++ Imakefile   Mon Sep 14 13:20:24 1998
5 @@ -1,4 +1,4 @@
6 -XBILL_DIR = /var/lib/games/xbill/
7 +XBILL_DIR = $(PREFIX)/share/xbill/
8  XCOMM XBILL_DIR = $(HOME)/.xbill/
9  
10  XCOMM Which widget set?  Motif looks slightly better; Athena is free.
11 @@ -10,7 +10,7 @@
12  XCOMM the statement below and insert the correct path.
13  XCOMM Make sure xpm.h can be referenced as <X11/xpm.h>
14  
15 -XPMINC = -I$(HOME)/include
16 +XCOMM XPMINC = -I$(HOME)/include
17  XPMLIB = -lXpm
18  
19  XCOMM You shouldn't have to change anything below this line.
20 @@ -19,7 +19,7 @@
21  
22  INCLUDES = -I. $(XPMINC)
23  CXXDEFINES = $(XBILL_DEF) $(DEFS) $(INCS)
24 -CCFLAGS = $(ALLDEFINES) -Wall -g
25 +CCFLAGS = $(ALLDEFINES) -O $(CXXDEFINES)
26  
27  CXX = g++ $(CCFLAGS)
28  CCC = $(CXX)
29 @@ -136,6 +136,12 @@
30  
31  ComplexProgramTarget($(TARGET))
32  
33 -InstallProgramWithFlags(scores, $(XBILL_DIR), -m 777)
34 +install::
35 +       mkdir -p $(XBILL_DIR)
36 +       if [ ! -d /var/games/xbill.scores ]; then \
37 +               ${INSTALL} -c -m 0664 -o bin -g games scores /var/games/xbill.scores ; \
38 +       fi
39 +       ${INSTALL} -c -s -m 2755 -o bin -g games xbill $(PREFIX)/bin
40 +
41  InstallMultiple ($(XPMS), $(XBILL_DIR)pixmaps)
42  InstallMultiple ($(XBMS), $(XBILL_DIR)bitmaps)