summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/gcc/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-09 20:43:31 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-09 20:43:31 (GMT)
commit5fd8298a4c454a3b91be11f269ced788b7a37679 (patch)
tree048f5d8c5c71006a7478bf7230155788e49f46b2 /abs/core-testing/gcc/PKGBUILD
parent1c4b59e5d379ba44c9ba9e27750ebec49a597c0d (diff)
downloadlinhes_pkgbuild-5fd8298a4c454a3b91be11f269ced788b7a37679.zip
linhes_pkgbuild-5fd8298a4c454a3b91be11f269ced788b7a37679.tar.gz
linhes_pkgbuild-5fd8298a4c454a3b91be11f269ced788b7a37679.tar.bz2
gcc and all its requirements
Diffstat (limited to 'abs/core-testing/gcc/PKGBUILD')
-rw-r--r--abs/core-testing/gcc/PKGBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/abs/core-testing/gcc/PKGBUILD b/abs/core-testing/gcc/PKGBUILD
new file mode 100644
index 0000000..7319d97
--- /dev/null
+++ b/abs/core-testing/gcc/PKGBUILD
@@ -0,0 +1,72 @@
+# $Id: PKGBUILD 17247 2008-10-27 08:12:22Z jgc $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=gcc
+pkgver=4.3.1
+pkgrel=1
+_snapshot=4.3-20080724
+pkgdesc="The GNU Compiler Collection"
+arch=(i686 x86_64)
+license=('GPL' 'LGPL')
+groups=('base-devel')
+url="http://gcc.gnu.org"
+depends=('binutils>=2.18-9' "gcc-libs>=${pkgver}" 'mpfr>=2.3.1' 'texinfo')
+makedepends=('flex')
+replaces=('gcc-fortran' 'gcc-objc')
+options=('!libtool')
+install=gcc.install
+source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc,java}-${pkgver}.tar.bz2
+ #ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++,fortran,objc,java}-${_snapshot}.tar.bz2
+ ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-20080118.tar.bz2
+ gcc_pure64.patch
+ gcc-hash-style-both.patch
+ gcc-java-driver.patch)
+
+build() {
+ if ! locale -a | grep ^de_DE; then
+ echo "You need the de_DE locale to build gcc."
+ return 1
+ fi
+
+ cd ${srcdir}/gcc-${pkgver}
+ #cd ${srcdir}/gcc-${_snapshot}
+ # Don't install libiberty
+ sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+ if [ "${CARCH}" = "x86_64" ]; then
+ patch -Np1 -i ../gcc_pure64.patch || return 1
+ fi
+ patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch || return 1
+ patch -Np0 -i ${srcdir}/gcc-java-driver.patch || return 1
+
+ echo ${pkgver} > gcc/BASE-VER
+
+ mkdir build
+ cd build
+ ../configure --prefix=/usr --enable-shared \
+ --enable-languages=c,c++,fortran,objc,obj-c++,treelang \
+ --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info \
+ --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib \
+ --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch \
+ --with-tune=generic
+ make || return 1
+ make -j1 DESTDIR=${pkgdir} install || return 1
+ mkdir -p ${pkgdir}/lib
+ ln -sf ../usr/bin/cpp ${pkgdir}/lib/cpp
+ ln -sf gcc ${pkgdir}/usr/bin/cc
+ ln -sf g++ ${pkgdir}/usr/bin/c++
+
+ # install the libstdc++ man pages
+ mkdir -p ${pkgdir}/usr/share/man/man3
+ install -m644 ${srcdir}/man/man3/* ${pkgdir}/usr/share/man/man3/
+
+ # Remove libraries and translations in gcc-libs
+ rm -f ${pkgdir}/usr/lib/lib*
+ find ${pkgdir} -name libstdc++.mo -delete
+
+ # Remove fixed includes, either no need for them, or they're not complete
+ rm -rf ${pkgdir}/usr/lib/${CHOST}/${pkgver}/include-fixed/*
+
+ rm -f ${pkgdir}/usr/share/info/dir
+}