|
|
@ -21,6 +21,7 @@ Dependency options: |
|
|
|
--with-libtorrent-inc=[path] Path to libtorrent include files |
|
|
|
--with-libtorrent-inc=[path] Path to libtorrent include files |
|
|
|
--with-libtorrent-lib=[path] Path to libtorrent library files |
|
|
|
--with-libtorrent-lib=[path] Path to libtorrent library files |
|
|
|
--with-libcurl-inc=[path] Path to libcurl include files |
|
|
|
--with-libcurl-inc=[path] Path to libcurl include files |
|
|
|
|
|
|
|
--with-libcurl-lib=[path] Path to libcurl library files |
|
|
|
|
|
|
|
|
|
|
|
EOT |
|
|
|
EOT |
|
|
|
} |
|
|
|
} |
|
|
@ -152,6 +153,11 @@ while [ $# -gt 0 ]; do |
|
|
|
shift |
|
|
|
shift |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--with-libcurl-lib=*) |
|
|
|
|
|
|
|
QC_WITH_LIBCURL_LIB=$optarg |
|
|
|
|
|
|
|
shift |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
--verbose) |
|
|
|
--verbose) |
|
|
|
QC_DEBUG="Y" |
|
|
|
QC_DEBUG="Y" |
|
|
|
shift |
|
|
|
shift |
|
|
@ -176,6 +182,7 @@ echo EX_QTDIR=$EX_QTDIR |
|
|
|
echo QC_WITH_LIBTORRENT_INC=$QC_WITH_LIBTORRENT_INC |
|
|
|
echo QC_WITH_LIBTORRENT_INC=$QC_WITH_LIBTORRENT_INC |
|
|
|
echo QC_WITH_LIBTORRENT_LIB=$QC_WITH_LIBTORRENT_LIB |
|
|
|
echo QC_WITH_LIBTORRENT_LIB=$QC_WITH_LIBTORRENT_LIB |
|
|
|
echo QC_WITH_LIBCURL_INC=$QC_WITH_LIBCURL_INC |
|
|
|
echo QC_WITH_LIBCURL_INC=$QC_WITH_LIBCURL_INC |
|
|
|
|
|
|
|
echo QC_WITH_LIBCURL_LIB=$QC_WITH_LIBCURL_LIB |
|
|
|
echo |
|
|
|
echo |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
@ -293,7 +300,10 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
conf->addIncludePath(s); |
|
|
|
conf->addIncludePath(s); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
if(!conf->findHeader("libtorrent/extensions/ut_pex.hpp", QStringList(), &s)) { |
|
|
|
QStringList sl; |
|
|
|
|
|
|
|
sl << "/usr/include/"; |
|
|
|
|
|
|
|
sl << "/usr/local/include"; |
|
|
|
|
|
|
|
if(!conf->findHeader("libtorrent/extensions/ut_pex.hpp", sl, &s)) { |
|
|
|
qWarning("libtorrent v0.12 includes not found!\nYou can download it at http://www.libtorrent.net"); |
|
|
|
qWarning("libtorrent v0.12 includes not found!\nYou can download it at http://www.libtorrent.net"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
@ -367,6 +377,7 @@ public: |
|
|
|
-----BEGIN QCMOD----- |
|
|
|
-----BEGIN QCMOD----- |
|
|
|
name: libcurl |
|
|
|
name: libcurl |
|
|
|
arg: with-libcurl-inc=[path], Path to libcurl include files |
|
|
|
arg: with-libcurl-inc=[path], Path to libcurl include files |
|
|
|
|
|
|
|
arg: with-libcurl-lib=[path], Path to libcurl library files |
|
|
|
-----END QCMOD----- |
|
|
|
-----END QCMOD----- |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class qc_libcurl : public ConfObj |
|
|
|
class qc_libcurl : public ConfObj |
|
|
@ -384,19 +395,36 @@ public: |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
conf->addIncludePath(s); |
|
|
|
conf->addIncludePath(s); |
|
|
|
return true; |
|
|
|
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
QStringList sl; |
|
|
|
QStringList sl; |
|
|
|
sl += "/usr/include"; |
|
|
|
sl += "/usr/include"; |
|
|
|
sl += "/usr/local/include"; |
|
|
|
sl += "/usr/local/include"; |
|
|
|
sl += "/sw/include"; |
|
|
|
|
|
|
|
if(!conf->findHeader("curl/curl.h", sl, &s)) { |
|
|
|
if(!conf->findHeader("curl/curl.h", sl, &s)) { |
|
|
|
qWarning("libcurl includes not found!"); |
|
|
|
qWarning("libcurl includes not found!"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
conf->addIncludePath(s); |
|
|
|
conf->addIncludePath(s); |
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s = conf->getenv("QC_WITH_LIBCURL_LIB"); |
|
|
|
|
|
|
|
if(!s.isEmpty()) { |
|
|
|
|
|
|
|
if(!conf->checkLibrary(s, "curl")) { |
|
|
|
|
|
|
|
qWarning("libcurl library not found!"); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
conf->addLib(QString("-L") + s); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
if(!conf->findLibrary("curl", &s)) { |
|
|
|
|
|
|
|
qWarning("libcurl library not found!"); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!s.isEmpty()) |
|
|
|
|
|
|
|
conf->addLib(QString("-L") + s); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conf->addLib("-lcurl"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
#line 1 "python.qcm" |
|
|
|
#line 1 "python.qcm" |
|
|
@ -1366,6 +1394,7 @@ export EX_QTDIR |
|
|
|
export QC_WITH_LIBTORRENT_INC |
|
|
|
export QC_WITH_LIBTORRENT_INC |
|
|
|
export QC_WITH_LIBTORRENT_LIB |
|
|
|
export QC_WITH_LIBTORRENT_LIB |
|
|
|
export QC_WITH_LIBCURL_INC |
|
|
|
export QC_WITH_LIBCURL_INC |
|
|
|
|
|
|
|
export QC_WITH_LIBCURL_LIB |
|
|
|
export QC_DEBUG |
|
|
|
export QC_DEBUG |
|
|
|
rm -rf .qconftemp |
|
|
|
rm -rf .qconftemp |
|
|
|
( |
|
|
|
( |
|
|
|