0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-10-04 02:39:38 +00:00
Files
termux-packages/packages/vulkan-loader-generic/0001-fix-hardcoded-pathes.patch
Chongyun Lee e9d5c31f9f new package: vulkan-loader-generic
Co-Authored-By: Jia Yuan Lo <jylo06g@gmail.com>
2023-02-23 17:11:32 +08:00

26 lines
1.4 KiB
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -149,9 +149,9 @@
set(LOADER_HELPER_FOLDER "Helper Targets")
if(UNIX)
- set(FALLBACK_CONFIG_DIRS "/etc/xdg" CACHE STRING
+ set(FALLBACK_CONFIG_DIRS "@TERMUX_PREFIX@/etc/xdg" CACHE STRING
"Search path to use when XDG_CONFIG_DIRS is unset or empty or the current process is SUID/SGID. Default is freedesktop compliant.")
- set(FALLBACK_DATA_DIRS "/usr/local/share:/usr/share" CACHE STRING
+ set(FALLBACK_DATA_DIRS "@TERMUX_PREFIX@/share" CACHE STRING
"Search path to use when XDG_DATA_DIRS is unset or empty or the current process is SUID/SGID. Default is freedesktop compliant.")
set(SYSCONFDIR "" CACHE STRING
"System-wide search directory. If not set or empty, CMAKE_INSTALL_FULL_SYSCONFDIR and /etc are used.")
@@ -338,8 +338,8 @@
target_compile_definitions(loader_common_options INTERFACE SYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}")
# Make sure /etc is searched by the loader
- if(NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "/etc"))
- target_compile_definitions(loader_common_options INTERFACE EXTRASYSCONFDIR="/etc")
+ if(NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "@TERMUX_PREFIX@/etc"))
+ target_compile_definitions(loader_common_options INTERFACE EXTRASYSCONFDIR="@TERMUX_PREFIX@/etc")
endif()
endif()
endif()