$NetBSD: patch-aa,v 1.4 1999/12/08 17:48:13 bouyer Exp $ --- Imakefile.orig Thu Jan 23 09:38:35 1997 +++ Imakefile Mon Sep 14 13:20:24 1998 @@ -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 the statement below and insert the correct path. XCOMM Make sure xpm.h can be referenced as -XPMINC = -I$(HOME)/include +XCOMM XPMINC = -I$(HOME)/include XPMLIB = -lXpm XCOMM You shouldn't have to change anything below this line. @@ -19,7 +19,7 @@ INCLUDES = -I. $(XPMINC) CXXDEFINES = $(XBILL_DEF) $(DEFS) $(INCS) -CCFLAGS = $(ALLDEFINES) -Wall -g +CCFLAGS = $(ALLDEFINES) -O $(CXXDEFINES) CXX = g++ $(CCFLAGS) CCC = $(CXX) @@ -136,6 +136,12 @@ 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)