ports/161262: patch for activating libreadline in math/calc
Momchil Ivanov
momchil at xaxo.eu
Mon Oct 3 19:40:04 UTC 2011
>Number: 161262
>Category: ports
>Synopsis: patch for activating libreadline in math/calc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 03 19:40:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Momchil Ivanov
>Release:
>Organization:
>Environment:
>Description:
Update Makefile of the source of math/calc to compile with libreadline. This allows history searches and etc... from libreadline
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: files/patch-Makefile
===================================================================
--- files/patch-Makefile (revision 1091)
+++ files/patch-Makefile (working copy)
@@ -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
Index: Makefile
===================================================================
--- Makefile (revision 1091)
+++ Makefile (working copy)
@@ -7,6 +7,7 @@
PORTNAME= calc
PORTVERSION= 2.12.4.3
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list