| @@ -1,34 +1,39 @@ | | | @@ -1,34 +1,39 @@ |
1 | # $NetBSD: options.mk,v 1.11 2020/01/16 22:45:45 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.12 2020/01/20 17:42:53 jperkin Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.openssl | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.openssl |
4 | PKG_SUPPORTED_OPTIONS= idea md2 mdc2 rc5 zlib threads | | 4 | PKG_SUPPORTED_OPTIONS= idea md2 mdc2 rc5 zlib threads |
5 | PKG_SUGGESTED_OPTIONS= idea md2 mdc2 rc5 threads | | 5 | PKG_SUGGESTED_OPTIONS= idea md2 mdc2 rc5 threads |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
9 | PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} | | 9 | PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} |
10 | | | 10 | |
11 | # | | 11 | # |
12 | # Support optional algorithms | | 12 | # Support optional algorithms |
13 | # | | 13 | # |
14 | .for alg in idea md2 mdc2 rc5 | | 14 | .for alg in idea md2 mdc2 rc5 |
15 | . if !empty(PKG_OPTIONS:M${alg}) | | 15 | . if !empty(PKG_OPTIONS:M${alg}) |
16 | CONFIGURE_ARGS+= enable-${alg} | | 16 | CONFIGURE_ARGS+= enable-${alg} |
17 | PLIST.${alg}= yes | | 17 | PLIST.${alg}= yes |
18 | . else | | 18 | . else |
19 | CONFIGURE_ARGS+= no-${alg} | | 19 | CONFIGURE_ARGS+= no-${alg} |
20 | . endif | | 20 | . endif |
21 | .endfor | | 21 | .endfor |
| | | 22 | # |
| | | 23 | # Only supported in certain Linux configurations, needs proper handling if |
| | | 24 | # it is to be supported as an option. |
| | | 25 | # |
| | | 26 | CONFIGURE_ARGS+= no-afalgeng |
22 | | | 27 | |
23 | .if !empty(PKG_OPTIONS:Mzlib) | | 28 | .if !empty(PKG_OPTIONS:Mzlib) |
24 | CONFIGURE_ARGS+= zlib | | 29 | CONFIGURE_ARGS+= zlib |
25 | .include "../../devel/zlib/buildlink3.mk" | | 30 | .include "../../devel/zlib/buildlink3.mk" |
26 | .else | | 31 | .else |
27 | CONFIGURE_ARGS+= no-zlib | | 32 | CONFIGURE_ARGS+= no-zlib |
28 | .endif | | 33 | .endif |
29 | | | 34 | |
30 | .if !empty(PKG_OPTIONS:Mthreads) | | 35 | .if !empty(PKG_OPTIONS:Mthreads) |
31 | CONFIGURE_ARGS+= threads | | 36 | CONFIGURE_ARGS+= threads |
32 | .else | | 37 | .else |
33 | CONFIGURE_ARGS+= no-threads | | 38 | CONFIGURE_ARGS+= no-threads |
34 | .endif | | 39 | .endif |