buildlink only one of either openssl or gnutls.

This commit is contained in:
Hauke Fath 2012-05-23 15:58:00 +00:00 committed by Thomas Klausner
parent f809136b85
commit f0007d3e35
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1.1.1 2012/05/23 15:37:12 hfath Exp $
# $NetBSD: Makefile,v 1.2 2012/05/23 15:58:00 hfath Exp $
#
DISTNAME= vpnc-0.5.3
@ -72,6 +72,5 @@ CFLAGS.SunOS= -DLOG_PERROR=0
.endif
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../wip/mk/svn-package.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: options.mk,v 1.1.1.1 2012/05/23 15:37:12 hfath Exp $
# $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
@ -6,6 +6,7 @@ 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
@ -14,4 +15,6 @@ 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