summaryrefslogtreecommitdiff
path: root/shells/zsh
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2015-06-04 15:08:14 +0000
committerryoon <ryoon@pkgsrc.org>2015-06-04 15:08:14 +0000
commit1c39b71905b5629a1074edc6fc08e069ad2b3616 (patch)
tree3848357d3a9db93fcfd3971260a4adfc1b6759d9 /shells/zsh
parent3e459bb714b359456bc9f9d4914feeafaf3941b4 (diff)
downloadpkgsrc-1c39b71905b5629a1074edc6fc08e069ad2b3616.tar.gz
Convert ZSH_STATIC to PKG_OPTIONS.zsh=static.
Diffstat (limited to 'shells/zsh')
-rw-r--r--shells/zsh/Makefile.common14
1 files changed, 7 insertions, 7 deletions
diff --git a/shells/zsh/Makefile.common b/shells/zsh/Makefile.common
index 660c55393ef..2415b4ff6de 100644
--- a/shells/zsh/Makefile.common
+++ b/shells/zsh/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.74 2015/02/02 13:54:59 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.75 2015/06/04 15:08:14 ryoon Exp $
# used by shells/zsh/Makefile
# used by shells/zsh-current/Makefile
@@ -16,7 +16,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-etcdir=${PKG_SYSCONFDIR:Q}
USE_LANGUAGES= c c99
-USE_TOOLS+= makeinfo
+USE_TOOLS+= awk makeinfo
INFO_FILES= yes
TEXINFO_REQD= 4.0
@@ -40,10 +40,11 @@ PLIST_VARS+= xattr
PLIST.xattr= yes
.endif
-# Handle any PKG_OPTIONS that this package might have.
-.sinclude "options.mk"
+PKG_OPTIONS_VAR= PKG_OPTIONS.zsh
+PKG_SUPPORTED_OPTIONS= static
+
+.include "../../mk/bsd.options.mk"
-BUILD_DEFS+= ZSH_STATIC
MAKE_JOBS_SAFE= no
INSTALL_TARGET= install install.info
PKG_SHELL= bin/zsh
@@ -107,8 +108,7 @@ PLIST.curses= yes
# XXXUEBAYASI old make(1) has problems to handle :?true_str:false_str
#_ZSH_LINKAGE= ${ZSH_STATIC:M[Yy][Ee][Ss]:?static:dynamic} # static / dynamic
-ZSH_STATIC?= no
-.if !empty(ZSH_STATIC:M[Yy][Ee][Ss])
+.if !empty(PKG_OPTIONS:Mstatic)
_ZSH_LINKAGE= static
.else
_ZSH_LINKAGE= dynamic