Changeset View
Changeset View
Standalone View
Standalone View
libraries/osx/build-osx-libs.sh
Show All 26 Lines | ||||||||||
SDL2_VERSION="SDL2-2.0.12" | SDL2_VERSION="SDL2-2.0.12" | |||||||||
# 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_76_0" | BOOST_VERSION="boost_1_76_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.1.4" | WXWIDGETS_VERSION="wxWidgets-3.1.4" | |||||||||
# 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.36" | PNG_VERSION="libpng-1.6.36" | |||||||||
FREETYPE_VERSION="freetype-2.10.4" | ||||||||||
OGG_VERSION="libogg-1.3.3" | OGG_VERSION="libogg-1.3.3" | |||||||||
VORBIS_VERSION="libvorbis-1.3.7" | 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.2.0" | GMP_VERSION="gmp-6.2.0" | |||||||||
NETTLE_VERSION="nettle-3.6" | 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" | GLOOX_VERSION="gloox-1.0.24" | |||||||||
GNUTLS_VERSION="gnutls-3.6.15" | GNUTLS_VERSION="gnutls-3.6.15" | |||||||||
▲ Show 20 Lines • Show All 435 Lines • ▼ Show 20 Lines | then | |||||||||
popd | popd | |||||||||
echo "$LIB_VERSION" > .already-built | echo "$LIB_VERSION" > .already-built | |||||||||
else | else | |||||||||
already_built | already_built | |||||||||
fi | fi | |||||||||
popd > /dev/null | popd > /dev/null | |||||||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | |||||||||
echo -e "Building freetype..." | ||||||||||
LIB_VERSION="${FREETYPE_VERSION}" | ||||||||||
LIB_ARCHIVE="$LIB_VERSION.tar.gz" | ||||||||||
LIB_DIRECTORY="$LIB_VERSION" | ||||||||||
LIB_URL="https://download.savannah.gnu.org/releases/freetype/" | ||||||||||
mkdir -p freetype | ||||||||||
pushd freetype > /dev/null | ||||||||||
if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$LIB_VERSION" ]] | ||||||||||
then | ||||||||||
INSTALL_DIR="$(pwd)" | ||||||||||
rm -f .already-built | ||||||||||
download_lib $LIB_URL $LIB_ARCHIVE | ||||||||||
rm -rf $LIB_DIRECTORY bin include lib share | ||||||||||
tar -xf $LIB_ARCHIVE | ||||||||||
pushd $LIB_DIRECTORY | ||||||||||
(./configure CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \ | ||||||||||
--prefix=$INSTALL_DIR \ | ||||||||||
--enable-shared=no \ | ||||||||||
--with-bzip2=no \ | ||||||||||
--with-brotli=no \ | ||||||||||
&& make ${JOBS} && make install) || die "freetype build failed" | ||||||||||
Stan:
A solution could be to add | ||||||||||
popd | ||||||||||
echo "$LIB_VERSION" > .already-built | ||||||||||
s0600204Unsubmitted Done Inline Actions
s0600204: | ||||||||||
else | ||||||||||
already_built | ||||||||||
fi | ||||||||||
popd > /dev/null | ||||||||||
# -------------------------------------------------------------- | ||||||||||
echo -e "Building libogg..." | echo -e "Building libogg..." | |||||||||
LIB_VERSION="${OGG_VERSION}" | LIB_VERSION="${OGG_VERSION}" | |||||||||
LIB_ARCHIVE="$LIB_VERSION.tar.gz" | LIB_ARCHIVE="$LIB_VERSION.tar.gz" | |||||||||
LIB_DIRECTORY="$LIB_VERSION" | LIB_DIRECTORY="$LIB_VERSION" | |||||||||
LIB_URL="http://downloads.xiph.org/releases/ogg/" | LIB_URL="http://downloads.xiph.org/releases/ogg/" | |||||||||
# Dependency of vorbis | # Dependency of vorbis | |||||||||
▲ Show 20 Lines • Show All 482 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
A solution could be to add