1 # Contributor: Claudio Pisa <clauz@ninux.org>
2 # based con gcc43 PKGBUILD
8 pkgdesc="The GNU Compiler Collection"
10 license=('GPL' 'LGPL')
11 url="http://gcc.gnu.org"
12 depends=('glibc' 'binutils' 'gmp' 'mpfr' 'ppl' 'cloog-ppl')
13 makedepends=('flex' 'bison')
15 source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc,java}-${pkgver}.tar.bz2)
16 md5sums=('2af3fb599635219171c6ae1f3034888a'
17 '75c6d5fa3415d614314caf0f509e8933'
18 '39621038e425c73f955db8c8db411c34'
19 'abda05c0ab99059e8f9e7a625361fd87'
20 '83cad4d52ff4a47b69e57012a5efe534')
24 if ! locale -a | grep ^de_DE; then
25 echo "You need the de_DE locale to build gcc."
29 cd ${srcdir}/gcc-${pkgver}
30 # Don't install libiberty
31 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
33 echo ${pkgver} > gcc/BASE-VER
35 # Don't run fixincludes
36 sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
40 ../configure --prefix=/usr --enable-shared \
41 --enable-languages=c,c++ \
42 --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info \
43 --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib \
44 --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch \
46 --disable-werror --enable-checking=release \
47 --program-suffix=-${_ver} --enable-version-specific-runtime-libs
49 make DESTDIR=${pkgdir} install || return 1
51 # Lazy way of dealing with conflicting man and info pages...
52 rm -rf ${pkgdir}/usr/share