$NetBSD: patch-aa,v 1.6 2006/07/04 16:19:28 drochner Exp $ --- Makefile.orig 2006-05-19 16:00:01.000000000 +0200 +++ Makefile @@ -571,7 +571,7 @@ HAVE_UNUSED= #INCDIR= /usr/local/include #INCDIR= /dev/env/DJDIR/include -INCDIR= /usr/include +INCDIR= ${PREFIX}/include # Where to install calc realted things # @@ -598,15 +598,15 @@ INCDIR= /usr/include # #BINDIR= /usr/local/bin #BINDIR= /dev/env/DJDIR/bin -BINDIR= /usr/bin +BINDIR= ${PREFIX}/bin #LIBDIR= /usr/local/lib #LIBDIR= /dev/env/DJDIR/lib -LIBDIR= /usr/lib +LIBDIR= ${PREFIX}/lib #CALC_SHAREDIR= /usr/local/lib/calc #CALC_SHAREDIR= /dev/env/DJDIR/share/calc -CALC_SHAREDIR= /usr/share/calc +CALC_SHAREDIR= ${PREFIX}/share/calc #CALC_INCDIR= /usr/local/include/calc #CALC_INCDIR= /dev/env/DJDIR/include/calc @@ -680,7 +680,7 @@ T= #MANDIR= #MANDIR= /usr/local/man/man1 #MANDIR= /usr/man/man1 -MANDIR= /usr/share/man/man1 +MANDIR= ${PREFIX}/man/man1 #MANDIR= /dev/env/DJDIR/man/man1 #MANDIR= /usr/man/u_man/man1 #MANDIR= /usr/contrib/man/man1 @@ -691,7 +691,7 @@ MANDIR= /usr/share/man/man1 # # Use CATDIR= to disable installation of the calc cat (formatted) page. # -CATDIR= +CATDIR= ${PREFIX}/man/cat1 #CATDIR= /usr/local/man/cat1 #CATDIR= /usr/local/catman/cat1 #CATDIR= /usr/man/cat1 @@ -712,9 +712,9 @@ MANEXT= 1 # # This is ignored if CATDIR is empty. # -CATEXT= 1 +#CATEXT= 1 #CATEXT= 1.gz -#CATEXT= 0 +CATEXT= 0 #CATEXT= l # how to format a man page @@ -740,8 +740,8 @@ CATEXT= 1 # and CATDIR to empty and ignore the NROFF, NROFF_ARG and MANMAKE # lines below. # -#NROFF= nroff -NROFF= +NROFF= nroff +#NROFF= #NROFF= groff NROFF_ARG= -man #NROFF_ARG= -mandoc @@ -785,10 +785,10 @@ CALCRC= ${CALC_SHAREDIR}/startup:~/.calc # # If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing. # -USE_READLINE= -#USE_READLINE= -DUSE_READLINE +#USE_READLINE= +USE_READLINE= -DUSE_READLINE # -READLINE_LIB= +READLINE_LIB= -lreadline -lncurses #READLINE_LIB= -lreadline -lhistory -lncurses #READLINE_LIB= -L/usr/gnu/lib -lreadline -lhistory -lncurses #READLINE_LIB= -L/usr/local/lib -lreadline -lhistory -lncurses @@ -834,7 +834,7 @@ CALCPAGER= less # #DEBUG= -O3 #DEBUG= -O3 -g -DEBUG= -O3 -g3 +#DEBUG= -O3 -g3 #DEBUG= -O3 -ipa #DEBUG= -O3 -g3 -ipa # @@ -1007,10 +1007,10 @@ CCWERR= CCOPT= ${DEBUG} ${NO_SHARED} CCMISC= # -CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC} -ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC} +CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC} ${CPPFLAGS} +ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC} ${CPPFLAGS} # -LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED} +LDFLAGS+= ${NO_SHARED} ${LD_NO_SHARED} ILDFLAGS= # LCC= gcc