blob: b4fbd3bf7409ea8452134d7fa81fae583184e569 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $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
|