pkgsrc/www/dillo/options.mk
bsiegert 46e7930c37 dillo: use correct SSLCERTS dir
It turns out the HTTPS plugin hardcodes the SSL certificate dir as
/etc/ssl/certs, which is incorrect in NetBSD. SUBST it to the correct
location and bump revision.
2020-09-20 08:55:48 +00:00

26 lines
650 B
Makefile

# $NetBSD: options.mk,v 1.6 2020/09/20 08:55:48 bsiegert Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.dillo
PKG_SUPPORTED_OPTIONS= inet6 ssl
PKG_SUGGESTED_OPTIONS= inet6 ssl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --enable-ssl
LIBS+= -lssl
.include "../../security/openssl/buildlink3.mk"
SUBST_CLASSES+= sslcerts
SUBST_MESSAGE.sslcerts= Fixing SSL certificate directory.
SUBST_FILES.sslcerts= dpi/https.c
SUBST_STAGE.sslcerts= post-extract
SUBST_SED.sslcerts= -e 's,"/etc/ssl/certs,"${SSLCERTS},'
.else
CONFIGURE_ARGS+= --disable-ssl
.endif