summaryrefslogtreecommitdiff
path: root/shells/zsh-current
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2007-11-07 09:59:27 +0000
committerbjs <bjs@pkgsrc.org>2007-11-07 09:59:27 +0000
commitb04d3c904351f0516ef00e81a0f23cf3d94c4184 (patch)
treecf1e42691189760becb96bb215640de5d744b35e /shells/zsh-current
parent50ede7c1458351f47d2a1489ce8a2dc459c037ea (diff)
downloadpkgsrc-b04d3c904351f0516ef00e81a0f23cf3d94c4184.tar.gz
Add support for pcre to options.mk if ZSH_STATIC is undefined. Bump rev.
Diffstat (limited to 'shells/zsh-current')
-rw-r--r--shells/zsh-current/Makefile4
-rw-r--r--shells/zsh-current/options.mk13
2 files changed, 15 insertions, 2 deletions
diff --git a/shells/zsh-current/Makefile b/shells/zsh-current/Makefile
index 9c8c07dfa26..9a7b1529286 100644
--- a/shells/zsh-current/Makefile
+++ b/shells/zsh-current/Makefile
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.12 2007/10/01 04:16:07 uebayasi Exp $
+# $NetBSD: Makefile,v 1.13 2007/11/07 09:59:27 bjs Exp $
.include "../../shells/zsh/Makefile.common"
+PKGREVISION= 1
+
ZSH_VERSION= 4.3.4
ZSH_MAINTAINER= uebayasi@NetBSD.org
diff --git a/shells/zsh-current/options.mk b/shells/zsh-current/options.mk
index db8222a85e9..9aedd214664 100644
--- a/shells/zsh-current/options.mk
+++ b/shells/zsh-current/options.mk
@@ -1,11 +1,22 @@
-# $NetBSD: options.mk,v 1.1 2006/03/11 13:20:15 uebayasi Exp $
+# $NetBSD: options.mk,v 1.2 2007/11/07 09:59:27 bjs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.zsh
PKG_SUPPORTED_OPTIONS= zsh-multibyte
PKG_SUGGESTED_OPTIONS=
+.if !defined(ZSH_STATIC)
+PKG_SUPPORTED_OPTIONS+= pcre
+.endif
+
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mzsh-multibyte)
CONFIGURE_ARGS+= --enable-multibyte
.endif
+
+.if !empty(PKG_OPTIONS:Mpcre)
+PCRE_CONFIG= ${BUILDLINK_PREFIX.pcre}/bin/pcre-config
+CONFIGURE_ARGS+= --with-pcre
+CONFIGURE_ENV+= PCRE_CONFIG=${PCRE_CONFIG:Q}
+. include "../../devel/pcre/buildlink3.mk"
+.endif