Update to version 0.3.4
[pkgsrcv2.git] / security / openssl / options.mk
1 # $NetBSD: options.mk,v 1.5 2008/04/12 22:43:12 jlam Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.openssl
4 PKG_SUPPORTED_OPTIONS=  idea mdc2 rc5 zlib
5
6 .include "../../mk/bsd.options.mk"
7
8 OPENSSL_LICENSE=        # empty
9
10 PLIST_VARS+=            ${PKG_SUPPORTED_OPTIONS}
11
12 ###
13 ### Support for the IDEA algorithm
14 ###     US Patent: 5214703
15 ###     Europe Patent: EP0482154
16 ###     Japan Patent: 508119/1991
17 ###
18 .if !empty(PKG_OPTIONS:Midea)
19 OPENSSL_LICENSE+=       idea-license
20 PLIST.idea=             yes
21 .else
22 CONFIGURE_ARGS+=        no-idea
23 .endif
24
25 ###
26 ### Support for the MDC2 algorithm
27 ###     US Patent: 4908861
28 ###
29 .if !empty(PKG_OPTIONS:Mmdc2)
30 # A license file is needed.
31 OPENSSL_LICENSE+=       mdc2-nonlicense
32 CONFIGURE_ARGS+=        enable-mdc2
33 PLIST.mdc2=             yes
34 .else
35 CONFIGURE_ARGS+=        no-mdc2
36 .endif
37
38 ###
39 ### Support for the RC5 algorithm
40 ###     US Patent: 5724428, 5835600, 6269163
41 ###
42 .if !empty(PKG_OPTIONS:Mrc5)
43 # A license file is needed.
44 OPENSSL_LICENSE+=       rc5-nonlicense
45 CONFIGURE_ARGS+=        enable-rc5
46 PLIST.rc5=              yes
47 .else
48 CONFIGURE_ARGS+=        no-rc5
49 .endif
50
51 .if !empty(PKG_OPTIONS:Mzlib)
52 CONFIGURE_ARGS+=        zlib
53 .include "../../devel/zlib/buildlink3.mk"
54 .else
55 CONFIGURE_ARGS+=        no-zlib
56 .endif
57
58 .if !empty(OPENSSL_LICENSE)
59 # pkgsrc does not handle multiple licenses
60 LICENSE=        openssl-patented-algorithms-nonlicense
61 .endif