accounts-qt-1.16-libdir.patch 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. From e3882382b2e98bce5be07baf23771856828123fc Mon Sep 17 00:00:00 2001
  2. From: Andreas Sturmlechner <asturm@gentoo.org>
  3. Date: Thu, 7 Dec 2023 23:20:32 +0100
  4. Subject: [PATCH] Make LIBDIR configurable
  5. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
  6. ---
  7. Accounts/AccountsQt5Config.cmake.in | 2 +-
  8. Accounts/AccountsQt6Config.cmake.in | 4 ++--
  9. Accounts/accounts-qt5.pc.in | 2 +-
  10. Accounts/accounts-qt6.pc.in | 2 +-
  11. common-installs-config.pri | 2 +-
  12. common-pkgconfig.pri | 2 +-
  13. common-project-config.pri | 6 +++---
  14. 7 files changed, 10 insertions(+), 10 deletions(-)
  15. diff --git a/Accounts/AccountsQt5Config.cmake.in b/Accounts/AccountsQt5Config.cmake.in
  16. index 746f689..9280a7d 100644
  17. --- a/Accounts/AccountsQt5Config.cmake.in
  18. +++ b/Accounts/AccountsQt5Config.cmake.in
  19. @@ -1,5 +1,5 @@
  20. # ACCOUNTSQT_INCLUDE_DIRS - The libaccounts-qt include directories
  21. # ACCOUNTSQT_LIBRARIES - The libraries needed to use libaccounts-qt
  22. -set(ACCOUNTSQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
  23. +set(ACCOUNTSQT_LIBRARIES $${INSTALL_PREFIX}/$${LIBDIR}/lib$${TARGET}.so)
  24. set(ACCOUNTSQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET}/)
  25. diff --git a/Accounts/AccountsQt6Config.cmake.in b/Accounts/AccountsQt6Config.cmake.in
  26. index 55a8964..9280a7d 100644
  27. --- a/Accounts/AccountsQt6Config.cmake.in
  28. +++ b/Accounts/AccountsQt6Config.cmake.in
  29. @@ -1,5 +1,5 @@
  30. # ACCOUNTSQT_INCLUDE_DIRS - The libaccounts-qt include directories
  31. # ACCOUNTSQT_LIBRARIES - The libraries needed to use libaccounts-qt
  32. -set(ACCOUNTSQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
  33. -set(ACCOUNTSQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET}/)
  34. \ No newline at end of file
  35. +set(ACCOUNTSQT_LIBRARIES $${INSTALL_PREFIX}/$${LIBDIR}/lib$${TARGET}.so)
  36. +set(ACCOUNTSQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET}/)
  37. diff --git a/Accounts/accounts-qt5.pc.in b/Accounts/accounts-qt5.pc.in
  38. index fbfcea8..faea96b 100644
  39. --- a/Accounts/accounts-qt5.pc.in
  40. +++ b/Accounts/accounts-qt5.pc.in
  41. @@ -1,6 +1,6 @@
  42. prefix=$$INSTALL_PREFIX
  43. exec_prefix=${prefix}
  44. -libdir=$$INSTALL_LIBDIR
  45. +libdir=${prefix}/$$LIBDIR
  46. includedir=${prefix}/include/accounts-qt5
  47. servicefilesdir=${prefix}/share/accounts/services
  48. servicetypefilesdir=${prefix}/share/accounts/service-types
  49. diff --git a/Accounts/accounts-qt6.pc.in b/Accounts/accounts-qt6.pc.in
  50. index c625b2e..cdc0233 100644
  51. --- a/Accounts/accounts-qt6.pc.in
  52. +++ b/Accounts/accounts-qt6.pc.in
  53. @@ -1,6 +1,6 @@
  54. prefix=$$INSTALL_PREFIX
  55. exec_prefix=${prefix}
  56. -libdir=$$INSTALL_LIBDIR
  57. +libdir=${prefix}/$$LIBDIR
  58. includedir=${prefix}/include/accounts-qt6
  59. servicefilesdir=${prefix}/share/accounts/services
  60. servicetypefilesdir=${prefix}/share/accounts/service-types
  61. diff --git a/common-installs-config.pri b/common-installs-config.pri
  62. index 82baf75..420accb 100644
  63. --- a/common-installs-config.pri
  64. +++ b/common-installs-config.pri
  65. @@ -17,7 +17,7 @@ contains( TEMPLATE, app ) {
  66. #-----------------------------------------------------------------------------
  67. contains( TEMPLATE, lib ) {
  68. - target.path = $${INSTALL_LIBDIR}
  69. + target.path = $${INSTALL_PREFIX}/$${LIBDIR}
  70. INSTALLS += target
  71. message("====")
  72. message("==== INSTALLS += target")
  73. diff --git a/common-pkgconfig.pri b/common-pkgconfig.pri
  74. index 975068a..9f010d3 100644
  75. --- a/common-pkgconfig.pri
  76. +++ b/common-pkgconfig.pri
  77. @@ -3,7 +3,7 @@
  78. !isEmpty(pkgconfig.files) {
  79. QMAKE_SUBSTITUTES += $${pkgconfig.files}.in
  80. pkgconfig.CONFIG = no_check_exist
  81. - pkgconfig.path = $${INSTALL_LIBDIR}/pkgconfig
  82. + pkgconfig.path = $${INSTALL_PREFIX}/$${LIBDIR}/pkgconfig
  83. QMAKE_EXTRA_TARGETS += pkgconfig
  84. QMAKE_CLEAN += $${pkgconfig.files}
  85. diff --git a/common-project-config.pri b/common-project-config.pri
  86. index b856961..0484e36 100644
  87. --- a/common-project-config.pri
  88. +++ b/common-project-config.pri
  89. @@ -44,15 +44,15 @@ INSTALL_LIBDIR = $${INSTALL_PREFIX}/lib
  90. isEmpty( LIBDIR ) {
  91. message("====")
  92. message("==== NOTE: To override the library installation path run: `qmake LIBDIR=/custom/path'")
  93. - message("==== (current installation path is `$${INSTALL_LIBDIR}')")
  94. + message("==== (current installation path is `$${INSTALL_PREFIX}/$${LIBDIR}')")
  95. } else {
  96. INSTALL_LIBDIR = $${LIBDIR}
  97. message("====")
  98. - message("==== library install path set to `$${INSTALL_LIBDIR}'")
  99. + message("==== library install path set to `$${INSTALL_PREFIX}/$${LIBDIR}'")
  100. }
  101. isEmpty ( CMAKE_CONFIG_PATH ) {
  102. - CMAKE_CONFIG_PATH = $${INSTALL_LIBDIR}/cmake
  103. + CMAKE_CONFIG_PATH = $${INSTALL_PREFIX}/$${LIBDIR}/cmake
  104. message("====")
  105. message("==== NOTE: To override the cmake module installation path run: `qmake CMAKE_CONFIG_PATH=/custom/path'")
  106. message("==== (current installation path is `$${CMAKE_CONFIG_PATH}')")
  107. --
  108. 2.43.0