summaryrefslogtreecommitdiff
path: root/lang/gawk
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-06-15 00:32:27 +0000
committersbd <sbd@pkgsrc.org>2012-06-15 00:32:27 +0000
commit1fc7be440013e61cadac68d4c81cb54ed50ce45c (patch)
tree3e1ca57edca7034bba6cd1f731555dcac88e6087 /lang/gawk
parentebbb80b3bc178a30a8fe6bcfd3383ba6eac06f58 (diff)
downloadpkgsrc-1fc7be440013e61cadac68d4c81cb54ed50ce45c.tar.gz
Add readline option.
Bump PKGREVISION.
Diffstat (limited to 'lang/gawk')
-rw-r--r--lang/gawk/Makefile4
-rw-r--r--lang/gawk/options.mk11
2 files changed, 11 insertions, 4 deletions
diff --git a/lang/gawk/Makefile b/lang/gawk/Makefile
index 65da5a18dd0..55a3a68b196 100644
--- a/lang/gawk/Makefile
+++ b/lang/gawk/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.49 2012/06/15 00:29:27 sbd Exp $
+# $NetBSD: Makefile,v 1.50 2012/06/15 00:32:27 sbd Exp $
DISTNAME= gawk-4.0.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gawk/}
EXTRACT_SUFX= .tar.xz
diff --git a/lang/gawk/options.mk b/lang/gawk/options.mk
index 4d66a789bf1..a7f3c319ae6 100644
--- a/lang/gawk/options.mk
+++ b/lang/gawk/options.mk
@@ -1,10 +1,17 @@
-# $NetBSD: options.mk,v 1.1 2012/06/15 00:29:27 sbd Exp $
+# $NetBSD: options.mk,v 1.2 2012/06/15 00:32:27 sbd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gawk
-PKG_SUPPORTED_OPTIONS= portals
+PKG_SUPPORTED_OPTIONS= portals readline
+PKG_SUGGESTED_OPTIONS= readline
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mportals)
CONFIGURE_ARGS+= --enable-portals
.endif
+
+.if !empty(PKG_OPTIONS:Mreadline)
+.include "../../devel/readline/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-readline
+.endif