aboutsummaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authoruniversales <universales@protonmail.com>2019-12-29 19:33:44 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-10 18:57:47 +0000
commit895e9f8d5c0d022e016b764494c9c7ca73cd2a33 (patch)
tree5330ecc67cc1eef6100c6a7ecd4b40f4d8b01f3e /src/inventory.h
parent12906ff631595205b52bcb58bae16cdbc8ae5b2c (diff)
downloadminetest-895e9f8d5c0d022e016b764494c9c7ca73cd2a33.tar.gz
minetest-895e9f8d5c0d022e016b764494c9c7ca73cd2a33.tar.bz2
minetest-895e9f8d5c0d022e016b764494c9c7ca73cd2a33.zip
Translated using Weblate (Spanish)
Currently translated at 61.9% (789 of 1274 strings)
Diffstat (limited to 'src/inventory.h')
0 files changed, 0 insertions, 0 deletions
a id='n115' href='#n115'>115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
#!/bin/bash
set -e

CORE_GIT=https://github.com/minetest/minetest
CORE_BRANCH=master
CORE_NAME=minetest
GAME_GIT=https://github.com/minetest/minetest_game
GAME_BRANCH=master
GAME_NAME=minetest_game

dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ $# -ne 1 ]; then
	echo "Usage: $0 <build directory>"
	exit 1
fi
builddir=$1
mkdir -p $builddir
builddir="$( cd "$builddir" && pwd )"
libdir=$builddir/libs

# Test which win32 compiler is present
which i686-w64-mingw32-gcc &>/dev/null &&
	toolchain_file=$dir/toolchain_i686-w64-mingw32.cmake
which i686-w64-mingw32-gcc-posix &>/dev/null &&
	toolchain_file=$dir/toolchain_i686-w64-mingw32-posix.cmake

if [ -z "$toolchain_file" ]; then
	echo "Unable to determine which mingw32 compiler to use"
	exit 1
fi
echo "Using $toolchain_file"

irrlicht_version=1.9.0mt1
ogg_version=1.3.4
vorbis_version=1.3.7
curl_version=7.76.1
gettext_version=0.20.1
freetype_version=2.10.4
sqlite3_version=3.35.5
luajit_version=2.1.0-beta3
leveldb_version=1.23
zlib_version=1.2.11

mkdir -p $libdir

download () {
	local url=$1
	local filename=$2
	[ -z "$filename" ] && filename=${url##*/}
	local foldername=${filename%%[.-]*}
	local extract=$3
	[ -z "$extract" ] && extract=unzip

	[ -d "./$foldername" ] && return 0
	wget "$url" -c -O "./$filename"
	if [ "$extract" = "unzip" ]; then
		unzip -o "$filename" -d "$foldername"
	elif [ "$extract" = "unzip_nofolder" ]; then
		unzip -o "$filename"
	else
		return 1
	fi
}

# Get stuff
cd $libdir
download "https://github.com/minetest/irrlicht/releases/download/$irrlicht_version/win32.zip" irrlicht-$irrlicht_version.zip
download "http://minetest.kitsunemimi.pw/zlib-$zlib_version-win32.zip"
download "http://minetest.kitsunemimi.pw/libogg-$ogg_version-win32.zip"
download "http://minetest.kitsunemimi.pw/libvorbis-$vorbis_version-win32.zip"
download "http://minetest.kitsunemimi.pw/curl-$curl_version-win32.zip"
download "http://minetest.kitsunemimi.pw/gettext-$gettext_version-win32.zip"
download "http://minetest.kitsunemimi.pw/freetype2-$freetype_version-win32.zip" freetype-$freetype_version.zip