Skip to content

Commit

Permalink
Fixed MLT build on MSYS via autobuild/build.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
ice0 committed Feb 7, 2020
1 parent e8281c6 commit 5ac3ae6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
Empty file modified 1-setup-windows-msys2.sh
100644 → 100755
Empty file.
9 changes: 4 additions & 5 deletions autobuild/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ else
DEBUG=''
fi

[ -d ETL ] || mkdir ETL
[ -d synfig-core ] || mkdir synfig-core
[ -d synfig-studio ] || mkdir synfig-studio
[ -d "${PREFIX}" ] || mkdir "${PREFIX}"
[ -d "${PREFIX}/bin" ] || mkdir "${PREFIX}/bin"
mkdir -p ETL
mkdir -p synfig-core
mkdir -p synfig-studio
mkdir -p "${PREFIX}/bin"

#========================== VARIABLES ==================================

Expand Down
16 changes: 9 additions & 7 deletions autobuild/msys2/build_mlt.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# -------------------------------------------------------------------------------
# This script builds mlt++ required by synfig-core
# This script builds mlt++ on MSYS2 required by synfig-core
# -------------------------------------------------------------------------------
set -e # exit on error

Expand All @@ -11,24 +11,26 @@ source ${SCRIPT_DIR}/set_env.sh

VERSION_MLT="6.16.0"
PATH="${PREFIX}/lib/ccache/bin:${PATH}"
MLT_PATH="/opt/mlt-${VERSION_MLT}"

if [ ! -f /opt/mlt-${VERSION_MLT}/done ]; then
if [ ! -f ${MLT_PATH}/done ]; then

echo " ======================= Compiling MLT++ ======================= "

mkdir -p /opt/mlt-${VERSION_MLT}/
mkdir -p ${MLT_PATH}

cd /tmp
pushd /tmp
wget "https://github.com/mltframework/mlt/releases/download/v${VERSION_MLT}/mlt-${VERSION_MLT}.tar.gz"
tar xzf ./mlt-${VERSION_MLT}.tar.gz

pushd mlt-${VERSION_MLT}/
echo "Install path: ${PREFIX}"
./configure --prefix=/opt/mlt-${VERSION_MLT} --target-arch=$MSYS2_ARCH --disable-gtk2
echo "Install path: ${MLT_PATH}"
./configure --prefix=${MLT_PATH} --target-arch=$MSYS2_ARCH --disable-gtk2
make -j2 --silent
make install
popd

touch /opt/mlt-${VERSION_MLT}/done
touch ${MLT_PATH}/done

popd
fi

0 comments on commit 5ac3ae6

Please sign in to comment.