Ticket #3721: mac-libs.diff

File mac-libs.diff, 4.7 KB (added by fabio, 8 years ago)
  • build-osx-libs.sh

     
    2121# --------------------------------------------------------------
    2222# Library versions for ease of updating:
    2323ZLIB_VERSION="zlib-1.2.8"
    24 CURL_VERSION="curl-7.32.0"
     24CURL_VERSION="curl-7.46.0"
    2525ICONV_VERSION="libiconv-1.14"
    26 XML2_VERSION="libxml2-2.9.1"
    27 SDL2_VERSION="SDL-2.0.4-9134"
    28 BOOST_VERSION="boost_1_52_0"
    29 # * wxWidgets 2.9+ is necessary for 64-bit OS X build w/ OpenGL support
     26XML2_VERSION="libxml2-2.9.3"
     27SDL2_VERSION="SDL2-2.0.4"
     28BOOST_VERSION="boost_1_60_0"
    3029WXWIDGETS_VERSION="wxWidgets-3.0.2"
    3130JPEG_VERSION="jpegsrc.v8d"
    3231JPEG_DIR="jpeg-8d" # Must match directory name inside source tarball
    3332# * libpng was included as part of X11 but that's removed from Mountain Lion
    3433#   (also the Snow Leopard version was ancient 1.2)
    35 PNG_VERSION="libpng-1.6.19"
    36 OGG_VERSION="libogg-1.3.0"
    37 VORBIS_VERSION="libvorbis-1.3.3"
     34PNG_VERSION="libpng-1.6.20"
     35OGG_VERSION="libogg-1.3.2"
     36VORBIS_VERSION="libvorbis-1.3.5"
    3837# gloox is necessary for multiplayer lobby
    39 GLOOX_VERSION="gloox-1.0.9"
     38GLOOX_VERSION="gloox-1.0.14"
    4039# NSPR is necessary for threadsafe Spidermonkey
    41 NSPR_VERSION="4.10.3"
     40NSPR_VERSION="4.11"
    4241# OS X only includes part of ICU, and only the dylib
    43 ICU_VERSION="icu4c-52_1"
    44 ENET_VERSION="enet-1.3.12"
    45 MINIUPNPC_VERSION="miniupnpc-1.9.20151008"
     42ICU_VERSION="icu4c-56_1"
     43ENET_VERSION="enet-1.3.13"
     44MINIUPNPC_VERSION="miniupnpc-1.9.20151026"
    4645# --------------------------------------------------------------
    4746# Bundled with the game:
    4847# * SpiderMonkey 31
     
    271270LIB_VERSION="${SDL2_VERSION}"
    272271LIB_ARCHIVE="$LIB_VERSION.tar.gz"
    273272LIB_DIRECTORY=$LIB_VERSION
    274 LIB_URL="https://www.libsdl.org/tmp/"
     273LIB_URL="https://libsdl.org/release/"
    275274
    276275mkdir -p sdl2
    277276pushd sdl2 > /dev/null
     
    355354  mkdir -p build-release
    356355  pushd build-release
    357356
    358   CONF_OPTS="--prefix=$INSTALL_DIR --disable-shared --enable-macosx_arch=$ARCH --enable-unicode --with-cocoa --with-opengl --with-libiconv-prefix=${ICONV_DIR} --with-expat=builtin --with-libjpeg=builtin --with-png=builtin --without-libtiff --without-sdl --without-x"
     357  CONF_OPTS="--prefix=$INSTALL_DIR --disable-shared --enable-macosx_arch=$ARCH --enable-unicode --with-cocoa --with-opengl --with-libiconv-prefix=${ICONV_DIR} --with-expat=builtin --with-libjpeg=builtin --with-png=builtin --without-libtiff --without-sdl --without-x --disable-webview --disable-webkit --disable-webviewwebkit --disable-webviewie"
    359358  # wxWidgets configure now defaults to targeting 10.5, if not specified,
    360359  # but that conflicts with our flags
    361360  if [[ $MIN_OSX_VERSION && ${MIN_OSX_VERSION-_} ]]; then
     
    516515  tar -xf $LIB_ARCHIVE
    517516  pushd $LIB_DIRECTORY
    518517
    519   # patch gloox to fix build error (fixed upstream in r4529)
    520518  # TODO: pulls in libresolv dependency from /usr/lib
    521519  # TODO: if we ever use SSL/TLS, that will add yet another dependency...
    522   (patch -p0 -i ../../patches/gloox-r4529.diff && ./configure CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" --prefix="$INSTALL_DIR" --enable-shared=no --with-zlib="${ZLIB_DIR}" --without-libidn --without-gnutls --without-openssl --without-tests --without-examples && make ${JOBS} && make install) || die "gloox build failed"
     520  (./configure CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" --prefix="$INSTALL_DIR" --enable-shared=no --with-zlib="${ZLIB_DIR}" --without-libidn --without-gnutls --without-openssl --without-tests --without-examples && make ${JOBS} && make install) || die "gloox build failed"
    523521  popd
    524522  touch .already-built
    525523else
     
    565563LIB_VERSION="${ICU_VERSION}"
    566564LIB_ARCHIVE="$LIB_VERSION-src.tgz"
    567565LIB_DIRECTORY="icu"
    568 LIB_URL="http://download.icu-project.org/files/icu4c/52.1/"
     566LIB_URL="http://download.icu-project.org/files/icu4c/56.1/"
    569567
    570568mkdir -p icu
    571569pushd icu > /dev/null
  • patches/gloox-r4529.diff

     
    1 Index: atomicrefcount.cpp
    2 ===================================================================
    3 --- src/atomicrefcount.cpp  (revision 4528)
    4 +++ src/atomicrefcount.cpp  (revision 4529)
    5 @@ -76,7 +76,7 @@
    6  #if defined( _WIN32 ) && !defined( __SYMBIAN32__ )
    7        ::InterlockedExchange( (volatile LONG*)&m_count, (volatile LONG)0 );
    8  #elif defined( __APPLE__ )
    9 -      OSAtomicAnd32Barrier( (int32_t)0, (volatile int32_t*)&m_count );
    10 +      OSAtomicAnd32Barrier( (uint32_t)0, (volatile uint32_t*)&m_count );
    11  #elif defined( HAVE_GCC_ATOMIC_BUILTINS )
    12        // Use the gcc intrinsic for atomic decrement if supported.
    13        __sync_fetch_and_and( &m_count, 0 );