summaryrefslogtreecommitdiff
path: root/databases/mysql5-client/options.mk
blob: 75ca383eff982dc9fa851ea1c0ad8fa3296dca21 (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.2 2009/02/11 00:16:41 adrianp Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.mysql5-client

PKG_SUPPORTED_OPTIONS=	ssl
PKG_SUGGESTED_OPTIONS=	ssl

.include "../../mk/bsd.options.mk"

###
### Enable OpenSSL support
###
.if !empty(PKG_OPTIONS:Mssl)
.	include "../../security/openssl/buildlink3.mk"
. if ${OPSYS} == "SunOS"
CHECK_BUILTIN.openssl:=yes
.  include "../../security/openssl/builtin.mk"
CHECK_BUILTIN.openssl:=no
.  if ${USE_BUILTIN.openssl} == "yes"
CONFIGURE_ARGS+=	--with-openssl=yes
CONFIGURE_ARGS+=	--with-openssl-libs=/lib
CONFIGURE_ARGS+=	--with-openssl-includes=/usr/include
.  endif
. else
CONFIGURE_ARGS+=	--with-openssl=${BUILDLINK_PREFIX.openssl}
. endif
.else
CONFIGURE_ARGS+=	--without-openssl
.endif