pkgsrc/net/libfetch/options.mk
2021-12-26 10:24:22 +00:00

34 lines
734 B
Makefile

# $NetBSD: options.mk,v 1.5 2021/12/26 10:24:22 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libfetch
PKG_SUPPORTED_OPTIONS= inet6 openssl
CHECK_BUILTIN.openssl:= yes
.include "../../security/openssl/builtin.mk"
CHECK_BUILTIN.openssl:= no
.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
PKG_SUGGESTED_OPTIONS+= openssl
.endif
.include "../../mk/bsd.prefs.mk"
.if ${IPV6_READY:tl} == "yes"
PKG_SUGGESTED_OPTIONS+= inet6
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
MAKE_ENV+= FETCH_WITH_INET6=yes
.else
MAKE_ENV+= FETCH_WITH_INET6=no
.endif
.if !empty(PKG_OPTIONS:Mopenssl)
MAKE_ENV+= FETCH_WITH_OPENSSL=yes
.include "../../security/openssl/buildlink3.mk"
.else
MAKE_ENV+= FETCH_WITH_OPENSSL=no
.endif