2018-10-12 12:19:08 +00:00
|
|
|
|
2018-11-30 19:52:45 +00:00
|
|
|
set(DEP_CMAKE_OPTS "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
|
|
|
|
|
|
|
|
include("deps-unix-common.cmake")
|
|
|
|
|
2020-09-01 17:04:22 +00:00
|
|
|
# Some Linuxes may have very old libpng, so it's best to bundle it instead of relying on the system version.
|
|
|
|
# find_package(PNG QUIET)
|
|
|
|
# if (NOT PNG_FOUND)
|
|
|
|
# message(WARNING "No PNG dev package found in system, building static library. You should install the system package.")
|
|
|
|
# endif ()
|
2020-04-28 07:56:54 +00:00
|
|
|
|
|
|
|
#TODO UDEV
|
|
|
|
|
2018-10-12 12:19:08 +00:00
|
|
|
ExternalProject_Add(dep_boost
|
|
|
|
EXCLUDE_FROM_ALL 1
|
2021-04-12 17:52:25 +00:00
|
|
|
URL "https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.gz"
|
2021-01-15 12:46:14 +00:00
|
|
|
URL_HASH SHA256=aeb26f80e80945e82ee93e5939baebdca47b9dee80a07d3144be1e1a6a66dd6a
|
2018-10-12 12:19:08 +00:00
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
CONFIGURE_COMMAND ./bootstrap.sh
|
2021-01-15 17:07:14 +00:00
|
|
|
--with-libraries=system,iostreams,filesystem,thread,log,locale,regex,date_time
|
2018-10-15 15:28:05 +00:00
|
|
|
"--prefix=${DESTDIR}/usr/local"
|
2018-10-12 12:19:08 +00:00
|
|
|
BUILD_COMMAND ./b2
|
|
|
|
-j ${NPROC}
|
2018-11-30 19:52:45 +00:00
|
|
|
--reconfigure
|
2018-10-12 12:19:08 +00:00
|
|
|
link=static
|
|
|
|
variant=release
|
|
|
|
threading=multi
|
|
|
|
boost.locale.icu=off
|
2021-02-04 19:31:50 +00:00
|
|
|
--disable-icu
|
2018-11-30 19:52:45 +00:00
|
|
|
cflags=-fPIC
|
|
|
|
cxxflags=-fPIC
|
2018-10-12 12:19:08 +00:00
|
|
|
install
|
|
|
|
INSTALL_COMMAND "" # b2 does that already
|
|
|
|
)
|
|
|
|
|
2021-03-20 15:16:50 +00:00
|
|
|
# ExternalProject_Add(dep_libopenssl
|
|
|
|
# EXCLUDE_FROM_ALL 1
|
|
|
|
# URL "https://github.com/openssl/openssl/archive/OpenSSL_1_1_0l.tar.gz"
|
|
|
|
# URL_HASH SHA256=e2acf0cf58d9bff2b42f2dc0aee79340c8ffe2c5e45d3ca4533dd5d4f5775b1d
|
|
|
|
# BUILD_IN_SOURCE 1
|
|
|
|
# CONFIGURE_COMMAND ./config
|
|
|
|
# "--prefix=${DESTDIR}/usr/local"
|
|
|
|
# "--libdir=lib"
|
|
|
|
# no-shared
|
|
|
|
# no-ssl3-method
|
|
|
|
# no-dynamic-engine
|
|
|
|
# -Wa,--noexecstack
|
|
|
|
# BUILD_COMMAND make depend && make "-j${NPROC}"
|
|
|
|
# INSTALL_COMMAND make install_sw
|
|
|
|
# )
|
2018-10-12 12:19:08 +00:00
|
|
|
|
2021-03-20 15:16:50 +00:00
|
|
|
# ExternalProject_Add(dep_libcurl
|
|
|
|
# EXCLUDE_FROM_ALL 1
|
|
|
|
# DEPENDS dep_libopenssl
|
|
|
|
# URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz"
|
|
|
|
# URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115
|
|
|
|
# BUILD_IN_SOURCE 1
|
|
|
|
# CONFIGURE_COMMAND ./configure
|
|
|
|
# --enable-static
|
|
|
|
# --disable-shared
|
|
|
|
# "--with-ssl=${DESTDIR}/usr/local"
|
|
|
|
# --with-pic
|
|
|
|
# --enable-ipv6
|
|
|
|
# --enable-versioned-symbols
|
|
|
|
# --enable-threaded-resolver
|
|
|
|
# --with-random=/dev/urandom
|
2020-03-25 08:38:51 +00:00
|
|
|
|
2021-03-20 15:16:50 +00:00
|
|
|
# # CA root certificate paths will be set for openssl at runtime.
|
|
|
|
# --without-ca-bundle
|
|
|
|
# --without-ca-path
|
|
|
|
# --with-ca-fallback # to look for the ssl backend's ca store
|
|
|
|
|
|
|
|
# --disable-ldap
|
|
|
|
# --disable-ldaps
|
|
|
|
# --disable-manual
|
|
|
|
# --disable-rtsp
|
|
|
|
# --disable-dict
|
|
|
|
# --disable-telnet
|
|
|
|
# --disable-pop3
|
|
|
|
# --disable-imap
|
|
|
|
# --disable-smb
|
|
|
|
# --disable-smtp
|
|
|
|
# --disable-gopher
|
|
|
|
# --without-gssapi
|
|
|
|
# --without-libpsl
|
|
|
|
# --without-libidn2
|
|
|
|
# --without-gnutls
|
|
|
|
# --without-polarssl
|
|
|
|
# --without-mbedtls
|
|
|
|
# --without-cyassl
|
|
|
|
# --without-nss
|
|
|
|
# --without-axtls
|
|
|
|
# --without-brotli
|
|
|
|
# --without-libmetalink
|
|
|
|
# --without-libssh
|
|
|
|
# --without-libssh2
|
|
|
|
# --without-librtmp
|
|
|
|
# --without-nghttp2
|
|
|
|
# --without-zsh-functions-dir
|
|
|
|
# BUILD_COMMAND make "-j${NPROC}"
|
|
|
|
# INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
|
|
|
|
# )
|
2020-03-25 08:38:51 +00:00
|
|
|
|
2019-11-25 11:15:47 +00:00
|
|
|
add_dependencies(dep_openvdb dep_boost)
|
2021-04-12 17:52:25 +00:00
|
|
|
|