summaryrefslogtreecommitdiff
path: root/security/openssl/options.mk
blob: 47e309ff069b6def5a428299d28bc68dea6d4705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $NetBSD: options.mk,v 1.4 2008/01/17 06:42:48 tnn Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.openssl
PKG_SUPPORTED_OPTIONS=	idea mdc2 rc5
.include "../../mk/bsd.options.mk"

OPENSSL_LICENSE=	# empty

###
### Support for the IDEA algorithm
###	US Patent: 5214703
###	Europe Patent: EP0482154
###	Japan Patent: 508119/1991
###
.if !empty(PKG_OPTIONS:Midea)
OPENSSL_LICENSE+=	idea-license
PLIST_SUBST+=		IDEA=
.else
CONFIGURE_ARGS+=	no-idea
PLIST_SUBST+=		IDEA="@comment "
.endif

###
### Support for the MDC2 algorithm
###	US Patent: 4908861
###
.if !empty(PKG_OPTIONS:Mmdc2)
# A license file is needed.
OPENSSL_LICENSE+=	mdc2-nonlicense
CONFIGURE_ARGS+=	enable-mdc2
PLIST_SUBST+=		MDC2=
.else
CONFIGURE_ARGS+=	no-mdc2
PLIST_SUBST+=		MDC2="@comment "
.endif

###
### Support for the RC5 algorithm
###	US Patent: 5724428, 5835600, 6269163
###
.if !empty(PKG_OPTIONS:Mrc5)
# A license file is needed.
OPENSSL_LICENSE+=	rc5-nonlicense
CONFIGURE_ARGS+=	enable-rc5
PLIST_SUBST+=		RC5=
.else
CONFIGURE_ARGS+=	no-rc5
PLIST_SUBST+=		RC5="@comment "
.endif

.if !empty(OPENSSL_LICENSE)
# pkgsrc does not handle multiple licenses
LICENSE=	openssl-patented-algorithms-nonlicense
.endif