pkgsrc/security/openssl/options.mk
2005-07-19 00:26:19 +00:00

55 lines
1.2 KiB
Makefile

# $NetBSD: options.mk,v 1.2 2005/07/19 00:26:19 grant 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)
. if empty(OPENSSL_LICENSE:Mfee-based-commercial-use)
OPENSSL_LICENSE= fee-based-commercial-use
. endif
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)
. if empty(OPENSSL_LICENSE:Mfee-based-commercial-use)
OPENSSL_LICENSE= fee-based-commercial-use
. endif
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)
. if empty(OPENSSL_LICENSE:Mfee-based-commercial-use)
OPENSSL_LICENSE= fee-based-commercial-use
. endif
PLIST_SUBST+= RC5=
.else
CONFIGURE_ARGS+= no-rc5
PLIST_SUBST+= RC5="@comment "
.endif
.if !empty(OPENSSL_LICENSE)
LICENSE= ${OPENSSL_LICENSE}
.endif