mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
Change this port to be more in line with databases/mariadb-server
- Add support for [Open]SSL choice - bundled, system, ports - Add support for OQGRAPH, PBXT storage engines - Add MAXKEY options (should stay on if you want your data to be compatible with all the other mysql ports in the ports tree) - Minor fix of patch-sql_CMakeLists.txt PR: ports/176405 Submitted by: Alexandr Kovalenko <never@nevermind.kiev.ua>
This commit is contained in:
parent
6e20cdaa4f
commit
6e9ab4749b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313604
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME?= mariadb
|
||||
PORTVERSION= 5.5.29
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= databases ipv6
|
||||
MASTER_SITES= http://ftp.osuosl.org/pub/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
|
||||
http://mirrors.supportex.net/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
|
||||
@ -23,10 +23,12 @@ USE_CMAKE= yes
|
||||
MAKE_JOBS_SAFE= yes
|
||||
NO_OPTIONS_SORT=yes
|
||||
|
||||
OPTIONS_DEFINE= SSL FASTMTX
|
||||
OPTIONS_DEFAULT=SSL
|
||||
OPTIONS_DEFINE+= SSL OPENSSL PORTSSL FASTMTX
|
||||
OPTIONS_DEFAULT+= SSL
|
||||
|
||||
FASTMTX_DESC= Replace mutexes with spinlocks
|
||||
OPENSSL_DESC= Use OpenSSL instead of bundled yassl
|
||||
PORTSSL_DESC= Use OpenSSL from port (requires OPENSSL to be set)
|
||||
|
||||
CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mysql" \
|
||||
-DINSTALL_DOCREADMEDIR="share/doc/mysql" \
|
||||
@ -53,11 +55,34 @@ CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mysql" \
|
||||
DATADIR= ${PREFIX}/share/mysql
|
||||
USE_LDCONFIG= ${PREFIX}/lib/mysql
|
||||
|
||||
# MySQL-Server options
|
||||
.if !defined(CLIENT_ONLY)
|
||||
OPTIONS_DEFINE+= OQGRAPH PBXT MAXKEY
|
||||
|
||||
OQGRAPH_DESC= Open Query Graph Computation engine
|
||||
PBXT_DESC= MVCC-based transactional engine
|
||||
MAXKEY_DESC= Change max key length from 1000 to 4000
|
||||
|
||||
OPTIONS_DEFAULT+= PBXT MAXKEY
|
||||
.endif
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MSSL}
|
||||
.if ${PORT_OPTIONS:MOPENSSL}
|
||||
USE_OPENSSL= yes
|
||||
.if empty(PORT_OPTIONS:MPORTSSL)
|
||||
WITH_OPENSSL_BASE= yes
|
||||
.else
|
||||
WITH_OPENSSL_PORT= yes
|
||||
.endif
|
||||
CMAKE_ARGS+= -DWITH_SSL=yes
|
||||
.else
|
||||
CMAKE_ARGS+= -DWITH_SSL=bundled
|
||||
.endif
|
||||
.else
|
||||
CMAKE_FLAGS+= -DWITH_SSL=no
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MFASTMTX}
|
||||
CMAKE_ARGS+= -DWITH_FAST_MUTEXES=1
|
||||
.endif
|
||||
@ -86,12 +111,31 @@ MAN1= my_print_defaults.1 myisam_ftdump.1 myisamchk.1 myisamlog.1 myisampack.1
|
||||
|
||||
MAN8= mysqld.8
|
||||
|
||||
CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER="ON"
|
||||
CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER="ON" \
|
||||
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
|
||||
|
||||
post-install:
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
.endif
|
||||
|
||||
.if empty(PORT_OPTIONS:MOQGRAPH)
|
||||
CMAKE_ARGS+= -DWITHOUT_OQGRAPH_STORAGE_ENGINE=1
|
||||
PLIST_SUB+= OQGRAPH="@comment "
|
||||
.else
|
||||
USE_GCC?= yes
|
||||
CMAKE_ARGS+= -DWITH_OQGRAPH_STORAGE_ENGINE=1
|
||||
PLIST_SUB+= OQGRAPH=""
|
||||
LIB_DEPENDS+= boost_system:${PORTSDIR}/devel/boost-libs
|
||||
.endif
|
||||
.if empty(PORT_OPTIONS:MPBXT)
|
||||
CMAKE_ARGS+= -DWITHOUT_PBXT_STORAGE_ENGINE=1
|
||||
.else
|
||||
CMAKE_ARGS+= -DWITH_PBXT_STORAGE_ENGINE=1
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MMAXKEY}
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-include_my_compare.h
|
||||
.endif
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
|
@ -2,9 +2,9 @@
|
||||
+++ sql/CMakeLists.txt 2012-12-23 05:56:58.000000000 +0200
|
||||
@@ -268,6 +268,7 @@
|
||||
|
||||
+IF(FALSE)
|
||||
IF(INSTALL_LAYOUT STREQUAL "STANDALONE")
|
||||
|
||||
+IF(FALSE)
|
||||
# We need to create empty directories (data/test) the installation.
|
||||
# This does not work with current CPack due to http://www.cmake.org/Bug/view.php?id=8767
|
||||
# Avoid completely empty directories and install dummy file instead.
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- storage/oqgraph/CMakeLists.txt.orig 2013-01-29 16:12:49.000000000 +0200
|
||||
+++ storage/oqgraph/CMakeLists.txt 2013-02-24 20:21:58.000000000 +0200
|
||||
@@ -3,6 +3,7 @@
|
||||
RETURN()
|
||||
ENDIF()
|
||||
INCLUDE_DIRECTORIES(BEFORE ${Boost_INCLUDE_DIRS})
|
||||
+SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${Boost_INCLUDE_DIRS})
|
||||
|
||||
IF(MSVC)
|
||||
# lp:756966 OQGRAPH on Win64 does not compile
|
@ -41,10 +41,10 @@ lib/mysql/plugin/dialog_examples.so
|
||||
lib/mysql/plugin/feedback.so
|
||||
lib/mysql/plugin/ha_archive.so
|
||||
lib/mysql/plugin/ha_blackhole.so
|
||||
lib/mysql/plugin/ha_example.so
|
||||
lib/mysql/plugin/ha_federated.so
|
||||
lib/mysql/plugin/ha_federatedx.so
|
||||
lib/mysql/plugin/ha_innodb.so
|
||||
%%OQGRAPH%%lib/mysql/plugin/ha_oqgraph.so
|
||||
lib/mysql/plugin/ha_sphinx.so
|
||||
lib/mysql/plugin/handlersocket.so
|
||||
lib/mysql/plugin/libdaemon_example.so
|
||||
|
Loading…
Reference in New Issue
Block a user