mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
cross-x86_64-w64-mingw32: update to 6.0.0.
[ci skip] closes #9113 Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
parent
cd2939bb83
commit
54ec7f2175
3 changed files with 82 additions and 31 deletions
1
srcpkgs/cross-i686-w64-mingw32-crt
Symbolic link
1
srcpkgs/cross-i686-w64-mingw32-crt
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
cross-x86_64-w64-mingw32
|
1
srcpkgs/cross-x86_64-w64-mingw32-crt
Symbolic link
1
srcpkgs/cross-x86_64-w64-mingw32-crt
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
cross-x86_64-w64-mingw32
|
|
@ -1,19 +1,27 @@
|
||||||
_binutils_version=2.29.1
|
# Template file for 'cross-x86_64-w64-mingw32'
|
||||||
_gcc_version=8.3.0
|
_gcc_version="8.3.0"
|
||||||
_gmp_version=6.1.2
|
_binutils_version="2.32"
|
||||||
_mpfr_version=4.0.1
|
_gmp_version="6.1.2"
|
||||||
_mpc_version=1.1.0
|
_mpfr_version="4.0.1"
|
||||||
_isl_version=0.19
|
_mpc_version="1.1.0"
|
||||||
_mingw_version=5.0.4
|
_isl_version="0.19"
|
||||||
|
_mingw_version="6.0.0"
|
||||||
|
|
||||||
pkgname=cross-x86_64-w64-mingw32
|
pkgname=cross-x86_64-w64-mingw32
|
||||||
version=${_mingw_version}
|
version="$_mingw_version"
|
||||||
revision=5
|
revision=1
|
||||||
|
archs="x86_64 i686"
|
||||||
|
create_wrksrc=yes
|
||||||
|
hostmakedepends="perl flex"
|
||||||
|
makedepends="zlib-devel"
|
||||||
|
# it's ok to build with current's -devel packages
|
||||||
|
# although it might break the package during compiler updates
|
||||||
|
#makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel isl15-devel"
|
||||||
|
depends="${pkgname}-crt-${version}_${revision}"
|
||||||
short_desc="Cross toolchain for Win64 (GCC ${_gcc_version})"
|
short_desc="Cross toolchain for Win64 (GCC ${_gcc_version})"
|
||||||
maintainer="Aleksey Tulinov <aleksey.tulinov@gmail.com>"
|
maintainer="Aleksey Tulinov <aleksey.tulinov@gmail.com>"
|
||||||
homepage="https://sourceforge.net/projects/mingw-w64/"
|
homepage="https://sourceforge.net/projects/mingw-w64/"
|
||||||
license="GPL-2.0-or-later, GPL-3.0-or-later, ZPL-2.1"
|
license="GPL-2.0-or-later, GPL-3.0-or-later, ZPL-2.1"
|
||||||
|
|
||||||
distfiles="
|
distfiles="
|
||||||
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.bz2
|
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.bz2
|
||||||
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
|
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
|
||||||
|
@ -22,25 +30,23 @@ distfiles="
|
||||||
http://www.mpfr.org/mpfr-${_mpfr_version}/mpfr-${_mpfr_version}.tar.xz
|
http://www.mpfr.org/mpfr-${_mpfr_version}/mpfr-${_mpfr_version}.tar.xz
|
||||||
http://isl.gforge.inria.fr/isl-${_isl_version}.tar.bz2
|
http://isl.gforge.inria.fr/isl-${_isl_version}.tar.bz2
|
||||||
${SOURCEFORGE_SITE}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${_mingw_version}.tar.bz2"
|
${SOURCEFORGE_SITE}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${_mingw_version}.tar.bz2"
|
||||||
checksum="
|
checksum="de38b15c902eb2725eac6af21183a5f34ea4634cb0bcef19612b50e5ed31072d
|
||||||
1509dff41369fb70aed23682351b663b56db894034773e6dbf7d5d6071fc55cc
|
|
||||||
64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c
|
64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c
|
||||||
6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e
|
6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e
|
||||||
87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912
|
87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912
|
||||||
67874a60826303ee2fb6affc6dc0ddd3e749e9bfcb4c8655e3953d0458a6e16e
|
67874a60826303ee2fb6affc6dc0ddd3e749e9bfcb4c8655e3953d0458a6e16e
|
||||||
d59726f34f7852a081fbd3defd1ab2136f174110fc2e0c8d10bb122173fa9ed8
|
d59726f34f7852a081fbd3defd1ab2136f174110fc2e0c8d10bb122173fa9ed8
|
||||||
5527e1f6496841e2bb72f97a184fc79affdcd37972eaa9ebf7a5fd05c31ff803"
|
805e11101e26d7897fce7d49cbb140d7bac15f3e085a91e0001e80b2adaf48f0"
|
||||||
|
|
||||||
archs="x86_64"
|
|
||||||
create_wrksrc=yes
|
|
||||||
hostmakedepends="perl flex"
|
|
||||||
makedepends="zlib-devel"
|
|
||||||
# it's ok to build with current's -devel packages
|
|
||||||
# although it might break the package during compiler updates
|
|
||||||
#makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel isl15-devel"
|
|
||||||
nostrip=yes
|
|
||||||
nopie=yes
|
nopie=yes
|
||||||
nodebug=yes
|
nodebug=yes
|
||||||
|
noverifyrdeps=yes
|
||||||
|
noshlibprovides=yes
|
||||||
|
lib32disabled=yes # disable build of 32bits packages
|
||||||
|
nostrip_files="libgcc.a libgcc_eh.a libgcc_s.a libgcov.a
|
||||||
|
libatomic.a libatomic.dll.a libquadmath.a libquadmath.dll.a
|
||||||
|
libssp.a libssp.dll.a libssp_nonshared.a
|
||||||
|
libstdc++.a libstdc++.dll.a libsupc++.a"
|
||||||
|
|
||||||
# https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/
|
# https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/
|
||||||
# https://gcc.gnu.org/install/configure.html
|
# https://gcc.gnu.org/install/configure.html
|
||||||
|
@ -198,6 +204,11 @@ _gcc_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_build_cross() {
|
_build_cross() {
|
||||||
|
# ensure we use sane environment
|
||||||
|
unset CC CXX CPP LD AS AR RANLIB OBJDUMP READELF NM
|
||||||
|
unset STRIP OBJDUMP WINDRES
|
||||||
|
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
||||||
|
|
||||||
_target=$1
|
_target=$1
|
||||||
|
|
||||||
(_binutils_build ${_target})
|
(_binutils_build ${_target})
|
||||||
|
@ -213,22 +224,27 @@ do_build() {
|
||||||
(_build_cross "i686-w64-mingw32")
|
(_build_cross "i686-w64-mingw32")
|
||||||
}
|
}
|
||||||
|
|
||||||
_install_cross() {
|
_install_toolchain() {
|
||||||
_target=$1
|
_target=$1
|
||||||
|
|
||||||
(cd ${wrksrc}/"build-binutils-${_target}" && DESTDIR="$DESTDIR" make install)
|
(cd ${wrksrc}/"build-binutils-${_target}" && DESTDIR="$DESTDIR" make install)
|
||||||
(cd ${wrksrc}/"build-gcc-${_target}" && DESTDIR="$DESTDIR" make install)
|
(cd ${wrksrc}/"build-gcc-${_target}" && DESTDIR="$DESTDIR" make install)
|
||||||
(cd ${wrksrc}/"build-mingw-headers-${_target}" && DESTDIR="$DESTDIR" make install)
|
|
||||||
(cd ${wrksrc}/"build-mingw-crt-${_target}" && DESTDIR="$DESTDIR" make install)
|
|
||||||
(cd ${wrksrc}/"build-mingw-winpthreads-${_target}" && DESTDIR="$DESTDIR" make install)
|
|
||||||
|
|
||||||
# remove unnecessary stuff
|
# remove unnecessary stuff
|
||||||
rm -rf ${DESTDIR}/usr/share/
|
rm -rf ${DESTDIR}/usr/share/
|
||||||
rm -rf ${DESTDIR}/usr/lib/libcc1*
|
rm -rf ${DESTDIR}/usr/lib/libcc1*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_install_crt() {
|
||||||
|
_target=$1
|
||||||
|
|
||||||
|
(cd ${wrksrc}/"build-mingw-headers-${_target}" && DESTDIR="$DESTDIR" make install)
|
||||||
|
(cd ${wrksrc}/"build-mingw-crt-${_target}" && DESTDIR="$DESTDIR" make install)
|
||||||
|
(cd ${wrksrc}/"build-mingw-winpthreads-${_target}" && DESTDIR="$DESTDIR" make install)
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
_install_cross "x86_64-w64-mingw32"
|
(_install_toolchain "x86_64-w64-mingw32")
|
||||||
# i686 version will be installed in subpackage (below)
|
# i686 version will be installed in subpackage (below)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,17 +258,50 @@ _clean_cross() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_clean() {
|
do_clean() {
|
||||||
_clean_cross "x86_64-w64-mingw32"
|
(_clean_cross "x86_64-w64-mingw32")
|
||||||
_clean_cross "i686-w64-mingw32"
|
(_clean_cross "i686-w64-mingw32")
|
||||||
|
}
|
||||||
|
|
||||||
|
cross-x86_64-w64-mingw32-crt_package() {
|
||||||
|
short_desc="CRT for Win64 cross toolchain"
|
||||||
|
nopie=yes
|
||||||
|
nodebug=yes
|
||||||
|
# this subpackage exists to skip strip step on CRT files
|
||||||
|
nostrip=yes
|
||||||
|
noverifyrdeps=yes
|
||||||
|
noshlibsprovides=yes
|
||||||
|
lib32disabled=yes
|
||||||
|
pkg_install() {
|
||||||
|
DESTDIR="$PKGDESTDIR" _install_crt "x86_64-w64-mingw32"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cross-i686-w64-mingw32_package() {
|
cross-i686-w64-mingw32_package() {
|
||||||
short_desc="Cross toolchain for Win32 (GCC ${_gcc_version})"
|
short_desc="Cross toolchain for Win32 (GCC ${_gcc_version})"
|
||||||
nostrip=yes
|
depends="${pkgname}-crt-${version}_${revision}"
|
||||||
nopie=yes
|
nopie=yes
|
||||||
nodebug=yes
|
nodebug=yes
|
||||||
|
noverifyrdeps=yes
|
||||||
|
noshlibsprovides=yes
|
||||||
|
lib32disabled=yes
|
||||||
|
nostrip_files="libgcc.a libgcc_eh.a libgcc_s.a libgcov.a
|
||||||
|
libatomic.a libatomic.dll.a libquadmath.a libquadmath.dll.a
|
||||||
|
libssp.a libssp.dll.a libssp_nonshared.a
|
||||||
|
libstdc++.a libstdc++.dll.a libsupc++.a"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
DESTDIR="$PKGDESTDIR" _install_cross "i686-w64-mingw32"
|
DESTDIR="$PKGDESTDIR" _install_toolchain "i686-w64-mingw32"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cross-i686-w64-mingw32-crt_package() {
|
||||||
|
short_desc="CRT for Win32 cross toolchain"
|
||||||
|
nopie=yes
|
||||||
|
nodebug=yes
|
||||||
|
nostrip=yes
|
||||||
|
noverifyrdeps=yes
|
||||||
|
noshlibsprovides=yes
|
||||||
|
lib32disabled=yes
|
||||||
|
pkg_install() {
|
||||||
|
DESTDIR="$PKGDESTDIR" _install_crt "i686-w64-mingw32"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue