pkgsrc/www/htmldoc/options.mk

33 lines
919 B
Makefile

# $NetBSD: options.mk,v 1.4 2016/12/30 12:54:20 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.htmldoc
PKG_SUPPORTED_OPTIONS= # empty
PKG_OPTIONS_OPTIONAL_GROUPS= ssl
PKG_OPTIONS_GROUP.ssl= gnutls ssl
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
###
### SSL support
###
.if !empty(PKG_OPTIONS:Mssl) || !empty(PKG_OPTIONS:Mgnutls)
CONFIGURE_ARGS+= --enable-ssl
. if !empty(PKG_OPTIONS:Mssl)
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --enable-openssl
CONFIGURE_ARGS+= --with-openssl-libs=${SSLBASE:Q}/lib
CONFIGURE_ARGS+= --with-openssl-includes=${SSLBASE:Q}/include
. else
CONFIGURE_ARGS+= --disable-openssl
. endif
. if !empty(PKG_OPTIONS:Mgnutls)
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/gnutls/libgnutls-config.mk"
CONFIGURE_ARGS+= --enable-gnutls
. else
CONFIGURE_ARGS+= --disable-gnutls
. endif
.else
CONFIGURE_ARGS+= --disable-ssl
.endif