summaryrefslogtreecommitdiff
path: root/audio/amarok/files/patch-cmake_modules_FindMySQL.cmake
diff options
context:
space:
mode:
authorAdriaan de Groot <adridg@FreeBSD.org>2021-02-13 23:49:48 +0000
committerAdriaan de Groot <adridg@FreeBSD.org>2021-02-13 23:49:48 +0000
commitfd25963a14dddb9247e955ca90ad0bb860891184 (patch)
tree3fd594ce6ffaa61c23cf4ac872e860d5631d173a /audio/amarok/files/patch-cmake_modules_FindMySQL.cmake
parentdevel/cereal: Update 1.3.0 -> 1.3.0-10 (diff)
Update audio/amarok to recent upstream
This fixes the previous botched update. Existing patches have been merged or made obsolete, while we still need to massage CMakeLists and CMake modules to find things onFreeBSD. While here, drop redundant USES=ssl (it is in the main USES clause already) and add missing USE_KDE=wallet.
Notes
Notes: svn path=/head/; revision=565187
Diffstat (limited to 'audio/amarok/files/patch-cmake_modules_FindMySQL.cmake')
-rw-r--r--audio/amarok/files/patch-cmake_modules_FindMySQL.cmake44
1 files changed, 2 insertions, 42 deletions
diff --git a/audio/amarok/files/patch-cmake_modules_FindMySQL.cmake b/audio/amarok/files/patch-cmake_modules_FindMySQL.cmake
index 89acc30d09d3..5ad15d35db03 100644
--- a/audio/amarok/files/patch-cmake_modules_FindMySQL.cmake
+++ b/audio/amarok/files/patch-cmake_modules_FindMySQL.cmake
@@ -1,35 +1,6 @@
---- cmake/modules/FindMySQL.cmake.orig 2019-04-30 03:42:56 UTC
+--- cmake/modules/FindMySQL.cmake.orig 2021-02-13 22:39:45 UTC
+++ cmake/modules/FindMySQL.cmake
-@@ -31,18 +31,20 @@ if(MYSQLCONFIG_EXECUTABLE)
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
-
-- execute_process(
-- COMMAND ${MYSQLCONFIG_EXECUTABLE} --libmysqld-libs
-- RESULT_VARIABLE MC_return_embedded
-- OUTPUT_VARIABLE MC_MYSQL_EMBEDDED_LIBRARIES
-- OUTPUT_STRIP_TRAILING_WHITESPACE
-- )
--
- if(NOT MC_MYSQL_EMBEDDED_LIBRARIES)
- # At least on OpenSUSE --libmysql-libs doesn't exist, so we just use
- # MYSQL_LIBRARIES for that. We'll see if that's enough when testing
- # below.
-- set(MYSQL_EMBEDDED_LIBRARIES ${MYSQL_LIBRARIES})
-+ # mysql-config removed --libmysql-libs, but amarok need libmysqld other
-+ # than libmysqlclient to run mysql embedded server.
-+ find_library(MYSQL_EMBEDDED_LIBRARIES NAMES mysqld libmysqld
-+ PATHS
-+ $ENV{MYSQL_DIR}/libmysql_r/.libs
-+ $ENV{MYSQL_DIR}/lib
-+ $ENV{MYSQL_DIR}/lib/mysql
-+ PATH_SUFFIXES
-+ mysql
-+ )
- else()
- set(MYSQL_EMBEDDED_LIBRARIES ${MC_MYSQL_EMBEDDED_LIBRARIES})
- endif()
-@@ -51,7 +53,7 @@ endif()
+@@ -33,7 +33,7 @@ endif()
# Try searching manually via find_path/find_library, possibly with hints
# from pkg-config
find_package(PkgConfig)
@@ -38,14 +9,3 @@
find_path(MYSQL_INCLUDE_DIR mysql.h
PATHS
-@@ -101,6 +103,10 @@ if(MYSQL_EMBEDDED_LIBRARIES)
- # string(STRIP ${_mysql_libs} _mysql_libs)
- # set(MYSQL_EMBEDDED_LIBRARIES ${_mysql_libs})
- #endif()
-+
-+ string(CONCAT MC_MYSQL_LIBRARIES ${MYSQL_LIBRARIES} " -llz4")
-+ string(STRIP ${MC_MYSQL_LIBRARIES} MC_MYSQL_LIBRARIES)
-+ set(MYSQL_LIBRARIES ${MC_MYSQL_LIBRARIES})
- cmake_push_check_state()
- set(CMAKE_REQUIRED_INCLUDES ${MYSQL_INCLUDE_DIR})
- set(CMAKE_REQUIRED_LIBRARIES ${MYSQL_EMBEDDED_LIBRARIES})