summaryrefslogtreecommitdiff
path: root/databases/mysql4-client
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2007-07-09 22:27:35 +0000
committeradrianp <adrianp@pkgsrc.org>2007-07-09 22:27:35 +0000
commit56ad96424574a3e0680aba17429084786890f64b (patch)
tree3fc5873f82184949f77f920e988c43a90b73ae50 /databases/mysql4-client
parenteb9a287de1028cf3e93349d030970ae42e0b95db (diff)
downloadpkgsrc-56ad96424574a3e0680aba17429084786890f64b.tar.gz
Add an options.mk for SSL support
Suggested by pancake@ in PR #28573
Diffstat (limited to 'databases/mysql4-client')
-rw-r--r--databases/mysql4-client/Makefile.common5
-rw-r--r--databases/mysql4-client/options.mk18
2 files changed, 20 insertions, 3 deletions
diff --git a/databases/mysql4-client/Makefile.common b/databases/mysql4-client/Makefile.common
index d67c12cb09f..e5b1a888c1e 100644
--- a/databases/mysql4-client/Makefile.common
+++ b/databases/mysql4-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.58 2007/07/04 20:54:35 jlam Exp $
+# $NetBSD: Makefile.common,v 1.59 2007/07/09 22:27:36 adrianp Exp $
DISTNAME= mysql-4.1.22
CATEGORIES= databases
@@ -11,6 +11,7 @@ USE_LIBTOOL= yes
GNU_CONFIGURE= yes
.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
EXTRACT_USING= pax
@@ -62,7 +63,6 @@ CONFIGURE_ARGS+= --disable-dependency-tracking
CONFIGURE_ARGS+= --without-debug
CONFIGURE_ARGS+= --without-bench
CONFIGURE_ARGS+= --with-low-memory
-CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
CONFIGURE_ARGS+= --with-vio
CONFIGURE_ARGS+= --with-charset=${MYSQL_CHARSET:Q}
@@ -114,5 +114,4 @@ SUBST_SED.scripts= -e "s,chown,${CHOWN},g" \
-e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g"
SUBST_MESSAGE.scripts= Fixing scripts.
-.include "../../security/openssl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
diff --git a/databases/mysql4-client/options.mk b/databases/mysql4-client/options.mk
new file mode 100644
index 00000000000..ede4e7ba2c1
--- /dev/null
+++ b/databases/mysql4-client/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2007/07/09 22:27:35 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.mysql4-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"
+CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
+.else
+CONFIGURE_ARGS+= --without-openssl
+.endif