Blame 1-setup-windows-msys2.sh

cfbcc8
#!/usr/bin/env bash
cfbcc8
# -------------------------------------------------------------------------------
cfbcc8
# This script installs all dependencies required for building Synfig Studio with MSYS2
cfbcc8
# Execute it once on an MSYS shell, i.e.
cfbcc8
#    - use the "MSYS2 MSYS" shortcut in the start menu or
cfbcc8
#    - run "msys2.exe" in MSYS2's installation folder
cfbcc8
#
cfbcc8
# MSYS2 and installed libraries can be updated later by executing
cfbcc8
#   pacman -Syu
cfbcc8
# in an MSYS shell
cfbcc8
# -------------------------------------------------------------------------------
cfbcc8
cfbcc8
SCRIPT_DIR=`dirname "$0"`
cfbcc8
cfbcc8
# set environment variables
c46c13
source ${SCRIPT_DIR}/autobuild/msys2/set_env.sh
cfbcc8
cfbcc8
echo "Selected ARCH: ${ARCH}"
cfbcc8
cfbcc8
#echo "Sync pacman package databases"
cfbcc8
#pacman -Sy
cfbcc8
450e48
# dlfcn is still required to MLT build, so don't remove it
cfbcc8
echo "Installing development tools"
cfbcc8
# install basic development system, compiler toolchain and build tools
cfbcc8
pacman -S --needed --noconfirm --color=auto \
cfbcc8
autoconf \
cfbcc8
automake-wrapper \
cfbcc8
intltool \
cfbcc8
make \
cfbcc8
patch \
cfbcc8
tar \
cfbcc8
$ARCH-gcc \
cfbcc8
$ARCH-ccache \
cfbcc8
$ARCH-libtool \
cfbcc8
$ARCH-make \
cfbcc8
$ARCH-pkg-config \
cfbcc8
$ARCH-dlfcn \
cfbcc8
$ARCH-SDL2  \
cfbcc8
$ARCH-boost \
cfbcc8
$ARCH-cairomm \
cfbcc8
$ARCH-fftw \
cfbcc8
$ARCH-glibmm \
cfbcc8
$ARCH-libxml++2.6 \
cfbcc8
$ARCH-pango \
cfbcc8
$ARCH-gtkmm3
cfbcc8
c46c13
# build mlt
c46c13
bash ${SCRIPT_DIR}/autobuild/msys2/build_mlt.sh
c46c13
cfbcc8
# Apply patch to libintl.h. This required because libintl.h redefines sprintf
cfbcc8
# and std::sprintf is stop working. But std::sprintf is used by Boost::Odeint library
cfbcc8
# so we need it.
cfbcc8
c46c13
patch $PREFIX/include/libintl.h < ${SCRIPT_DIR}/autobuild/msys2/libintl.h.patch
c46c13
c46c13