#!/bin/bash BS=${BASH_SOURCE[0]} if [ -h $BS ]; then BS=`readlink $BS`; fi THISDIR="$( dirname $BS )" cd $THISDIR || exit 1 THISDIR=`pwd` if [ -f mxe.github.mk ]; then echo buildlibs.sh is running in $THISDIR else cat << END Error: Must run "buildlibs.sh" in the top-level "mxe-minetest" build- kit directory. END exit 1 fi # Note: "cc" should come first. Actually, "cc" should be built alread- # y. Its inclusion here is a safety measure. for x in \ cc bzip2 curl freetype \ gmp gnutls harfbuzz irrlicht \ isl leveldb libiconv libidn \ libidn2 libpng libunistring luajit \ lzma ncurses nettle ogg \ openal openssl sdl sqlite \ ucl unzip upx vorbis \ zip zlib do echo Build of $x started make $x || make $x || exit 1 echo Build of $x done done