freebsd-ports/math/calc/files/patch-Makefile

83 lines
2 KiB
Text
Raw Normal View History

2007-02-07 16:29:30 +01:00
--- Makefile.orig Wed Feb 7 01:35:20 2007
+++ Makefile Wed Feb 7 14:54:34 2007
@@ -571,7 +571,7 @@
#INCDIR= /usr/local/include
#INCDIR= /dev/env/DJDIR/include
-INCDIR= /usr/include
+INCDIR= ${PREFIX}/include
# Where to install calc realted things
#
2007-02-07 16:29:30 +01:00
@@ -598,15 +598,15 @@
#
#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
2007-02-07 16:29:30 +01:00
@@ -680,7 +680,7 @@
#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
2007-02-07 16:29:30 +01:00
@@ -785,13 +785,13 @@
#
# 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=
#READLINE_LIB= -lreadline -lhistory -lncurses
#READLINE_LIB= -L/usr/gnu/lib -lreadline -lhistory -lncurses
-#READLINE_LIB= -L/usr/local/lib -lreadline -lhistory -lncurses
+READLINE_LIB= -lreadline -lhistory -lncurses
#
# For Apple OS X: install fink from http://fink.sourceforge.net
# and then do a 'fink install readline' and then use:
2007-02-07 16:29:30 +01:00
@@ -1008,13 +1008,13 @@
1999-12-26 00:02:30 +01:00
CCOPT= ${DEBUG} ${NO_SHARED}
CCMISC=
1999-12-26 00:02:30 +01:00
#
-CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
-ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
2007-02-07 16:29:30 +01:00
+CFLAGS+= -DCALC_SRC
+ICFLAGS= -DCALC_SRC
#
LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
ILDFLAGS=
#
-LCC= gcc
+LCC= cc
2007-02-07 16:29:30 +01:00
CC= ${PURIFY} ${LCC} ${CCWERR}
#
###
2007-02-07 16:29:30 +01:00
@@ -1573,6 +1573,7 @@
TARGETS= ${LICENSE} ${CALC_LIBS} custom/.all calc${EXT} sample/.all \
2007-02-07 16:29:30 +01:00
cal/.all help/.all help/builtin cscript/.all calc.1 calc.usage
+RM= rm
###
#