pkgsrc/security/libssh/options.mk
2013-02-01 16:47:51 +00:00

29 lines
924 B
Makefile

# $NetBSD: options.mk,v 1.1 2013/02/01 16:47:51 is Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME}
PKG_OPTIONS_REQUIRED_GROUPS= crypto
PKG_OPTIONS_GROUP.crypto= openssl gcrypt
#PKG_SUPPORTED_OPTIONS= compression
PKG_SUGGESTED_OPTIONS= openssl # XXX zlib
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mzlib)
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2
CONFIGURE_ARGS+= --with-libz=${BUILDLINK_PREFIX.zlib:Q}
.include "../../devel/zlib/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mopenssl)
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.8
CONFIGURE_ARGS+= --with-libgcrypt=no
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
.include "../../security/openssl/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mgcrypt)
BUILDLINK_API_DEPENDS.gcrypt+= gcrypt>=1.4
CONFIGURE_ARGS+= --with-libgcrypt=${BUILDLINK_PREFIX.libgcrypt:Q}
CONFIGURE_ARGS+= --with-openssl=no
.include "../../security/libgcrypt/buildlink3.mk"
.endif