Changeset View
Changeset View
Standalone View
Standalone View
libraries/osx/build-osx-libs.sh
Show All 15 Lines | |||||
# | # | ||||
# Building against an SDK is an option, though not required, | # Building against an SDK is an option, though not required, | ||||
# as not all build environments contain the Developer SDKs | # as not all build environments contain the Developer SDKs | ||||
# (Xcode does, but the Command Line Tools package does not) | # (Xcode does, but the Command Line Tools package does not) | ||||
# | # | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# Library versions for ease of updating: | # Library versions for ease of updating: | ||||
ZLIB_VERSION="zlib-1.2.11" | ZLIB_VERSION="zlib-1.2.11" | ||||
CURL_VERSION="curl-7.59.0" | CURL_VERSION="curl-7.71.0" | ||||
ICONV_VERSION="libiconv-1.15" | ICONV_VERSION="libiconv-1.16" | ||||
XML2_VERSION="libxml2-2.9.8" | XML2_VERSION="libxml2-2.9.10" | ||||
SDL2_VERSION="SDL2-2.0.5" | SDL2_VERSION="SDL2-2.0.5" | ||||
# NOTE: remember to also update LIB_URL below when changing version | # NOTE: remember to also update LIB_URL below when changing version | ||||
BOOST_VERSION="boost_1_64_0" | BOOST_VERSION="boost_1_64_0" | ||||
# NOTE: remember to also update LIB_URL below when changing version | # NOTE: remember to also update LIB_URL below when changing version | ||||
WXWIDGETS_VERSION="wxWidgets-3.0.3.1" | WXWIDGETS_VERSION="wxWidgets-3.0.3.1" | ||||
# libpng was included as part of X11 but that's removed from Mountain Lion | # libpng was included as part of X11 but that's removed from Mountain Lion | ||||
# (also the Snow Leopard version was ancient 1.2) | # (also the Snow Leopard version was ancient 1.2) | ||||
PNG_VERSION="libpng-1.6.34" | PNG_VERSION="libpng-1.6.36" | ||||
OGG_VERSION="libogg-1.3.3" | OGG_VERSION="libogg-1.3.4" | ||||
VORBIS_VERSION="libvorbis-1.3.6" | VORBIS_VERSION="libvorbis-1.3.7" | ||||
# gloox requires GnuTLS, GnuTLS requires Nettle and GMP | # gloox requires GnuTLS, GnuTLS requires Nettle and GMP | ||||
GMP_VERSION="gmp-6.1.2" | GMP_VERSION="gmp-6.2.0" | ||||
NETTLE_VERSION="nettle-3.5.1" | NETTLE_VERSION="nettle-3.6" | ||||
# NOTE: remember to also update LIB_URL below when changing version | # NOTE: remember to also update LIB_URL below when changing version | ||||
GLOOX_VERSION="gloox-1.0.24" | |||||
GNUTLS_VERSION="gnutls-3.6.13" | GNUTLS_VERSION="gnutls-3.6.13" | ||||
GLOOX_VERSION="gloox-1.0.22" | |||||
# OS X only includes part of ICU, and only the dylib | # OS X only includes part of ICU, and only the dylib | ||||
# NOTE: remember to also update LIB_URL below when changing version | # NOTE: remember to also update LIB_URL below when changing version | ||||
ICU_VERSION="icu4c-59_2" | ICU_VERSION="icu4c-67_1" | ||||
ENET_VERSION="enet-1.3.13" | ENET_VERSION="enet-1.3.17" | ||||
MINIUPNPC_VERSION="miniupnpc-2.0.20180222" | MINIUPNPC_VERSION="miniupnpc-2.1" | ||||
SODIUM_VERSION="libsodium-1.0.18" | SODIUM_VERSION="libsodium-1.0.18" | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# Bundled with the game: | # Bundled with the game: | ||||
# * SpiderMonkey 45 | # * SpiderMonkey 45 | ||||
# * NVTT | # * NVTT | ||||
# * FCollada | # * FCollada | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# We use suffixes here in order to force rebuilding when patching these libs | # We use suffixes here in order to force rebuilding when patching these libs | ||||
▲ Show 20 Lines • Show All 701 Lines • ▼ Show 20 Lines | |||||
popd > /dev/null | popd > /dev/null | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
echo -e "Building ICU..." | echo -e "Building ICU..." | ||||
LIB_VERSION="${ICU_VERSION}" | LIB_VERSION="${ICU_VERSION}" | ||||
LIB_ARCHIVE="$LIB_VERSION-src.tgz" | LIB_ARCHIVE="$LIB_VERSION-src.tgz" | ||||
LIB_DIRECTORY="icu" | LIB_DIRECTORY="icu" | ||||
LIB_URL="https://github.com/unicode-org/icu/releases/download/release-59-2/" | LIB_URL="https://github.com/unicode-org/icu/releases/download/release-67-1/" | ||||
mkdir -p $LIB_DIRECTORY | mkdir -p $LIB_DIRECTORY | ||||
pushd icu > /dev/null | pushd icu > /dev/null | ||||
if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$LIB_VERSION" ]] | if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$LIB_VERSION" ]] | ||||
then | then | ||||
INSTALL_DIR="$(pwd)" | INSTALL_DIR="$(pwd)" | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator