Permalink
Browse files
mysql55-connector-cpp: Update version to 1.1.9 and add additional mys…
…ql56 and mysql57 subports.
- Loading branch information
Showing
with
197 additions
and 329 deletions.
- +22 −20 databases/mysql55-connector-cpp/Portfile
- +55 −0 databases/mysql55-connector-cpp/files/examples-CMakeLists.txt
- +26 −15 databases/mysql55-connector-cpp/files/patch-CMakeLists.txt.diff
- +7 −7 databases/mysql55-connector-cpp/files/patch-cppconn-CMakeLists.txt.diff
- +27 −37 databases/mysql55-connector-cpp/files/patch-driver-CMakeLists.txt.diff
- +8 −16 databases/mysql55-connector-cpp/files/patch-examples-examples.h.diff
- +2 −2 databases/mysql55-connector-cpp/files/patch-examples-pthreads.cpp.diff
- +3 −3 databases/mysql55-connector-cpp/files/patch-examples-standalone_example.cpp.diff
- +23 −100 databases/mysql55-connector-cpp/files/patch-examples-standalone_example_docs1.cpp.diff
- +24 −129 databases/mysql55-connector-cpp/files/patch-examples-standalone_example_docs2.cpp.diff
| @@ -0,0 +1,55 @@ | ||
| # MacPorts MySQL Connector/C++ examples CMake build | ||
| # | ||
| # Written in 2018 by Jeffrey Dvornek | ||
| # | ||
| # To the extent possible under law, the author(s) have dedicated all | ||
| # copyright and related and neighboring rights to this software to the | ||
| # public domain worldwide. This software is distributed without any warranty. | ||
| # | ||
| # You should have received a copy of the CC0 Public Domain Dedication along | ||
| # with this software. If not, see | ||
| # <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
|
|
||
| cmake_minimum_required(VERSION 3.10) | ||
|
|
||
| SET(CMAKE_VERBOSE_MAKEFILE 0) | ||
|
|
||
| FIND_PACKAGE(Boost COMPONENTS system thread REQUIRED) | ||
|
|
||
| INCLUDE_DIRECTORIES( | ||
| @PREFIX@/include | ||
| @PREFIX@/include@NAME@ | ||
| @PREFIX@/include@DBPORT@ | ||
| ${Boost_INCLUDE_DIRS} | ||
| ) | ||
|
|
||
| LINK_DIRECTORIES( | ||
| @PREFIX@/lib/ | ||
| @PREFIX@/lib@NAME@/ | ||
| @PREFIX@/lib@DBPORT@/mysql | ||
| ) | ||
|
|
||
| LINK_LIBRARIES( | ||
| mysqlcppconn | ||
| ${Boost_SYSTEM_LIBRARY} | ||
| ${Boost_THREAD_LIBRARY} | ||
| ) | ||
|
|
||
| FIND_LIBRARY(MYSQLCLIENT_LIB | ||
| NAMES libmysqlclient.dylib | ||
| PATHS @PREFIX@/lib@NAME@ NO_DEFAULT_PATH) | ||
|
|
||
| ADD_DEFINITIONS(-DDYNLOAD_MYSQL_LIB="${MYSQLCLIENT_LIB}") | ||
|
|
||
| ADD_EXECUTABLE(connect connect.cpp) | ||
| ADD_EXECUTABLE(connection_meta_schemaobj connection_meta_schemaobj.cpp) | ||
| ADD_EXECUTABLE(debug_output debug_output.cpp) | ||
| ADD_EXECUTABLE(exceptions exceptions.cpp) | ||
| ADD_EXECUTABLE(prepared_statement prepared_statement.cpp) | ||
| ADD_EXECUTABLE(resultset resultset.cpp) | ||
| ADD_EXECUTABLE(resultset_binary resultset_binary.cpp) | ||
| ADD_EXECUTABLE(resultset_meta resultset_meta.cpp) | ||
| ADD_EXECUTABLE(resultset_types resultset_types.cpp) | ||
| ADD_EXECUTABLE(statement statement.cpp) | ||
| ADD_EXECUTABLE(dynamic_load dynamic_load.cpp) | ||
|
|
Oops, something went wrong.