File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -346,6 +346,12 @@ public:
346346 if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
347347 conf->addExtra("CONFIG += debug");
348348 }
349+ #ifdef Q_OS_FREEBSD
350+ conf->addLib("-lexecinfo");
351+ conf->addExtra("MANPREFIX = \$\$ PREFIX");
352+ #else
353+ conf->addExtra("MANPREFIX = \$\$ PREFIX/share");
354+ #endif
349355 return(QT_VERSION >= 0x040500);
350356 }
351357};
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ public:
2121 if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
2222 conf->addExtra("CONFIG += debug");
2323 }
24+ #ifdef Q_OS_FREEBSD
25+ conf->addLib("-lexecinfo");
26+ conf->addExtra("MANPREFIX = $$PREFIX");
27+ #else
28+ conf->addExtra("MANPREFIX = $$PREFIX/share");
29+ #endif
2430 return(QT_VERSION >= 0x040500);
2531 }
2632};
Original file line number Diff line number Diff line change 1212#include < QSet>
1313#include < iostream>
1414#include < errno.h>
15- #ifdef Q_WS_MAC
15+ #if defined( Q_WS_MAC) || defined(Q_OS_FREEBSD)
1616#include < sys/param.h>
1717#include < sys/mount.h>
1818#include < string.h>
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const int UNLEN = 256;
6060#endif
6161
6262#ifndef Q_WS_WIN
63- #ifdef Q_WS_MAC
63+ #if defined( Q_WS_MAC) || defined(Q_OS_FREEBSD)
6464#include < sys/param.h>
6565#include < sys/mount.h>
6666#else
Original file line number Diff line number Diff line change 1919} else {
2020 man.files = ../doc/qbittorrent.1
2121}
22- man.path = $$PREFIX /share/man/man1/
22+
23+ man.path = $$MANPREFIX /man/man1/
2324INSTALLS += man
2425
2526# Menu Icon
You can’t perform that action at this time.
0 commit comments