summaryrefslogtreecommitdiff
path: root/databases/mysql5-client
diff options
context:
space:
mode:
authoradrianp <adrianp>2009-02-11 00:16:41 +0000
committeradrianp <adrianp>2009-02-11 00:16:41 +0000
commit4d7d2c1d927ef2e775e671942118633eaf8d3b58 (patch)
tree87700bf767430361ecab767569e15244c5095944 /databases/mysql5-client
parent6787c1f36447646457913df61118a1428ee902b8 (diff)
downloadpkgsrc-4d7d2c1d927ef2e775e671942118633eaf8d3b58.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