Blame SOURCES/mariadb-pcdir.patch

a41a5b
Use PCDIR CMake option, if configured
a41a5b
a41a5b
Upstream install the server pkgconfig file into arch-independent directory
a41a5b
Reported to upstream as: https://jira.mariadb.org/browse/MDEV-14340
a41a5b
a41a5b
--- mariadb-10.5.5/support-files/CMakeLists.txt.old	2020-09-30 10:36:08.582490318 +0200
a41a5b
+++ mariadb-10.5.5/support-files/CMakeLists.txt	2020-09-30 10:38:58.079710848 +0200
a41a5b
@@ -91,7 +91,11 @@
a41a5b
   ENDIF()
a41a5b
 
a41a5b
   CONFIGURE_FILE(mariadb.pc.in ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc @ONLY)
a41a5b
+IF(INSTALL_PCDIR)
a41a5b
+  INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc DESTINATION ${INSTALL_PCDIR} COMPONENT Development)
a41a5b
+ELSE()
a41a5b
   INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc DESTINATION ${INSTALL_LIBDIR}/pkgconfig COMPONENT Development)
a41a5b
+ENDIF()
a41a5b
 
a41a5b
   INSTALL(FILES mysql.m4 DESTINATION ${INSTALL_SHAREDIR}/aclocal COMPONENT Development)
a41a5b