#!/bin/bash -e set -e DIRECT=0 source ./config.sh CURL="$CBS_CURL -L -O -f" dl() { set +e if [ "$DIRECT" == "1" ]; then $CURL $1/$2 if [ "$?" != "0" ]; then echo "Failed to download $1/$2" exit 1 fi else $CURL https://dcpomatic.com/deps/osx/$2 if [ "$?" != "0" ]; then echo "Failed to download $2 from dcpomatic.com" exit 1 fi fi set -e } mkdir -p Archives cd Archives dl http://www.mega-nerd.com/libsndfile/files libsndfile-1.0.25.tar.gz dl https://libzip.org/download libzip-1.7.3.tar.xz dl https://curl.haxx.se/download curl-7.32.0.tar.bz2 dl https://download.gnome.org/sources/glibmm/2.58 glibmm-2.58.1.tar.xz dl https://dl.bintray.com/boostorg/release/1.74.0/source boost_1_74_0.tar.bz2 dl http://cairographics.org/releases cairo-1.16.0.tar.xz dl http://cairographics.org/releases cairomm-1.14.2.tar.xz dl https://github.com/libexpat/libexpat/releases/download/R_2_2_10 expat-2.2.10.tar.xz dl ftp://sourceware.org/pub/libffi libffi-3.3.tar.gz dl http://downloads.xiph.org/releases/flac flac-1.3.3.tar.xz dl http://download.savannah.gnu.org/releases/freetype freetype-2.10.4.tar.xz dl http://www.freedesktop.org/software/fontconfig/release fontconfig-2.13.93.tar.xz dl https://ftp.gnu.org/pub/gnu/gettext gettext-0.20.1.tar.gz dl http://www.freedesktop.org/software/harfbuzz/release harfbuzz-2.7.2.tar.xz dl http://www.ijg.org/files jpegsrc.v8d.tar.gz dl http://downloads.xiph.org/releases/ogg libogg-1.3.1.tar.gz dl https://www.libssh.org/files/0.9 libssh-0.9.5.tar.xz dl http://ftpmirror.gnu.org/libtool libtool-2.4.2.tar.gz dl https://download.gnome.org/sources/pango/1.48 pango-1.48.0.tar.xz dl http://download.osgeo.org/libtiff tiff-4.0.10.tar.gz dl http://downloads.sourceforge.net/project/libpng/libpng15/older-releases/1.5.13 libpng-1.5.13.tar.xz dl http://download.savannah.gnu.org/releases/freetype freetype-2.10.4.tar.xz dl http://xmlsoft.org/sources libxml2-2.9.1.tar.gz dl http://xmlsoft.org/sources libxslt-1.1.28.tar.gz dl https://imagemagick.org/download/releases/ImageMagick-7.0.10-31.tar.xz ImageMagick-7.0.10-31.tar.xz dl https://www.aleksey.com/xmlsec/download xmlsec1-1.2.31.tar.gz dl http://ftp.gnome.org/pub/gnome/sources/glib/2.66 glib-2.66.4.tar.xz dl https://github.com/libsigcplusplus/libsigcplusplus/releases/download/2.10.6 libsigc++-2.10.6.tar.xz dl http://cairographics.org/releases pixman-0.32.2.tar.gz dl https://download.gnome.org/sources/libxml++/2.42/ libxml++-2.42.0.tar.xz dl http://ftp.gnome.org/pub/GNOME/sources/pangomm/2.42 pangomm-2.42.2.tar.xz dl http://downloads.xiph.org/releases/vorbis libvorbis-1.3.5.tar.xz dl https://pkg-config.freedesktop.org/releases pkg-config-0.29.2.tar.gz dl https://www.openssl.org/source openssl-1.1.1h.tar.gz dl https://github.com/unicode-org/icu/releases/download/release-68-2 icu4c-68_2-src.tgz dl https://ftp.gnu.org/gnu/nettle nettle-3.6.tar.gz dl http://www.mega-nerd.com/SRC libsamplerate-0.1.8.tar.gz dl http://apache.mirror.iphh.net//xerces/c/3/sources xerces-c-3.2.3.tar.xz dl https://github.com/nanomsg/nanomsg/archive nanomsg-1.1.5.tar.gz dl https://github.com/ninja-build/ninja/releases/download/v1.10.1 ninja-mac.zip dl https://zlib.net zlib-1.2.11.tar.gz dl https://github.com/mesonbuild/meson/releases/download/0.56.0 meson-0.56.0.tar.gz rm -rf x264 git clone git://git.carlh.net/git/x264.git git -C x264 checkout 4121277b40a667665d4eea1726aefdc55d12d110 tar c x264 | bzip2 -f -9 > x264-4121277.tar.bz2 rm -rf wxWidgets git clone git://git.carlh.net/git/wxWidgets.git pushd wxWidgets git submodule update --init --recursive git checkout 1db3751235b251ba5beadd04bccf00065ec8388c popd tar c wxWidgets | bzip2 -f -9 > wxWidgets-1db3751.tar.bz2