Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : mingw-w64 | name : mingw-w64 | ||||
| version : 8.0.0 | version : 9.0.0 | ||||
| release : 4 | release : 5 | ||||
| source : | source : | ||||
| - https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v8.0.0.tar.bz2 : 44c740ea6ab3924bc3aa169bad11ad3c5766c5c8459e3126d44eabb8735a5762 | - https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v9.0.0.tar.bz2 : 1929b94b402f5ff4d7d37a9fe88daa9cc55515a6134805c104d1794ae22a4181 | ||||
| license : | license : | ||||
| - Public-Domain | - Public-Domain | ||||
| - GPL-3.0-or-later | - GPL-3.0-or-later | ||||
| - ZPL-2.1 | - ZPL-2.1 | ||||
| component : programming.devel | component : programming.devel | ||||
| summary : | summary : | ||||
| - The MinGW-w64 project binaries, runtimes and libraries for 64 bits | - The MinGW-w64 project binaries, runtimes and libraries for 64 bits | ||||
| - 32bit : The MinGW-w64 project binaries, runtimes and libraries for 32 bits | - 32bit : The MinGW-w64 project binaries, runtimes and libraries for 32 bits | ||||
| description: | | description: | | ||||
| The mingw-w64 project is a complete runtime environment for gcc to support binaries native to Windows 64-bit and 32-bit operating systems. | The mingw-w64 project is a complete runtime environment for gcc to support binaries native to Windows 64-bit and 32-bit operating systems. | ||||
| homepage : http://mingw-w64.org/doku.php | homepage : http://mingw-w64.org/doku.php | ||||
| strip : no | |||||
| patterns : | |||||
| - 32bit : | |||||
| - /usr/share/mingw-w64/i686-w64-mingw32 | |||||
| builddeps : | builddeps : | ||||
| - mingw-w64-32bit | - mingw-w64-binutils-32bit | ||||
| - mingw-w64-gcc-32bit | - mingw-w64-gcc-32bit | ||||
| rundeps : | rundeps : | ||||
| - mingw-w64-binutils | - mingw-w64-gcc | ||||
| - 32bit : | - 32bit : | ||||
| - mingw-w64-binutils-32bit | - mingw-w64-gcc-32bit | ||||
| autodep : no | |||||
| strip : no | |||||
| environment: | | environment: | | ||||
| export CFLAGS="-O3 -mtune=generic -march=x86-64" | export BASECFLAGS="-O3 -mtune=generic -march=x86-64" | ||||
| export CXXFLAGS="-O3 -mtune=generic -march=x86-64" | export BASECXXFLAGS="-O3 -mtune=generic -march=x86-64" | ||||
| export PREFIX=/usr/share/mingw-w64 | export PREFIX=/usr/share/mingw-w64 | ||||
| export PATH=$PATH:$PREFIX/bin | export PATH=$PATH:$PREFIX/bin | ||||
| export TARGET32=i686-w64-mingw32 | export TARGET32=i686-w64-mingw32 | ||||
| export TARGET64=x86_64-w64-mingw32 | export TARGET64=x86_64-w64-mingw32 | ||||
| unset CC CXX LDFLAGS | unset CC CXX LDFLAGS | ||||
| _set_c_flags() { | _set_c_flags() { | ||||
| export CC=$1-gcc | export CC=$1-gcc | ||||
| export CXX=$1-g++ | export CXX=$1-g++ | ||||
| export CPPFLAGS=-I$installdir/$PREFIX/$1/include | export CPPFLAGS=-I$installdir/$PREFIX/$1/include | ||||
| export CFLAGS="$BASECFLAGS $CPPFLAGS" | |||||
| export CXXFLAGS="$BASECXXFLAGS $CPPFLAGS" | |||||
| export RCFLAGS="$CPPFLAGS" | |||||
| } | } | ||||
| setup : | | setup : | | ||||
| _headers_conf() { | _headers_conf() { | ||||
| ../mingw-w64-headers/configure \ | ../mingw-w64-headers/configure \ | ||||
| --host=$1 \ | --host=$1 \ | ||||
| --prefix=$PREFIX/$1 \ | --prefix=$PREFIX/$1 \ | ||||
| --enable-secure-api \ | --enable-secure-api \ | ||||
| --enable-sdk=all | --enable-sdk=all | ||||
| } | } | ||||
| _crt_conf() { | _crt_conf() { | ||||
| _set_c_flags $1 | _set_c_flags $1 | ||||
| if [ $1 == $TARGET32 ]; then | if [ $1 == $TARGET32 ]; then | ||||
| export _crt_cfg_args="--disable-lib64 --enable-lib32" | export _crt_cfg_args="--disable-lib64 --enable-lib32" | ||||
| elif [ $1 == $TARGET64 ]; then | elif [ $1 == $TARGET64 ]; then | ||||
| export _crt_cfg_args="--disable-lib32 --enable-lib64" | export _crt_cfg_args="--disable-lib32 --enable-lib64" | ||||
| fi | fi | ||||
| ../mingw-w64-crt/configure \ | ../mingw-w64-crt/configure \ | ||||
| --host=$1 \ | --host=$1 \ | ||||
| --enable-experimental \ | --enable-experimental \ | ||||
| --enable-wildcard \ | --enable-wildcard \ | ||||
| --prefix=$PREFIX/$1 \ | --prefix=$PREFIX/$1 \ | ||||
| --includedir=$PREFIX/$1/include \ | |||||
| $_crt_cfg_args | $_crt_cfg_args | ||||
| } | } | ||||
| _winpthreads_conf() { | _winpthreads_conf() { | ||||
| _set_c_flags $1 | _set_c_flags $1 | ||||
| export LDFLAGS=-L%workdir%/crtdir$2/lib$2 | |||||
| ../mingw-w64-libraries/winpthreads/configure \ | ../mingw-w64-libraries/winpthreads/configure \ | ||||
| --host=$1 \ | --host=$1 \ | ||||
| --prefix=$PREFIX/$1 \ | --prefix=$PREFIX/$1 \ | ||||
| --enable-shared \ | --enable-shared \ | ||||
| --enable-static | --enable-static | ||||
| } | } | ||||
| mkdir headdir32 && pushd headdir32 | mkdir headdir32 && pushd headdir32 | ||||
| _headers_conf $TARGET32 | _headers_conf $TARGET32 | ||||
| popd | popd | ||||
| mkdir headdir64 && pushd headdir64 | mkdir headdir64 && pushd headdir64 | ||||
| _headers_conf $TARGET64 | _headers_conf $TARGET64 | ||||
| popd | popd | ||||
| %make_install -C headdir32 | |||||
| %make_install -C headdir64 | |||||
| mkdir crtdir32 && pushd crtdir32 | mkdir crtdir32 && pushd crtdir32 | ||||
| _crt_conf $TARGET32 | _crt_conf $TARGET32 | ||||
| popd | popd | ||||
| mkdir crtdir64 && pushd crtdir64 | mkdir crtdir64 && pushd crtdir64 | ||||
| _crt_conf $TARGET64 | _crt_conf $TARGET64 | ||||
| popd | popd | ||||
| mkdir pthrdir32 && pushd pthrdir32 | # mkdir pthrdir32 && pushd pthrdir32 | ||||
| _winpthreads_conf $TARGET32 | # _winpthreads_conf $TARGET32 32 | ||||
| popd | # popd | ||||
| mkdir pthrdir64 && pushd pthrdir64 | # mkdir pthrdir64 && pushd pthrdir64 | ||||
| _winpthreads_conf $TARGET64 | # _winpthreads_conf $TARGET64 64 | ||||
| popd | # popd | ||||
| build : | | build : | | ||||
| %make -C crtdir32 | %make -C crtdir32 | ||||
| %make -C crtdir64 | %make -C crtdir64 | ||||
| %make -C pthrdir32 | # %make -C pthrdir32 | ||||
| %make -C pthrdir64 | # %make -C pthrdir64 | ||||
| install : | | install : | | ||||
| %make_install -C headdir32 | |||||
| %make_install -C headdir64 | |||||
| %make install-strip -C crtdir32 DESTDIR=$installdir | %make install-strip -C crtdir32 DESTDIR=$installdir | ||||
| %make install-strip -C crtdir64 DESTDIR=$installdir | %make install-strip -C crtdir64 DESTDIR=$installdir | ||||
| %make install-strip -C pthrdir32 DESTDIR=$installdir | # %make install-strip -C pthrdir32 DESTDIR=$installdir | ||||
| %make install-strip -C pthrdir64 DESTDIR=$installdir | # %make install-strip -C pthrdir64 DESTDIR=$installdir | ||||
| patterns : | |||||
| - 32bit : | |||||
| - /usr/share/mingw-w64/i686-w64-mingw32 | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.