termux-packages/packages/panda3d/dtool-src-dtoolutil-filename.cxx.patch
2022-04-12 13:32:18 +09:00

21 lines
532 B
Diff

--- a/dtool/src/dtoolutil/filename.cxx
+++ b/dtool/src/dtoolutil/filename.cxx
@@ -561,7 +561,7 @@
#else
// Posix case.
- temp_directory = "/tmp";
+ temp_directory = "@TERMUX_PREFIX@/tmp";
#endif // WIN32
if (temp_directory.empty()) {
@@ -668,7 +668,7 @@
#elif defined(__FreeBSD__)
common_appdata_directory = "/usr/local/share";
#else
- common_appdata_directory = "/usr/share";
+ common_appdata_directory = "@TERMUX_PREFIX@/share";
#endif // WIN32
if (common_appdata_directory.empty()) {