summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2009-12-02 09:30:49 +0000
committersnj <snj@pkgsrc.org>2009-12-02 09:30:49 +0000
commit2c468c0320bd920e9bb1affd60aac570f1b39d41 (patch)
tree595312a7c70c321d3c7bae99a2bc7f45c58c1aad /shells
parent582eff247116acc29f3077b88f8aa2d69e192c59 (diff)
downloadpkgsrc-2c468c0320bd920e9bb1affd60aac570f1b39d41.tar.gz
Add a readline option (disabled by default), as requested in PR pkg/30559.
While here, fix a spelling error in DESCR.
Diffstat (limited to 'shells')
-rw-r--r--shells/rc/DESCR2
-rw-r--r--shells/rc/Makefile13
2 files changed, 13 insertions, 2 deletions
diff --git a/shells/rc/DESCR b/shells/rc/DESCR
index db70f75af96..b4f0e0e0daf 100644
--- a/shells/rc/DESCR
+++ b/shells/rc/DESCR
@@ -2,7 +2,7 @@ rc - a unix version of the Plan-9 Shell.
FEEPING CREATURISM
-See the end of the man page, under "INCOMPATABILITIES" for (known?)
+See the end of the man page, under "INCOMPATIBILITIES" for (known?)
differences from the "real" rc. Most of these changes were necessary
to get rc to work in a reasonable fashion on a real (i.e., commercial,
non-Labs) UNIX system; a few were changes motivated by concern
diff --git a/shells/rc/Makefile b/shells/rc/Makefile
index 9126ae96a38..ccff6d249e7 100644
--- a/shells/rc/Makefile
+++ b/shells/rc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2008/04/06 00:14:28 christos Exp $
+# $NetBSD: Makefile,v 1.24 2009/12/02 09:30:49 snj Exp $
DISTNAME= rc-1.7
CATEGORIES= shells plan9
@@ -13,4 +13,15 @@ CONFIGURE_ARGS+= --with-history
PKG_SHELL= bin/rc
+PKG_OPTIONS_VAR= PKG_OPTIONS.rc
+PKG_SUPPORTED_OPTIONS= readline
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mreadline)
+.include "../../devel/readline/buildlink3.mk"
+CONFIGURE_ARGS+= --with-readline
+USE_GNU_READLINE= YES
+.endif
+
.include "../../mk/bsd.pkg.mk"