summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/mingw-w64-build134
1 files changed, 64 insertions, 70 deletions
diff --git a/scripts/mingw-w64-build b/scripts/mingw-w64-build
index 0ff6a00c0..980909fb9 100755
--- a/scripts/mingw-w64-build
+++ b/scripts/mingw-w64-build
@@ -118,10 +118,70 @@ function mingw-w64-build { # mingw-w64-build [args] $TARGET_PARAM $TARGET_DIR
return 1
fi
+ # package names
+ local CONFIG_NAME BINUTILS_NAME MINGW_W64_NAME GMP_NAME MPFR_NAME MPC_NAME ISL_NAME GCC_NAME GDB_NAME NAMES
+ CONFIG_NAME="config"
+ BINUTILS_NAME="binutils"
+ MINGW_W64_NAME="mingw-w64"
+ GMP_NAME="gmp"
+ MPFR_NAME="mpfr"
+ MPC_NAME="mpc"
+ ISL_NAME="isl"
+ GCC_NAME="gcc"
+ NAMES=("${CONFIG_NAME}" "${BINUTILS_NAME}" "${MINGW_W64_NAME}" "${GMP_NAME}" "${MPFR_NAME}" "${MPC_NAME}" "${ISL_NAME}" "${GCC_NAME}")
+
+ # versions
+ local CONFIG_VER BINUTILS_VER MINGW_W64_VER GMP_VER MPFR_VER MPC_VER ISL_VER GCC_VER GDB_VER VERSIONS
+ CONFIG_VER="f83dbaa" # config.guess 2019-06-10
+ BINUTILS_VER="2.32"
+ MINGW_W64_VER="6.0.0"
+ GMP_VER="6.1.2"
+ MPFR_VER="4.0.2"
+ MPC_VER="1.1.0"
+ ISL_VER="0.21"
+ GCC_VER="9.1.0"
+ VERSIONS=("${CONFIG_VER}" "${BINUTILS_VER}" "${MINGW_W64_VER}" "${GMP_VER}" "${MPFR_VER}" "${MPC_VER}" "${ISL_VER}" "${GCC_VER}")
+
+ # filenames
+ local CONFIG_PKG BINUTILS_PKG MINGW_W64_PKG GMP_PKG MPFR_PKG MPC_PKG ISL_PKG GCC_PKG GDB_PKG PKGS
+ CONFIG_PKG="config-${CONFIG_VER}.tar.gz"
+ BINUTILS_PKG="binutils-${BINUTILS_VER}.tar.bz2"
+ MINGW_W64_PKG="mingw-w64-v${MINGW_W64_VER}.tar.bz2"
+ GMP_PKG="gmp-${GMP_VER}.tar.bz2"
+ MPFR_PKG="mpfr-${MPFR_VER}.tar.gz"
+ MPC_PKG="mpc-${MPC_VER}.tar.gz"
+ ISL_PKG="isl-${ISL_VER}.tar.bz2"
+ GCC_PKG="gcc-${GCC_VER}.tar.gz"
+ PKGS=("${CONFIG_PKG}" "${BINUTILS_PKG}" "${MINGW_W64_PKG}" "${GMP_PKG}" "${MPFR_PKG}" "${MPC_PKG}" "${ISL_PKG}" "${GCC_PKG}")
+
+ # urls
+ local CONFIG_URLS BINUTILS_URLS MINGW_W64_URLS GMP_URLS MPFR_URLS MPC_URLS ISL_URLS GCC_URLS GDB_URLS URLS_VARNAMES
+ CONFIG_URLS=("https://git.savannah.gnu.org/gitweb/?p=config.git;a=snapshot;h=${CONFIG_VER};sf=tgz")
+ BINUTILS_URLS=("https://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VER}.tar.bz2")
+ MINGW_W64_URLS=("http://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${MINGW_W64_VER}.tar.bz2")
+ GMP_URLS=("https://ftp.gnu.org/gnu/gmp/gmp-${GMP_VER}.tar.bz2")
+ MPFR_URLS=("https://ftp.gnu.org/gnu/mpfr/mpfr-${MPFR_VER}.tar.gz")
+ MPC_URLS=("https://ftp.gnu.org/gnu/mpc/mpc-${MPC_VER}.tar.gz")
+ ISL_URLS=("http://isl.gforge.inria.fr/isl-${ISL_VER}.tar.bz2")
+ GCC_URLS=("https://ftp.gnu.org/gnu/gcc/gcc-${GCC_VER}/gcc-${GCC_VER}.tar.gz")
+ URLS_VARNAMES=('CONFIG_URLS' 'BINUTILS_URLS' 'MINGW_W64_URLS' 'GMP_URLS' 'MPFR_URLS' 'MPC_URLS' 'ISL_URLS' 'GCC_URLS')
+
+ # checksums
+ local CONFIG_SHA256 BINUTILS_SHA256 MINGW_W64_SHA256 GMP_SHA256 MPFR_SHA256 MPC_SHA256 ISL_SHA256 GCC_SHA256 GDB_SHA256 CHECKSUMS
+ CONFIG_SHA256="8521a473f248601b324e993a0425fa744ad11c72f648d4616cfb7b7abc4576a9"
+ BINUTILS_SHA256="de38b15c902eb2725eac6af21183a5f34ea4634cb0bcef19612b50e5ed31072d"
+ MINGW_W64_SHA256="805e11101e26d7897fce7d49cbb140d7bac15f3e085a91e0001e80b2adaf48f0"
+ GMP_SHA256="5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2"
+ MPFR_SHA256="ae26cace63a498f07047a784cd3b0e4d010b44d2b193bab82af693de57a19a78"
+ MPC_SHA256="6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e"
+ ISL_SHA256="d18ca11f8ad1a39ab6d03d3dcb3365ab416720fcb65b42d69f34f51bf0a0e859"
+ GCC_SHA256="be303f7a8292982a35381489f5a9178603cbe9a4715ee4fa4a815d6bcd2b658d"
+ CHECKSUMS=("${CONFIG_SHA256}" "${BINUTILS_SHA256}" "${MINGW_W64_SHA256}" "${GMP_SHA256}" "${MPFR_SHA256}" "${MPC_SHA256}" "${ISL_SHA256}" "${GCC_SHA256}")
+
# internal vars
local NAME VERSION SELF SELF_NAME HELP
NAME="mingw-w64-build"
- VERSION="6.0.1"
+ VERSION="7.0.0"
SELF="${BASH_SOURCE[0]}"
SELF_NAME=$(basename "${SELF}")
HELP="\
@@ -248,83 +308,17 @@ default install-dir: ${HOME}/toolchains/mingw-w64-${MINGW_W64_VER}-gcc-${GCC_VER
return 1
fi
- # package names
- local CONFIG_NAME BINUTILS_NAME MINGW_W64_NAME GMP_NAME MPFR_NAME MPC_NAME ISL_NAME GCC_NAME GDB_NAME NAMES
- CONFIG_NAME="config"
- BINUTILS_NAME="binutils"
- MINGW_W64_NAME="mingw-w64"
- GMP_NAME="gmp"
- MPFR_NAME="mpfr"
- MPC_NAME="mpc"
- ISL_NAME="isl"
- GCC_NAME="gcc"
- NAMES=("${CONFIG_NAME}" "${BINUTILS_NAME}" "${MINGW_W64_NAME}" "${GMP_NAME}" "${MPFR_NAME}" "${MPC_NAME}" "${ISL_NAME}" "${GCC_NAME}")
+ # gdb?
if [[ "${DISABLE_GDB}" == false ]]; then
GDB_NAME="gdb"
NAMES+=("${GDB_NAME}")
- fi
-
- # versions
- local CONFIG_VER BINUTILS_VER MINGW_W64_VER GMP_VER MPFR_VER MPC_VER ISL_VER GCC_VER GDB_VER VERSIONS
- CONFIG_VER="5fe51ff" # config.guess 2019-01-03
- BINUTILS_VER="2.31.1"
- MINGW_W64_VER="6.0.0"
- GMP_VER="6.1.2"
- MPFR_VER="4.0.1"
- MPC_VER="1.1.0"
- ISL_VER="0.19"
- GCC_VER="8.3.0"
- VERSIONS=("${CONFIG_VER}" "${BINUTILS_VER}" "${MINGW_W64_VER}" "${GMP_VER}" "${MPFR_VER}" "${MPC_VER}" "${ISL_VER}" "${GCC_VER}")
- if [[ "${DISABLE_GDB}" == false ]]; then
- GDB_VER="8.2.1"
+ GDB_VER="8.3"
VERSIONS+=("${GDB_VER}")
- fi
-
- # filenames
- local CONFIG_PKG BINUTILS_PKG MINGW_W64_PKG GMP_PKG MPFR_PKG MPC_PKG ISL_PKG GCC_PKG GDB_PKG PKGS
- CONFIG_PKG="config-${CONFIG_VER}.tar.gz"
- BINUTILS_PKG="binutils-${BINUTILS_VER}.tar.bz2"
- MINGW_W64_PKG="mingw-w64-v${MINGW_W64_VER}.tar.bz2"
- GMP_PKG="gmp-${GMP_VER}.tar.bz2"
- MPFR_PKG="mpfr-${MPFR_VER}.tar.gz"
- MPC_PKG="mpc-${MPC_VER}.tar.gz"
- ISL_PKG="isl-${ISL_VER}.tar.bz2"
- GCC_PKG="gcc-${GCC_VER}.tar.gz"
- PKGS=("${CONFIG_PKG}" "${BINUTILS_PKG}" "${MINGW_W64_PKG}" "${GMP_PKG}" "${MPFR_PKG}" "${MPC_PKG}" "${ISL_PKG}" "${GCC_PKG}")
- if [[ "${DISABLE_GDB}" == false ]]; then
GDB_PKG="gdb-${GDB_VER}.tar.gz"
PKGS+=("${GDB_PKG}")
- fi
-
- # urls
- local CONFIG_URLS BINUTILS_URLS MINGW_W64_URLS GMP_URLS MPFR_URLS MPC_URLS ISL_URLS GCC_URLS GDB_URLS URLS_VARNAMES
- CONFIG_URLS=("https://git.savannah.gnu.org/gitweb/?p=config.git;a=snapshot;h=${CONFIG_VER};sf=tgz")
- BINUTILS_URLS=("https://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VER}.tar.bz2")
- MINGW_W64_URLS=("http://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${MINGW_W64_VER}.tar.bz2")
- GMP_URLS=("https://ftp.gnu.org/gnu/gmp/gmp-${GMP_VER}.tar.bz2")
- MPFR_URLS=("https://ftp.gnu.org/gnu/mpfr/mpfr-${MPFR_VER}.tar.gz")
- MPC_URLS=("https://ftp.gnu.org/gnu/mpc/mpc-${MPC_VER}.tar.gz")
- ISL_URLS=("http://isl.gforge.inria.fr/isl-${ISL_VER}.tar.bz2")
- GCC_URLS=("https://ftp.gnu.org/gnu/gcc/gcc-${GCC_VER}/gcc-${GCC_VER}.tar.gz")
- URLS_VARNAMES=('CONFIG_URLS' 'BINUTILS_URLS' 'MINGW_W64_URLS' 'GMP_URLS' 'MPFR_URLS' 'MPC_URLS' 'ISL_URLS' 'GCC_URLS')
- if [[ "${DISABLE_GDB}" == false ]]; then
GDB_URLS=("https://ftp.gnu.org/gnu/gdb/gdb-${GDB_VER}.tar.gz")
URLS_VARNAMES+=('GDB_URLS')
- fi
-
- # checksums
- local CONFIG_SHA256 BINUTILS_SHA256 MINGW_W64_SHA256 GMP_SHA256 MPFR_SHA256 MPC_SHA256 ISL_SHA256 GCC_SHA256 GDB_SHA256 CHECKSUMS
- CONFIG_SHA256="6ba0228df0895f24c6cf61679c684a179db071384e12b07f8b1c84c2c180bf0a"
- BINUTILS_SHA256="ffcc382695bf947da6135e7436b8ed52d991cf270db897190f19d6f9838564d0"
- MINGW_W64_SHA256="805e11101e26d7897fce7d49cbb140d7bac15f3e085a91e0001e80b2adaf48f0"
- GMP_SHA256="5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2"
- MPFR_SHA256="e650f8723bfc6eca4f222c021db3d5d4cebe2e21c82498329bb9e6815b99c88c"
- MPC_SHA256="6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e"
- ISL_SHA256="d59726f34f7852a081fbd3defd1ab2136f174110fc2e0c8d10bb122173fa9ed8"
- GCC_SHA256="ea71adc1c3d86330874b8df19611424b143308f0d6612d542472600532c96d2d"
- CHECKSUMS=("${CONFIG_SHA256}" "${BINUTILS_SHA256}" "${MINGW_W64_SHA256}" "${GMP_SHA256}" "${MPFR_SHA256}" "${MPC_SHA256}" "${ISL_SHA256}" "${GCC_SHA256}")
- if [[ "${DISABLE_GDB}" == false ]]; then
- GDB_SHA256="0107985f1edb8dddef6cdd68a4f4e419f5fec0f488cc204f0b7d482c0c6c9282"
+ GDB_SHA256="b2266ec592440d0eec18ee1790f8558b3b8a2845b76cc83a872e39b501ce8a28"
CHECKSUMS+=("${GDB_SHA256}")
fi