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")
|
|
|
|
|
2018-10-12 12:19:08 +00:00
|
|
|
ExternalProject_Add(dep_boost
|
|
|
|
EXCLUDE_FROM_ALL 1
|
2019-10-25 11:09:25 +00:00
|
|
|
URL "https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz"
|
|
|
|
URL_HASH SHA256=882b48708d211a5f48e60b0124cf5863c1534cd544ecd0664bb534a4b5d506e9
|
2018-10-12 12:19:08 +00:00
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
CONFIGURE_COMMAND ./bootstrap.sh
|
2019-10-25 11:09:25 +00:00
|
|
|
--with-libraries=system,iostreams,filesystem,thread,log,locale,regex
|
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
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
ExternalProject_Add(dep_libopenssl
|
|
|
|
EXCLUDE_FROM_ALL 1
|
2019-11-26 11:30:43 +00:00
|
|
|
URL "https://github.com/openssl/openssl/archive/OpenSSL_1_1_0l.tar.gz"
|
|
|
|
URL_HASH SHA256=e2acf0cf58d9bff2b42f2dc0aee79340c8ffe2c5e45d3ca4533dd5d4f5775b1d
|
2018-10-12 12:19:08 +00:00
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
CONFIGURE_COMMAND ./config
|
2018-10-15 15:28:05 +00:00
|
|
|
"--prefix=${DESTDIR}/usr/local"
|
2018-10-12 12:19:08 +00:00
|
|
|
no-shared
|
|
|
|
no-ssl3-method
|
|
|
|
no-dynamic-engine
|
|
|
|
-Wa,--noexecstack
|
|
|
|
BUILD_COMMAND make depend && make "-j${NPROC}"
|
|
|
|
INSTALL_COMMAND make install_sw
|
|
|
|
)
|
|
|
|
|
|
|
|
ExternalProject_Add(dep_libcurl
|
|
|
|
EXCLUDE_FROM_ALL 1
|
2019-03-25 10:44:07 +00:00
|
|
|
DEPENDS dep_libopenssl
|
2018-10-12 12:19:08 +00:00
|
|
|
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
|
|
|
|
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
|
|
|
|
--disable-ldap
|
|
|
|
--disable-ldaps
|
|
|
|
--disable-manual
|
|
|
|
--disable-rtsp
|
|
|
|
--disable-dict
|
|
|
|
--disable-telnet
|
|
|
|
--disable-pop3
|
|
|
|
--disable-imap
|
|
|
|
--disable-smb
|
|
|
|
--disable-smtp
|
|
|
|
--disable-gopher
|
|
|
|
--disable-crypto-auth
|
|
|
|
--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}"
|
2018-10-15 15:28:05 +00:00
|
|
|
INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
|
2018-10-12 12:19:08 +00:00
|
|
|
)
|
|
|
|
|
2019-01-07 18:17:10 +00:00
|
|
|
if (DEP_WX_STABLE)
|
2019-11-25 11:15:47 +00:00
|
|
|
set(DEP_WX_TAG "v3.0.4")
|
2019-01-07 18:17:10 +00:00
|
|
|
else ()
|
2019-11-25 11:15:47 +00:00
|
|
|
set(DEP_WX_TAG "v3.1.1-patched")
|
2019-01-07 18:17:10 +00:00
|
|
|
endif()
|
|
|
|
|
2018-10-12 12:19:08 +00:00
|
|
|
ExternalProject_Add(dep_wxwidgets
|
|
|
|
EXCLUDE_FROM_ALL 1
|
2019-11-25 11:15:47 +00:00
|
|
|
GIT_REPOSITORY "https://github.com/prusa3d/wxWidgets"
|
|
|
|
GIT_TAG "${DEP_WX_TAG}"
|
2018-10-12 12:19:08 +00:00
|
|
|
BUILD_IN_SOURCE 1
|
2019-11-25 11:15:47 +00:00
|
|
|
# PATCH_COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/wxwidgets-pngprefix.h" src/png/pngprefix.h
|
2018-10-12 12:19:08 +00:00
|
|
|
CONFIGURE_COMMAND ./configure
|
2018-10-15 15:28:05 +00:00
|
|
|
"--prefix=${DESTDIR}/usr/local"
|
2018-10-12 12:19:08 +00:00
|
|
|
--disable-shared
|
2019-01-07 18:17:10 +00:00
|
|
|
--with-gtk=2
|
2018-10-12 12:19:08 +00:00
|
|
|
--with-opengl
|
|
|
|
--enable-unicode
|
|
|
|
--enable-graphics_ctx
|
|
|
|
--with-regex=builtin
|
|
|
|
--with-libpng=builtin
|
|
|
|
--with-libxpm=builtin
|
|
|
|
--with-libjpeg=builtin
|
|
|
|
--with-libtiff=builtin
|
2019-03-25 14:39:12 +00:00
|
|
|
--with-zlib
|
2018-10-12 12:19:08 +00:00
|
|
|
--with-expat=builtin
|
|
|
|
--disable-precomp-headers
|
|
|
|
--enable-debug_info
|
|
|
|
--enable-debug_gdb
|
2018-11-30 19:52:45 +00:00
|
|
|
--disable-debug
|
|
|
|
--disable-debug_flag
|
2018-10-12 12:19:08 +00:00
|
|
|
BUILD_COMMAND make "-j${NPROC}" && make -C locale allmo
|
|
|
|
INSTALL_COMMAND make install
|
|
|
|
)
|
2019-10-25 11:09:25 +00:00
|
|
|
|
2019-11-25 11:15:47 +00:00
|
|
|
add_dependencies(dep_openvdb dep_boost)
|