summaryrefslogtreecommitdiff
path: root/databases/mysql56-server
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2017-01-25 19:07:08 +0000
committerBernard Spil <brnrd@FreeBSD.org>2017-01-25 19:07:08 +0000
commitfbaf26c24a78eea365f7cdbeee021223abc6eaf7 (patch)
treebb114a925843e7675a807f2ba1dffca725258d2a /databases/mysql56-server
parentHook munin-contrib to the build (diff)
databases/mysql56-server: Fix OpenSSL linking
- Force dynamic linking with OpenSSL MFH: 2017Q1
Notes
Notes: svn path=/head/; revision=432458
Diffstat (limited to 'databases/mysql56-server')
-rw-r--r--databases/mysql56-server/Makefile11
-rw-r--r--databases/mysql56-server/files/patch-cmake_ssl.cmake11
2 files changed, 15 insertions, 7 deletions
diff --git a/databases/mysql56-server/Makefile b/databases/mysql56-server/Makefile
index 725de9adaf4f..236c26a93a0d 100644
--- a/databases/mysql56-server/Makefile
+++ b/databases/mysql56-server/Makefile
@@ -3,7 +3,7 @@
PORTNAME?= mysql
PORTVERSION= 5.6.35
-PORTREVISION?= 2
+PORTREVISION?= 3
CATEGORIES= databases ipv6
MASTER_SITES= MYSQL/MySQL-5.6
PKGNAMESUFFIX?= 56-server
@@ -54,6 +54,9 @@ CMAKE_ARGS+= -DINSTALL_LAYOUT=FREEBSD \
-DWITH_LIBEVENT=system \
-DWITH_LZ4=system \
-DWITH_ZLIB=system \
+ -DWITH_SSL=${OPENSSLBASE} \
+ -DCRYPTO_LIBRARY=${OPENSSLLIB}/libcrypto.so \
+ -DOPENSSL_LIBRARY=${OPENSSLLIB}/libssl.so \
-DINSTALL_MYSQLTESTDIR=0
SHEBANG_FILES= scripts/*.pl* scripts/*.sh
@@ -129,12 +132,6 @@ PERFSCHM_SUB_LIST_OFF+= PERFSCHEMRC="--skip-performance-schema"
.include <bsd.port.pre.mk>
-.if ${SSL_DEFAULT} == base
-CMAKE_ARGS+= -DWITH_SSL=system
-.else
-CMAKE_ARGS+= -DWITH_SSL=${OPENSSLBASE}
-.endif
-
post-patch:
@${REINPLACE_CMD} 's/*.1/${MMAN1}/' ${WRKSRC}/man/CMakeLists.txt
diff --git a/databases/mysql56-server/files/patch-cmake_ssl.cmake b/databases/mysql56-server/files/patch-cmake_ssl.cmake
new file mode 100644
index 000000000000..faeed4517c4e
--- /dev/null
+++ b/databases/mysql56-server/files/patch-cmake_ssl.cmake
@@ -0,0 +1,11 @@
+--- cmake/ssl.cmake.orig 2016-11-28 13:36:22 UTC
++++ cmake/ssl.cmake
+@@ -176,7 +176,7 @@ MACRO (MYSQL_CHECK_SSL)
+ IF(OPENSSL_INCLUDE_DIR AND
+ OPENSSL_LIBRARY AND
+ CRYPTO_LIBRARY AND
+- OPENSSL_MAJOR_VERSION STREQUAL "1"
++ OPENSSL_MAJOR_VERSION VERSION_GREATER_EQUAL "1"
+ )
+ SET(OPENSSL_FOUND TRUE)
+ ELSE()