pkgsrc/security/openssl/options.mk
jperkin e0bbb4d5f1 openssl: Explicitly disable afalgeng for now.
This is only supported in certain Linux configurations, so will need proper
PLIST logic if it is to be properly handled as an option.  Fixes EL7.
2020-01-20 17:42:53 +00:00

39 lines
860 B
Makefile

# $NetBSD: options.mk,v 1.12 2020/01/20 17:42:53 jperkin Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openssl
PKG_SUPPORTED_OPTIONS= idea md2 mdc2 rc5 zlib threads
PKG_SUGGESTED_OPTIONS= idea md2 mdc2 rc5 threads
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
#
# Support optional algorithms
#
.for alg in idea md2 mdc2 rc5
. if !empty(PKG_OPTIONS:M${alg})
CONFIGURE_ARGS+= enable-${alg}
PLIST.${alg}= yes
. else
CONFIGURE_ARGS+= no-${alg}
. endif
.endfor
#
# Only supported in certain Linux configurations, needs proper handling if
# it is to be supported as an option.
#
CONFIGURE_ARGS+= no-afalgeng
.if !empty(PKG_OPTIONS:Mzlib)
CONFIGURE_ARGS+= zlib
.include "../../devel/zlib/buildlink3.mk"
.else
CONFIGURE_ARGS+= no-zlib
.endif
.if !empty(PKG_OPTIONS:Mthreads)
CONFIGURE_ARGS+= threads
.else
CONFIGURE_ARGS+= no-threads
.endif