$NetBSD: patch-aa,v 1.4 2023/07/09 15:14:41 nia Exp $ - configure for pkgsrc - honor PKGMANDIR --- Makefile.orig 1994-05-01 22:51:17.000000000 +0000 +++ Makefile @@ -7,7 +7,7 @@ # name of the directory into which the binary should be installed # used only when you use 'make install' # -INSDIR=/usr/local/bin +INSDIR=${DESTDIR}${PREFIX} # # choose one from each of 1) 2) and 3) below @@ -18,21 +18,21 @@ INSDIR=/usr/local/bin # choose a) b) or c) # # a) for BSD derivitives, enable the following line -#OSFLAG= +OSFLAG= # b) for XENIX systems, enable the following line #OSFLAG=-DXENIX # b) for other A.T.&T. UNIX derivitives, enable the following line -OSFLAG=-DATT +#OSFLAG=-DATT # # 2) SELECTION OF TERMINAL CONTROL LIBRARY # choose either of a) b) or c) # # a) if you use termcap, enable the following lines -#TFLAG=-DM_TERMCAP -#TLIB=termcap +TFLAG=-DM_TERMCAP +TLIB=termcap # b) if you are using terminfo on a XENIX machine, enable the following lines #TFLAG=-DM_TERMINFO @@ -44,8 +44,8 @@ OSFLAG=-DATT #TLIB=curses # d) NONE OF THE ABOVE -TFLAG= -TLIB=m # just a link to mathlib; quick hack to avoid fixing Makefile +#TFLAG= +#TLIB=m # just a link to mathlib; quick hack to avoid fixing Makefile # # 3) SELECTION OF WINDOW MANAGER AVAILABILITY @@ -80,12 +80,12 @@ MANPAGE=spiff.1 # disable this line iff you like being honked at. DEFS = -DNOCHATTER -CFLAGS=-O $(OSFLAG) $(TFLAG) $(VISFLAG) $(DEFS) +CFLAGS+=$(OSFLAG) $(TFLAG) $(VISFLAG) $(DEFS) default: spiff spiff: $(OBJ) - $(CC) $(CFLAGS) -o spiff $(OBJ) $(VISLIB) -l$(TLIB) + $(CC) $(LDFLAGS) -o spiff $(OBJ) $(VISLIB) -l$(TLIB) spiff.o: spiff.c misc.h line.h token.h tol.h command.h edit.h parse.h compare.h flagdefs.h exact.h miller.h visual.h @@ -145,5 +145,5 @@ cmd: -$(CMD) $(CFILES) $(HFILES) $(OTHER) $(MANPAGE) install: mv spiff $(INSDIR)/bin - cp $(MANPAGE) $(INSDIR)/man/man1 + cp $(MANPAGE) $(INSDIR)/$(PKGMANDIR)/man1