88# Script to build and install libbitcoin-server.
99#
1010# Script options:
11- # --with-icu Compile with International Components for Unicode.
12- # Since the addition of BIP-39 and later BIP-38
13- # support, libbitcoin conditionally incorporates ICU
14- # to provide BIP-38 and BIP-39 passphrase
15- # normalization features. Currently
16- # libbitcoin-explorer is the only other library that
17- # accesses this feature, so if you do not intend to
18- # use passphrase normalization this dependency can
19- # be avoided.
20- # --build-icu Builds ICU libraries.
2111# --build-boost Builds Boost libraries.
2212# --build-dir=<path> Location of downloaded and intermediate files.
2313# --prefix=<absolute-path> Library install location (defaults to /usr/local).
@@ -65,11 +55,6 @@ BUILD_SRC_DIR="build-libbitcoin-server"
6555
6656PRESUMED_CI_PROJECT_PATH=$( pwd)
6757
68- # ICU archive.
69- # ------------------------------------------------------------------------------
70- ICU_URL=" https://github.com/unicode-org/icu/releases/download/release-78.2/icu4c-78.2-sources.tgz"
71- ICU_ARCHIVE=" icu4c-78.2-sources.tgz"
72-
7358# Boost archive.
7459# ------------------------------------------------------------------------------
7560BOOST_URL=" https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.bz2"
@@ -227,16 +212,6 @@ display_help()
227212 display_message " Usage: ./install.sh [OPTION]..."
228213 display_message " Manage the installation of libbitcoin-server."
229214 display_message " Script options:"
230- display_message " --with-icu Compile with International Components for Unicode."
231- display_message " Since the addition of BIP-39 and later BIP-38 "
232- display_message " support, libbitcoin conditionally incorporates ICU "
233- display_message " to provide BIP-38 and BIP-39 passphrase "
234- display_message " normalization features. Currently "
235- display_message " libbitcoin-explorer is the only other library that "
236- display_message " accesses this feature, so if you do not intend to "
237- display_message " use passphrase normalization this dependency can "
238- display_message " be avoided."
239- display_message " --build-icu Build ICU libraries."
240215 display_message " --build-boost Build Boost libraries."
241216 display_message " --build-secp256k1 Build libsecp256k1 libraries."
242217 display_message " --build-dir=<path> Location of downloaded and intermediate files."
@@ -265,10 +240,8 @@ parse_command_line_options()
265240 (--disable-static) DISABLE_STATIC=" yes" ;;
266241
267242 # Common project options.
268- (--with-icu) WITH_ICU=" yes" ;;
269243
270244 # Custom build options.
271- (--build-icu) BUILD_ICU=" yes" ;;
272245 (--build-boost) BUILD_BOOST=" yes" ;;
273246 (--build-secp256k1) BUILD_SECP256K1=" yes" ;;
274247
@@ -392,12 +365,6 @@ handle_custom_options()
392365 export CMAKE_LIBRARY_PATH=" ${PREFIX} /lib:${CMAKE_LIBRARY_PATH} "
393366 fi
394367 fi
395-
396- # Process ICU
397- if [[ $WITH_ICU ]]; then
398- CUMULATIVE_FILTERED_ARGS+=" --with-icu"
399- CUMULATIVE_FILTERED_ARGS_CMAKE+=" -Dwith-icu=yes"
400- fi
401368}
402369
403370remove_build_options ()
@@ -472,8 +439,6 @@ display_configuration()
472439 display_message " CXXFLAGS : $CXXFLAGS "
473440 display_message " LDFLAGS : $LDFLAGS "
474441 display_message " LDLIBS : $LDLIBS "
475- display_message " WITH_ICU : $WITH_ICU "
476- display_message " BUILD_ICU : $BUILD_ICU "
477442 display_message " BUILD_BOOST : $BUILD_BOOST "
478443 display_message " BUILD_SECP256K1 : $BUILD_SECP256K1 "
479444 display_message " BOOST_ROOT : $BOOST_ROOT "
@@ -917,11 +882,6 @@ build_from_tarball_boost()
917882# ==============================================================================
918883build_all ()
919884{
920- unpack_from_tarball " $ICU_ARCHIVE " " $ICU_URL " gzip " $BUILD_ICU "
921- local SAVE_CPPFLAGS=" $CPPFLAGS "
922- export CPPFLAGS=" $CPPFLAGS ${ICU_FLAGS[@]} "
923- build_from_tarball " $ICU_ARCHIVE " source " $PARALLEL " " $BUILD_ICU " " ${ICU_OPTIONS[@]} " $CUMULATIVE_FILTERED_ARGS
924- export CPPFLAGS=$SAVE_CPPFLAGS
925885 unpack_from_tarball " $BOOST_ARCHIVE " " $BOOST_URL " bzip2 " $BUILD_BOOST "
926886 local SAVE_CPPFLAGS=" $CPPFLAGS "
927887 export CPPFLAGS=" $CPPFLAGS ${BOOST_FLAGS[@]} "
@@ -988,11 +948,6 @@ remove_install_options
988948
989949# Define build flags.
990950# ==============================================================================
991- # Define icu flags.
992- # ------------------------------------------------------------------------------
993- ICU_FLAGS=(
994- " -w" )
995-
996951# Define boost flags.
997952# ------------------------------------------------------------------------------
998953BOOST_FLAGS=(
@@ -1006,19 +961,6 @@ SECP256K1_FLAGS=(
1006961
1007962# Define build options.
1008963# ==============================================================================
1009- # Define icu options.
1010- # ------------------------------------------------------------------------------
1011- ICU_OPTIONS=(
1012- " --enable-draft" \
1013- " --enable-rpath" \
1014- " --enable-tools" \
1015- " --disable-extras" \
1016- " --disable-icuio" \
1017- " --disable-layout" \
1018- " --disable-layoutex" \
1019- " --disable-tests" \
1020- " --disable-samples" )
1021-
1022964# Define boost options.
1023965# ------------------------------------------------------------------------------
1024966BOOST_OPTIONS=(
0 commit comments