summaryrefslogtreecommitdiff
path: root/databases/mysql91-server/files/patch-cmake_os_DragonFly.cmake
diff options
context:
space:
mode:
authorJochen Neumeister <joneum@FreeBSD.org>2025-01-09 19:41:14 +0100
committerJochen Neumeister <joneum@FreeBSD.org>2025-01-09 19:44:37 +0100
commit1fbff9cbe8d96f127a6f5a9564eaffe25dae78e3 (patch)
tree0a8293230edb91e091f88fa75bd89862f61b155d /databases/mysql91-server/files/patch-cmake_os_DragonFly.cmake
parentdeskutils/gucharmap: upgrade to Version 16.0.2 (diff)
databases/mysql91-{server|client}: add new Ports
Welcome MySQL 9.1 What is new in MySQL9.1: https://dev.mysql.com/doc/relnotes/mysql/9.1/en/news-9-1-0.html MySQL8.4+ supports only 64-bit platforms! Sponsored by: Netzkommune GmbH Special thanks to: samm
Diffstat (limited to 'databases/mysql91-server/files/patch-cmake_os_DragonFly.cmake')
-rw-r--r--databases/mysql91-server/files/patch-cmake_os_DragonFly.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/databases/mysql91-server/files/patch-cmake_os_DragonFly.cmake b/databases/mysql91-server/files/patch-cmake_os_DragonFly.cmake
new file mode 100644
index 000000000000..83c154ee3bcf
--- /dev/null
+++ b/databases/mysql91-server/files/patch-cmake_os_DragonFly.cmake
@@ -0,0 +1,27 @@
+--- cmake/os/DragonFly.cmake.orig 2016-04-14 10:16:17 UTC
++++ cmake/os/DragonFly.cmake
+@@ -0,0 +1,24 @@
++INCLUDE(CheckCSourceRuns)
++
++# We require at least GCC 4.4 or Clang 3.3.
++IF(NOT FORCE_UNSUPPORTED_COMPILER)
++ IF(CMAKE_COMPILER_IS_GNUCC)
++ EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion
++ OUTPUT_VARIABLE GCC_VERSION)
++ IF(GCC_VERSION VERSION_LESS 4.4)
++ MESSAGE(FATAL_ERROR "GCC 4.4 or newer is required!")
++ ENDIF()
++ ELSEIF(CMAKE_C_COMPILER_ID MATCHES "Clang")
++ CHECK_C_SOURCE_RUNS("
++ int main()
++ {
++ return (__clang_major__ < 3) ||
++ (__clang_major__ == 3 && __clang_minor__ < 3);
++ }" HAVE_SUPPORTED_CLANG_VERSION)
++ IF(NOT HAVE_SUPPORTED_CLANG_VERSION)
++ MESSAGE(FATAL_ERROR "Clang 3.3 or newer is required!")
++ ENDIF()
++ ELSE()
++ MESSAGE(FATAL_ERROR "Unsupported compiler!")
++ ENDIF()
++ENDIF()