aboutsummaryrefslogtreecommitdiffstats
path: root/math/calc
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2011-10-04 04:57:36 +0800
committerjohans <johans@FreeBSD.org>2011-10-04 04:57:36 +0800
commit704b6cb276f24aca162e22605c9a9fab46d39715 (patch)
tree7ebc1d7990c1bacda39635639dd7d90ffb2ef784 /math/calc
parent27658728815b503c4fac4e93e834f918a7b5440b (diff)
downloadfreebsd-ports-graphics-704b6cb276f24aca162e22605c9a9fab46d39715.tar.gz
freebsd-ports-graphics-704b6cb276f24aca162e22605c9a9fab46d39715.tar.zst
freebsd-ports-graphics-704b6cb276f24aca162e22605c9a9fab46d39715.zip
Compile calc with readline support.
This allows history searches, vi-mode editing etc. PR: ports/161262 Submitted by: Momchil Ivanov <momchil@xaxo.eu>
Diffstat (limited to 'math/calc')
-rw-r--r--math/calc/Makefile1
-rw-r--r--math/calc/files/patch-Makefile21
2 files changed, 22 insertions, 0 deletions
diff --git a/math/calc/Makefile b/math/calc/Makefile
index 0bc997e9fee..d60973dc3fa 100644
--- a/math/calc/Makefile
+++ b/math/calc/Makefile
@@ -7,6 +7,7 @@
PORTNAME= calc
PORTVERSION= 2.12.4.3
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF
diff --git a/math/calc/files/patch-Makefile b/math/calc/files/patch-Makefile
index 7c757d90824..7eb11b81914 100644
--- a/math/calc/files/patch-Makefile
+++ b/math/calc/files/patch-Makefile
@@ -37,6 +37,27 @@
#MANDIR= /dev/env/DJDIR/man/man1
#MANDIR= /usr/man/u_man/man1
#MANDIR= /usr/contrib/man/man1
+@@ -837,14 +837,14 @@
+ #
+ # 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_EXTRAS=
++#READLINE_LIB=
++#READLINE_EXTRAS=
+ #
+-#READLINE_LIB= -lreadline
+-#READLINE_EXTRAS= -lhistory -lncurses
++READLINE_LIB= -lreadline
++READLINE_EXTRAS= -lhistory -lncurses
+ #
+ #READLINE_LIB= -L/usr/gnu/lib -lreadline
+ #READLINE_EXTRAS= -lhistory -lncurses
@@ -857,7 +857,7 @@
#CALCPAGER= more
#CALCPAGER= pg