1 # $NetBSD: options.mk,v 1.5 2008/04/12 22:43:12 jlam Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.openssl
4 PKG_SUPPORTED_OPTIONS= idea mdc2 rc5 zlib
6 .include "../../mk/bsd.options.mk"
8 OPENSSL_LICENSE= # empty
10 PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
13 ### Support for the IDEA algorithm
14 ### US Patent: 5214703
15 ### Europe Patent: EP0482154
16 ### Japan Patent: 508119/1991
18 .if !empty(PKG_OPTIONS:Midea)
19 OPENSSL_LICENSE+= idea-license
22 CONFIGURE_ARGS+= no-idea
26 ### Support for the MDC2 algorithm
27 ### US Patent: 4908861
29 .if !empty(PKG_OPTIONS:Mmdc2)
30 # A license file is needed.
31 OPENSSL_LICENSE+= mdc2-nonlicense
32 CONFIGURE_ARGS+= enable-mdc2
35 CONFIGURE_ARGS+= no-mdc2
39 ### Support for the RC5 algorithm
40 ### US Patent: 5724428, 5835600, 6269163
42 .if !empty(PKG_OPTIONS:Mrc5)
43 # A license file is needed.
44 OPENSSL_LICENSE+= rc5-nonlicense
45 CONFIGURE_ARGS+= enable-rc5
48 CONFIGURE_ARGS+= no-rc5
51 .if !empty(PKG_OPTIONS:Mzlib)
53 .include "../../devel/zlib/buildlink3.mk"
55 CONFIGURE_ARGS+= no-zlib
58 .if !empty(OPENSSL_LICENSE)
59 # pkgsrc does not handle multiple licenses
60 LICENSE= openssl-patented-algorithms-nonlicense