pkgsrc-wip/vpnc-svn/options.mk

20 lines
641 B
Makefile

# $NetBSD: options.mk,v 1.2 2012/05/23 15:58:00 hfath Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openvpnc
PKG_SUPPORTED_OPTIONS= openssl # off by default
PKG_SUGGESTED_OPTIONS=
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mopenssl)
.include "../../security/openssl/buildlink3.mk"
SUBST_CLASSES+= openssl
SUBST_MESSAGE.openssl= adding openssl option
SUBST_STAGE.openssl= post-patch
SUBST_FILES.openssl= Makefile
SUBST_SED.openssl= -e 's/^.OPENSSL_GPL_VIOLATION/OPENSSL_GPL_VIOLATION/'
SUBST_SED.openssl+= -e 's/^.OPENSSLLIBS/OPENSSLLIBS/'
.else
.include "../../security/gnutls/buildlink3.mk"
.endif