| @@ -1,20 +1,30 @@ | | | @@ -1,20 +1,30 @@ |
1 | # $NetBSD: options.mk,v 1.2 2017/10/13 09:35:19 jperkin Exp $ | | 1 | # $NetBSD: options.mk,v 1.3 2019/03/14 09:45:25 wiz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.zsh | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.zsh |
4 | PKG_SUPPORTED_OPTIONS= static | | 4 | PKG_SUPPORTED_OPTIONS= debug static |
5 | | | 5 | |
6 | .include "../../mk/bsd.options.mk" | | 6 | .include "../../mk/bsd.options.mk" |
7 | | | 7 | |
| | | 8 | .if !empty(PKG_OPTIONS:Mdebug) |
| | | 9 | CONFIGURE_ARGS+= --enable-zsh-debug |
| | | 10 | CONFIGURE_ARGS+= --enable-zsh-hash-debug |
| | | 11 | CONFIGURE_ARGS+= --enable-zsh-heap-debug |
| | | 12 | CONFIGURE_ARGS+= --enable-zsh-mem |
| | | 13 | CONFIGURE_ARGS+= --enable-zsh-mem-debug |
| | | 14 | CONFIGURE_ARGS+= --enable-zsh-mem-warning |
| | | 15 | CONFIGURE_ARGS+= --enable-zsh-secure-free |
| | | 16 | .endif |
| | | 17 | |
8 | PLIST_VARS+= dynamic | | 18 | PLIST_VARS+= dynamic |
9 | .if !empty(PKG_OPTIONS:Mstatic) | | 19 | .if !empty(PKG_OPTIONS:Mstatic) |
10 | CONFIGURE_ARGS+= --disable-dynamic | | 20 | CONFIGURE_ARGS+= --disable-dynamic |
11 | . if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS" | | 21 | . if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS" |
12 | LDFLAGS+= -static | | 22 | LDFLAGS+= -static |
13 | . endif | | 23 | . endif |
14 | .else | | 24 | .else |
15 | PLIST.dynamic= yes | | 25 | PLIST.dynamic= yes |
16 | .endif | | 26 | .endif |
17 | PRINT_PLIST_AWK+= {if ($$0 ~ /\.so$$/) {$$0 = "$${PLIST.dynamic}" $$0;}} | | 27 | PRINT_PLIST_AWK+= {if ($$0 ~ /\.so$$/) {$$0 = "$${PLIST.dynamic}" $$0;}} |
18 | PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/tcp/) {$$0 = "$${PLIST.dynamic}" $$0;}} | | 28 | PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/tcp/) {$$0 = "$${PLIST.dynamic}" $$0;}} |
19 | PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/zf/) {$$0 = "$${PLIST.dynamic}" $$0;}} | | 29 | PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/zf/) {$$0 = "$${PLIST.dynamic}" $$0;}} |
20 | PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/zsh-newuser/) {$$0 = "$${PLIST.dynamic}" $$0;}} | | 30 | PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/zsh-newuser/) {$$0 = "$${PLIST.dynamic}" $$0;}} |