Skip to content

Commit

Permalink
graphics/gdal: Fix MYSQL option
Browse files Browse the repository at this point in the history
PR:		269256
Reported by:	Martin Birgmeier <d8zNeCFG@aon.at>
  • Loading branch information
sunpoet committed Sep 4, 2023
1 parent 298ecce commit 18e5fa8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions graphics/gdal/Makefile
Expand Up @@ -199,6 +199,7 @@ ZSTD_CMAKE_BOOL= GDAL_USE_ZSTD
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd

post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/cmake/modules/packages/FindMySQL.cmake
# Clean up bundled libraries
@${RM} -r ${WRKSRC}/alg/internal_libqhull/
@${RM} -r ${WRKSRC}/frmts/gif/giflib/
Expand Down
11 changes: 11 additions & 0 deletions graphics/gdal/files/patch-mysql
@@ -0,0 +1,11 @@
--- cmake/modules/packages/FindMySQL.cmake.orig 2023-07-06 11:14:14 UTC
+++ cmake/modules/packages/FindMySQL.cmake
@@ -23,7 +23,7 @@ if( MYSQL_INCLUDE_DIR AND EXISTS "${MYSQL_INCLUDE_DIR}
"${MYSQL_VERSION_H}" )
endif()

-find_library(MYSQL_LIBRARY NAMES mysqlclient mysqlclient_r)
+find_library(MYSQL_LIBRARY NAMES mysqlclient mysqlclient_r PATHS %%LOCALBASE%%/lib/mysql)

if( NOT CMAKE_C_COMPILER_LOADED )
message(AUTHOR_WARNING "C language not enabled: Skipping detection of extra link libraries.")

0 comments on commit 18e5fa8

Please sign in to comment.