summaryrefslogtreecommitdiff
path: root/databases/mysql5-client
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2009-02-11 00:16:41 +0000
committeradrianp <adrianp@pkgsrc.org>2009-02-11 00:16:41 +0000
commitc841e3444da4da92d44304fd2543f2751b0a9f55 (patch)
tree87700bf767430361ecab767569e15244c5095944 /databases/mysql5-client
parent8e2db995265cbc9c53e2989ed1c12c975665fc36 (diff)
downloadpkgsrc-c841e3444da4da92d44304fd2543f2751b0a9f55.tar.gz
Fix for ssl support on OpenSolaris
Diffstat (limited to 'databases/mysql5-client')
-rw-r--r--databases/mysql5-client/options.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/databases/mysql5-client/options.mk b/databases/mysql5-client/options.mk
index 560d9862025..75ca383eff9 100644
--- a/databases/mysql5-client/options.mk
+++ b/databases/mysql5-client/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2007/07/09 22:34:27 adrianp Exp $
+# $NetBSD: options.mk,v 1.2 2009/02/11 00:16:41 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mysql5-client
@@ -12,7 +12,18 @@ PKG_SUGGESTED_OPTIONS= ssl
###
.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