From 8a8ac56bbf82685c43072923560881e6b119ec66 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 7 Oct 2011 23:14:36 +0000 Subject: Fri Oct 7 23:14:36 UTC 2011 --- community-testing/mingw32-gcc-base/PKGBUILD | 80 ++++++++++++++++++++++ .../mingw32-gcc-base/gcc-1-mingw-float.patch | 18 +++++ community-testing/mingw32-gcc/PKGBUILD | 78 +++++++++++++++++++++ .../mingw32-gcc/gcc-1-mingw-float.patch | 18 +++++ 4 files changed, 194 insertions(+) create mode 100644 community-testing/mingw32-gcc-base/PKGBUILD create mode 100644 community-testing/mingw32-gcc-base/gcc-1-mingw-float.patch create mode 100644 community-testing/mingw32-gcc/PKGBUILD create mode 100644 community-testing/mingw32-gcc/gcc-1-mingw-float.patch (limited to 'community-testing') diff --git a/community-testing/mingw32-gcc-base/PKGBUILD b/community-testing/mingw32-gcc-base/PKGBUILD new file mode 100644 index 000000000..7d66129da --- /dev/null +++ b/community-testing/mingw32-gcc-base/PKGBUILD @@ -0,0 +1,80 @@ +# $Id: PKGBUILD 56365 2011-10-06 16:25:18Z svenstaro $ +# Maintainer: Sergej Pupykin +# Maintainer: Ondrej Jirman + +pkgname=mingw32-gcc-base +pkgver=4.6.1 +_w32apiver=3.17 +_runtimever=3.20 +_uprel=2 +_upw32rel=1 +pkgrel=2 +arch=(i686 x86_64) +pkgdesc="A C cross-compiler for building Windows executables on Linux" +depends=(mingw32-binutils) +makedepends=(p7zip mingw32-runtime mingw32-w32api) +conflicts=(mingw32-gcc) +options=(!strip) +license=(GPL LGPL) +url="http://mingw.sf.net" +source=(gcc-$pkgver-${_uprel}-mingw32-src.tar.lzma::http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-$pkgver-${_uprel}/gcc-$pkgver-${_uprel}-mingw32-src.tar.lzma + http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/RuntimeLibrary/Win32-API/w32api-${_w32apiver}/w32api-${_w32apiver}-${_upw32rel}-mingw32-src.tar.lzma + http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/RuntimeLibrary/MinGW-RT/mingwrt-${_runtimever}/mingwrt-${_runtimever}-mingw32-src.tar.gz + gcc-1-mingw-float.patch) +md5sums=('f8b09b7e51223e1ae1c1e466af3ac82e' + '89e5800096aa334009f98e7c1743d825' + '26c0886cc60729b94956cc6d81cd076c' + '2407123c35c0aa92ee5ffc27decca9a7') + +build() +{ + if [ $NOEXTRACT -ne 1 ]; then + # prepare headers + mkdir -p $srcdir/mingw/include/ + cp -r $srcdir/w32api-${_w32apiver}-${_upw32rel}-mingw32/include/* \ + $srcdir/mingwrt-${_runtimever}-mingw32/include/* \ + $srcdir/mingw/include/ + + unset CFLAGS CXXFLAGS + +# tar xJf gcc-$pkgver-${_uprel}-mingw32-src.tar.xz + cd $srcdir + tar xjf gcc-$pkgver-${_uprel}-mingw32-src/gcc-$pkgver.tar.bz2 + + patch -d $srcdir/gcc-$pkgver -Np1 < $srcdir/gcc-1-mingw-float.patch + + mkdir -p $srcdir/build + cd $srcdir/build + + chmod ugo+x $srcdir/gcc-$pkgver/configure + chmod ugo+x $srcdir/gcc-$pkgver/move-if-change + + $srcdir/gcc-$pkgver/configure \ + --target=i486-mingw32 \ + --host=$CHOST \ + --build=$CHOST \ + --prefix=/usr \ + --enable-languages=c \ + --enable-sjlj-exceptions \ + --enable-hash-synchronization \ + --disable-nls \ + --disable-shared \ + --disable-libssp \ + --disable-libgomp \ + --with-build-sysroot=$srcdir \ + --with-headers=$srcdir/include + else + cd $srcdir/build + fi + + make + make install DESTDIR=$pkgdir + + cd $pkgdir + rm -rf usr/bin/i486-mingw32-{gcov,gccbug,gcc-*} \ + usr/{include,lib/libiberty.a} usr/i486-mingw32 \ + usr/share/{info,man} usr/i486-mingw32 + strip usr/bin/* + strip usr/libexec/gcc/i486-mingw32/$pkgver/{cc1*,collect2} + i486-mingw32-strip -g usr/lib/gcc/i486-mingw32/$pkgver/*.a +} diff --git a/community-testing/mingw32-gcc-base/gcc-1-mingw-float.patch b/community-testing/mingw32-gcc-base/gcc-1-mingw-float.patch new file mode 100644 index 000000000..365949ad7 --- /dev/null +++ b/community-testing/mingw32-gcc-base/gcc-1-mingw-float.patch @@ -0,0 +1,18 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +This patch has been taken from: +http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00387.html +http://sourceforge.net/tracker/?func=detail&atid=302435&aid=3011968&group_id=2435 + +diff -urN a/gcc/ginclude/float.h b/gcc/ginclude/float.h +--- a/gcc/ginclude/float.h 2009-04-09 17:00:19.000000000 +0200 ++++ b/gcc/ginclude/float.h 2010-06-05 12:03:41.887724045 +0200 +@@ -275,3 +275,7 @@ + #endif /* __STDC_WANT_DEC_FP__ */ + + #endif /* _FLOAT_H___ */ ++ ++#ifdef __MINGW32__ ++#include_next ++#endif diff --git a/community-testing/mingw32-gcc/PKGBUILD b/community-testing/mingw32-gcc/PKGBUILD new file mode 100644 index 000000000..95ddbf543 --- /dev/null +++ b/community-testing/mingw32-gcc/PKGBUILD @@ -0,0 +1,78 @@ +# $Id: PKGBUILD 56364 2011-10-06 16:23:44Z svenstaro $ +# Maintainer: Sergej Pupykin +# Maintainer: Ondrej Jirman + +pkgname=mingw32-gcc +pkgver=4.6.1 +pkgrel=2 +_uprel=2 +arch=(i686 x86_64) +pkgdesc="A C and C++ cross-compilers for building Windows executables on Linux" +depends=('mingw32-pthreads' 'mingw32-runtime' 'mingw32-binutils' 'mingw32-w32api' + 'libmpc' 'elfutils' 'gmp') +replaces=('mingw32-gcc-base') +provides=('mingw32-gcc-base') +options=(!strip) +url="http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GCC/Version4/" +license=(GPL LGPL) +source=(gcc-$pkgver-${_uprel}-mingw32-src.tar.lzma::http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-$pkgver-${_uprel}/gcc-$pkgver-${_uprel}-mingw32-src.tar.lzma + gcc-1-mingw-float.patch) +md5sums=('f8b09b7e51223e1ae1c1e466af3ac82e' + '2407123c35c0aa92ee5ffc27decca9a7') + +build() +{ + [ $NOEXTRACT -eq 1 ] || tar xjf gcc-$pkgver-${_uprel}-mingw32-src/gcc-$pkgver.tar.bz2 + + patch -d $srcdir/gcc-$pkgver -Np1 < $srcdir/gcc-1-mingw-float.patch + + mkdir -p $srcdir/build + cd $srcdir/build + + unset CFLAGS CXXFLAGS + + chmod ugo+x $srcdir/gcc-$pkgver/configure + chmod ugo+x $srcdir/gcc-$pkgver/move-if-change + + msg "gcc" + [ -f Makefile ] || $srcdir/gcc-$pkgver/configure \ + --target=i486-mingw32 \ + --host=$CHOST \ + --build=$CHOST \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --with-bugurl=https://bugs.archlinux.org/ \ + --enable-languages=c,c++ \ + --enable-shared \ + --enable-sjlj-exceptions \ + --enable-hash-synchronization \ + --disable-nls \ + --disable-libssp \ + --enable-libgomp + + make + make install DESTDIR=$pkgdir + + msg "libgcc" + make -j1 -C i486-mingw32/libgcc DESTDIR=${pkgdir} libgcc_eh.a install + + msg "libstdc++" + make -j1 -C i486-mingw32/libstdc++-v3 DESTDIR=${pkgdir} install + + msg "fixes" + cd $pkgdir/usr/i486-mingw32/lib + mkdir -p $pkgdir/usr/i486-mingw32/bin/ + for i in `ls -1 *.dll`; do + ln -s ../lib/$i $pkgdir/usr/i486-mingw32/bin/$i + done + + cd $pkgdir + rm -rf usr/bin/i486-mingw32-{gcov,gccbug,gcc-*} \ + usr/{include,lib/libiberty.a} \ + usr/share/{info,man} \ + usr/share/gcc-$pkgver/python + + strip usr/bin/* + strip usr/lib/gcc/i486-mingw32/$pkgver/{cc1*,collect2} + i486-mingw32-strip -g usr/lib/gcc/i486-mingw32/$pkgver/*.a +} diff --git a/community-testing/mingw32-gcc/gcc-1-mingw-float.patch b/community-testing/mingw32-gcc/gcc-1-mingw-float.patch new file mode 100644 index 000000000..365949ad7 --- /dev/null +++ b/community-testing/mingw32-gcc/gcc-1-mingw-float.patch @@ -0,0 +1,18 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +This patch has been taken from: +http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00387.html +http://sourceforge.net/tracker/?func=detail&atid=302435&aid=3011968&group_id=2435 + +diff -urN a/gcc/ginclude/float.h b/gcc/ginclude/float.h +--- a/gcc/ginclude/float.h 2009-04-09 17:00:19.000000000 +0200 ++++ b/gcc/ginclude/float.h 2010-06-05 12:03:41.887724045 +0200 +@@ -275,3 +275,7 @@ + #endif /* __STDC_WANT_DEC_FP__ */ + + #endif /* _FLOAT_H___ */ ++ ++#ifdef __MINGW32__ ++#include_next ++#endif -- cgit v1.2.3-54-g00ecf