mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
graphics/gdal: Fix MYSQL option
PR: 269256 Reported by: Martin Birgmeier <d8zNeCFG@aon.at>
This commit is contained in:
parent
298ecce1c1
commit
18e5fa858b
2 changed files with 12 additions and 0 deletions
|
@ -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/
|
||||
|
|
11
graphics/gdal/files/patch-mysql
Normal file
11
graphics/gdal/files/patch-mysql
Normal file
|
@ -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.")
|
Loading…
Add table
Reference in a new issue