Ticket #3721: mac-libs.diff
File mac-libs.diff, 4.7 KB (added by , 8 years ago) |
---|
-
build-osx-libs.sh
21 21 # -------------------------------------------------------------- 22 22 # Library versions for ease of updating: 23 23 ZLIB_VERSION="zlib-1.2.8" 24 CURL_VERSION="curl-7. 32.0"24 CURL_VERSION="curl-7.46.0" 25 25 ICONV_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 26 XML2_VERSION="libxml2-2.9.3" 27 SDL2_VERSION="SDL2-2.0.4" 28 BOOST_VERSION="boost_1_60_0" 30 29 WXWIDGETS_VERSION="wxWidgets-3.0.2" 31 30 JPEG_VERSION="jpegsrc.v8d" 32 31 JPEG_DIR="jpeg-8d" # Must match directory name inside source tarball 33 32 # * libpng was included as part of X11 but that's removed from Mountain Lion 34 33 # (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"34 PNG_VERSION="libpng-1.6.20" 35 OGG_VERSION="libogg-1.3.2" 36 VORBIS_VERSION="libvorbis-1.3.5" 38 37 # gloox is necessary for multiplayer lobby 39 GLOOX_VERSION="gloox-1.0. 9"38 GLOOX_VERSION="gloox-1.0.14" 40 39 # NSPR is necessary for threadsafe Spidermonkey 41 NSPR_VERSION="4.1 0.3"40 NSPR_VERSION="4.11" 42 41 # OS X only includes part of ICU, and only the dylib 43 ICU_VERSION="icu4c-5 2_1"44 ENET_VERSION="enet-1.3.1 2"45 MINIUPNPC_VERSION="miniupnpc-1.9.201510 08"42 ICU_VERSION="icu4c-56_1" 43 ENET_VERSION="enet-1.3.13" 44 MINIUPNPC_VERSION="miniupnpc-1.9.20151026" 46 45 # -------------------------------------------------------------- 47 46 # Bundled with the game: 48 47 # * SpiderMonkey 31 … … 271 270 LIB_VERSION="${SDL2_VERSION}" 272 271 LIB_ARCHIVE="$LIB_VERSION.tar.gz" 273 272 LIB_DIRECTORY=$LIB_VERSION 274 LIB_URL="https:// www.libsdl.org/tmp/"273 LIB_URL="https://libsdl.org/release/" 275 274 276 275 mkdir -p sdl2 277 276 pushd sdl2 > /dev/null … … 355 354 mkdir -p build-release 356 355 pushd build-release 357 356 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" 359 358 # wxWidgets configure now defaults to targeting 10.5, if not specified, 360 359 # but that conflicts with our flags 361 360 if [[ $MIN_OSX_VERSION && ${MIN_OSX_VERSION-_} ]]; then … … 516 515 tar -xf $LIB_ARCHIVE 517 516 pushd $LIB_DIRECTORY 518 517 519 # patch gloox to fix build error (fixed upstream in r4529)520 518 # TODO: pulls in libresolv dependency from /usr/lib 521 519 # 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" 523 521 popd 524 522 touch .already-built 525 523 else … … 565 563 LIB_VERSION="${ICU_VERSION}" 566 564 LIB_ARCHIVE="$LIB_VERSION-src.tgz" 567 565 LIB_DIRECTORY="icu" 568 LIB_URL="http://download.icu-project.org/files/icu4c/5 2.1/"566 LIB_URL="http://download.icu-project.org/files/icu4c/56.1/" 569 567 570 568 mkdir -p icu 571 569 pushd icu > /dev/null -
patches/gloox-r4529.diff
1 Index: atomicrefcount.cpp2 ===================================================================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 );