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.5 2004/04/30 20:13:12 tv Exp $
--- Imakefile.orig Thu Jan 23 11:38:35 1997
+++ 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,10 +18,7 @@ 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)
@@ -35,7 +32,7 @@ CC = $(CXX)
#endif
LOCAL_LIBRARIES = $(WIDGETLIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
-DEFINES = -D$(WIDGET)
+DEFINES = -D$(WIDGET) $(XBILL_DEF)
TARGET = xbill
@@ -136,6 +133,12 @@ XBMS = bitmaps/apple.xbm \
ComplexProgramTarget($(TARGET))
-InstallProgramWithFlags(scores, $(XBILL_DIR), -m 777)
+install::
+ mkdir -p $(XBILL_DIR)
+ if [ ! -d /var/games/xbill.scores ]; then \
+ ${INSTALL} -c -m 0664 -o bin -g games scores /var/games/xbill.scores ; \
+ fi
+ ${INSTALL} -c -s -m 2755 -o bin -g games xbill $(PREFIX)/bin
+
InstallMultiple ($(XPMS), $(XBILL_DIR)pixmaps)
InstallMultiple ($(XBMS), $(XBILL_DIR)bitmaps)
|