summaryrefslogtreecommitdiff
path: root/devel/xpeviewer/files/patch-XOptions_xoptions.cpp
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2022-01-07 08:45:26 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2022-01-07 08:45:26 +0000
commitc1ea9f04a29c86295647b02686a769fde11839f4 (patch)
tree31463ad6c8608cc3fc3c02eac299efbf57c3e2bc /devel/xpeviewer/files/patch-XOptions_xoptions.cpp
parentscience/PETSc: Update 3.14.1 -> 3.16.3 (diff)
devel/xpeviewer: new port had been added (+)
This is versatile graphical viewer and editor for PE files, based on the stock Qt libraries and a few custom components. WWW: https://github.com/horsicq/XPEViewer
Diffstat (limited to 'devel/xpeviewer/files/patch-XOptions_xoptions.cpp')
-rw-r--r--devel/xpeviewer/files/patch-XOptions_xoptions.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/xpeviewer/files/patch-XOptions_xoptions.cpp b/devel/xpeviewer/files/patch-XOptions_xoptions.cpp
new file mode 100644
index 000000000000..78bd770151f7
--- /dev/null
+++ b/devel/xpeviewer/files/patch-XOptions_xoptions.cpp
@@ -0,0 +1,22 @@
+--- XOptions/xoptions.cpp.orig 2021-08-30 16:51:52 UTC
++++ XOptions/xoptions.cpp
+@@ -742,7 +742,7 @@ QList<QString> XOptions::getAllFilesFromDirectory(QStr
+ bool XOptions::checkNative()
+ {
+ bool bResult=false;
+-#ifdef Q_OS_MAC
++#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD)
+ bResult=true;
+ #elif defined(Q_OS_LINUX)
+ QString sApplicationDirPath=qApp->applicationDirPath();
+@@ -792,6 +792,10 @@ QString XOptions::getApplicationDataPath()
+ {
+ sResult=sApplicationDirPath;
+ }
++#elif defined(Q_OS_FREEBSD)
++ sResult = QStandardPaths::standardLocations(
++ QStandardPaths::GenericDataLocation).at(1)
++ + QDir::separator() + qApp->applicationName();
+ #else
+ sResult=sApplicationDirPath;
+ #endif