|
|
@ -21,6 +21,7 @@ Dependency options: |
|
|
|
--disable-gui Disable qBittorrent Graphical user |
|
|
|
--disable-gui Disable qBittorrent Graphical user |
|
|
|
interface for headless running |
|
|
|
interface for headless running |
|
|
|
--with-libboost-inc=[path] Path to libboost include files |
|
|
|
--with-libboost-inc=[path] Path to libboost include files |
|
|
|
|
|
|
|
--with-libboost-lib=[path] Path to libboost library files |
|
|
|
--disable-libnotify Disable use of libnotify |
|
|
|
--disable-libnotify Disable use of libnotify |
|
|
|
--disable-geoip-database Disable use of geoip-database |
|
|
|
--disable-geoip-database Disable use of geoip-database |
|
|
|
--with-geoip-database-embedded Geoip Database will be embedded in |
|
|
|
--with-geoip-database-embedded Geoip Database will be embedded in |
|
|
@ -152,6 +153,11 @@ while [ $# -gt 0 ]; do |
|
|
|
shift |
|
|
|
shift |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--with-libboost-lib=*) |
|
|
|
|
|
|
|
QC_WITH_LIBBOOST_LIB=$optarg |
|
|
|
|
|
|
|
shift |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
--disable-libnotify) |
|
|
|
--disable-libnotify) |
|
|
|
QC_DISABLE_libnotify="Y" |
|
|
|
QC_DISABLE_libnotify="Y" |
|
|
|
shift |
|
|
|
shift |
|
|
@ -190,6 +196,7 @@ echo DATADIR=$DATADIR |
|
|
|
echo EX_QTDIR=$EX_QTDIR |
|
|
|
echo EX_QTDIR=$EX_QTDIR |
|
|
|
echo QC_DISABLE_GUI=$QC_DISABLE_GUI |
|
|
|
echo QC_DISABLE_GUI=$QC_DISABLE_GUI |
|
|
|
echo QC_WITH_LIBBOOST_INC=$QC_WITH_LIBBOOST_INC |
|
|
|
echo QC_WITH_LIBBOOST_INC=$QC_WITH_LIBBOOST_INC |
|
|
|
|
|
|
|
echo QC_WITH_LIBBOOST_LIB=$QC_WITH_LIBBOOST_LIB |
|
|
|
echo QC_DISABLE_libnotify=$QC_DISABLE_libnotify |
|
|
|
echo QC_DISABLE_libnotify=$QC_DISABLE_libnotify |
|
|
|
echo QC_DISABLE_geoip_database=$QC_DISABLE_geoip_database |
|
|
|
echo QC_DISABLE_geoip_database=$QC_DISABLE_geoip_database |
|
|
|
echo QC_WITH_GEOIP_DATABASE_EMBEDDED=$QC_WITH_GEOIP_DATABASE_EMBEDDED |
|
|
|
echo QC_WITH_GEOIP_DATABASE_EMBEDDED=$QC_WITH_GEOIP_DATABASE_EMBEDDED |
|
|
@ -362,11 +369,13 @@ public: |
|
|
|
else |
|
|
|
else |
|
|
|
conf->addDefine("LIBTORRENT_0_15"); |
|
|
|
conf->addDefine("LIBTORRENT_0_15"); |
|
|
|
// Get linking parameters |
|
|
|
// Get linking parameters |
|
|
|
QStringList params; |
|
|
|
//QStringList params; |
|
|
|
QByteArray staticlibs; |
|
|
|
//QByteArray staticlibs; |
|
|
|
params << "--static" << "--libs" << "libtorrent-rasterbar"; |
|
|
|
//params << "--static" << "--libs" << "libtorrent-rasterbar"; |
|
|
|
conf->doCommand("pkg-config", params, &staticlibs); |
|
|
|
//conf->doCommand("pkg-config", params, &staticlibs); |
|
|
|
conf->addLib(staticlibs.trimmed()); |
|
|
|
//conf->addLib(staticlibs.trimmed()); |
|
|
|
|
|
|
|
//libcrypto |
|
|
|
|
|
|
|
conf->addLib("-lcrypto"); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -375,6 +384,7 @@ public: |
|
|
|
-----BEGIN QCMOD----- |
|
|
|
-----BEGIN QCMOD----- |
|
|
|
name: libboost |
|
|
|
name: libboost |
|
|
|
arg: with-libboost-inc=[path], Path to libboost include files |
|
|
|
arg: with-libboost-inc=[path], Path to libboost include files |
|
|
|
|
|
|
|
arg: with-libboost-lib=[path], Path to libboost library files |
|
|
|
-----END QCMOD----- |
|
|
|
-----END QCMOD----- |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class qc_libboost : public ConfObj |
|
|
|
class qc_libboost : public ConfObj |
|
|
@ -424,6 +434,30 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
conf->addIncludePath(s); |
|
|
|
conf->addIncludePath(s); |
|
|
|
|
|
|
|
// Find library |
|
|
|
|
|
|
|
s = conf->getenv("QC_WITH_LIBBOOST_LIB"); |
|
|
|
|
|
|
|
if(!s.isEmpty()) { |
|
|
|
|
|
|
|
if(!conf->checkLibrary(s, "boost_system-mt")) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
QStringList sl; |
|
|
|
|
|
|
|
sl << "/usr/lib/"; |
|
|
|
|
|
|
|
sl << "/usr/lib64/"; |
|
|
|
|
|
|
|
sl << "/usr/local/lib/"; |
|
|
|
|
|
|
|
sl << "/usr/local/lib64/"; |
|
|
|
|
|
|
|
bool found = false; |
|
|
|
|
|
|
|
foreach(s, sl){ |
|
|
|
|
|
|
|
if(conf->checkLibrary(s, "boost_system-mt")) { |
|
|
|
|
|
|
|
found = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(!found) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
conf->addLib(QString("-L") + s); |
|
|
|
|
|
|
|
conf->addLib("-lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt"); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -1483,6 +1517,7 @@ export DATADIR |
|
|
|
export EX_QTDIR |
|
|
|
export EX_QTDIR |
|
|
|
export QC_DISABLE_GUI |
|
|
|
export QC_DISABLE_GUI |
|
|
|
export QC_WITH_LIBBOOST_INC |
|
|
|
export QC_WITH_LIBBOOST_INC |
|
|
|
|
|
|
|
export QC_WITH_LIBBOOST_LIB |
|
|
|
export QC_DISABLE_libnotify |
|
|
|
export QC_DISABLE_libnotify |
|
|
|
export QC_DISABLE_geoip_database |
|
|
|
export QC_DISABLE_geoip_database |
|
|
|
export QC_WITH_GEOIP_DATABASE_EMBEDDED |
|
|
|
export QC_WITH_GEOIP_DATABASE_EMBEDDED |
|
|
|