diff options
author | adrianp <adrianp> | 2007-07-09 22:27:35 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2007-07-09 22:27:35 +0000 |
commit | 249b10472ba73e439216ca6d569821aa7680118b (patch) | |
tree | 3fc5873f82184949f77f920e988c43a90b73ae50 /databases/mysql5-client | |
parent | c124d003fb65536e056b4f944b1743adb1b61ebb (diff) | |
download | pkgsrc-249b10472ba73e439216ca6d569821aa7680118b.tar.gz |
Add an options.mk for SSL support
Suggested by pancake@ in PR #28573
Diffstat (limited to 'databases/mysql5-client')
-rw-r--r-- | databases/mysql5-client/Makefile.common | 5 | ||||
-rw-r--r-- | databases/mysql5-client/options.mk | 18 |
2 files changed, 20 insertions, 3 deletions
diff --git a/databases/mysql5-client/Makefile.common b/databases/mysql5-client/Makefile.common index 1466a27fd3d..f4909ac27b6 100644 --- a/databases/mysql5-client/Makefile.common +++ b/databases/mysql5-client/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.23 2007/07/09 20:01:44 xtraeme Exp $ +# $NetBSD: Makefile.common,v 1.24 2007/07/09 22:34:27 adrianp Exp $ DISTNAME= mysql-5.0.41 CATEGORIES= databases @@ -11,6 +11,7 @@ USE_LIBTOOL= yes GNU_CONFIGURE= yes .include "../../mk/bsd.prefs.mk" +.include "options.mk" EXTRACT_USING= pax @@ -56,7 +57,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:Q} CONFIGURE_ARGS+= --with-zlib-dir=${BUILDLINK_PREFIX.zlib:Q} CONFIGURE_ARGS+= --with-vio @@ -122,5 +122,4 @@ SUBST_SED.dylib= -e "s|\\\$$shrext_cmds|\\.dylib|g" pre-configure: cd ${WRKSRC} && autoconf -.include "../../security/openssl/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" diff --git a/databases/mysql5-client/options.mk b/databases/mysql5-client/options.mk new file mode 100644 index 00000000000..560d9862025 --- /dev/null +++ b/databases/mysql5-client/options.mk @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.1 2007/07/09 22:34:27 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" +CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} +.else +CONFIGURE_ARGS+= --without-openssl +.endif |