summaryrefslogtreecommitdiff
path: root/community/mingw32-gcc
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/mingw32-gcc
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mingw32-gcc')
-rw-r--r--community/mingw32-gcc/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/community/mingw32-gcc/PKGBUILD b/community/mingw32-gcc/PKGBUILD
new file mode 100644
index 000000000..c21c04680
--- /dev/null
+++ b/community/mingw32-gcc/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 39743 2011-02-15 21:13:52Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Ondrej Jirman <megous@megous.com>
+
+pkgname=mingw32-gcc
+pkgver=4.5.2
+pkgrel=2
+arch=(i686 x86_64)
+pkgdesc="A C and C++ cross-compilers for building Windows executables on Linux"
+depends=(mingw32-runtime mingw32-binutils mingw32-w32api libmpc elfutils cloog-ppl gmp)
+replaces=(mingw32-gcc-base)
+provides=(mingw32-gcc-base)
+options=(!strip force)
+url="http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GCC/Version4/"
+license=(GPL LGPL)
+source=(gcc-$pkgver-1-mingw32-src.tar.xz::http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-$pkgver-1/gcc-$pkgver-1-mingw32-src.tar.lzma)
+md5sums=('6df4174d78285ec58910f86217b8acb1')
+
+build()
+{
+ [ $NOEXTRACT -eq 1 ] || tar xJf gcc-$pkgver-1-mingw32-src.tar.xz
+ [ $NOEXTRACT -eq 1 ] || tar xjf gcc-$pkgver.tar.bz2
+
+ 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
+
+ [ $NOEXTRACT -eq 1 ] || $srcdir/gcc-$pkgver/configure \
+ --target=i486-mingw32 \
+ --host=$CHOST \
+ --build=$CHOST \
+ --prefix=/usr \
+ --enable-languages=c,c++ \
+ --enable-shared \
+ --enable-sjlj-exceptions \
+ --enable-hash-synchronization \
+ --disable-nls \
+ --disable-libssp \
+
+ make
+ make install DESTDIR=$pkgdir
+
+ make -j1 -C i486-mingw32/libgcc DESTDIR=${pkgdir} libgcc_eh.a install
+ make -j1 -C i486-mingw32/libstdc++-v3 DESTDIR=${pkgdir} install
+
+ mkdir -p $pkgdir/usr/i486-mingw32/bin/
+ mv $pkgdir/usr/bin/*.dll $pkgdir/*.dll $pkgdir/usr/i486-mingw32/bin/
+
+ 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/libexec/gcc/i486-mingw32/$pkgver/{cc1*,collect2}
+ i486-mingw32-strip -g usr/lib/gcc/i486-mingw32/$pkgver/*.a
+}