2010-02-09 14:19:06 +00:00
|
|
|
# Maintainer: Mike Staszel <mikestaszel@plugapps.com>
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
pkgbase=gcc
|
|
|
|
pkgname=('gcc' 'gcc-libs')
|
2010-02-08 08:28:58 +00:00
|
|
|
pkgver=4.4.3
|
2010-02-15 08:49:03 +00:00
|
|
|
pkgrel=2
|
2009-10-08 03:40:19 +00:00
|
|
|
pkgdesc='The GNU Compiler Collection'
|
|
|
|
arch=(arm)
|
|
|
|
license=(GPL LGPL custom)
|
|
|
|
url='http://gcc.gnu.org'
|
2010-02-15 08:49:03 +00:00
|
|
|
groups=('base-devel')
|
2009-10-08 03:40:19 +00:00
|
|
|
makedepends=(flex 'gcc>=3.4' 'gawk>=3.1.5' 'make>=3.80')
|
2010-02-08 08:28:58 +00:00
|
|
|
source=(http://gcc-uk.internet.bs/releases/gcc-$pkgver/gcc-{core,g++,fortran,objc}-$pkgver.tar.bz2)
|
|
|
|
md5sums=('054b66f315b3d04ad06544ce26e72365'
|
|
|
|
'cd179ec4f05ee17ce76464da25a2674c'
|
|
|
|
'0f8fa5e9edbcf156a061312cae0715ee'
|
|
|
|
'34711c4de46eaf79aa018206dbec4389')
|
2009-10-08 03:40:19 +00:00
|
|
|
options=('!libtool')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir -p $srcdir/gcc-build
|
|
|
|
cd $srcdir/gcc-build
|
|
|
|
|
|
|
|
../gcc-$pkgver/configure --prefix=/usr \
|
|
|
|
--enable-languages=c,c++,fortran,objc,obj-c++ \
|
|
|
|
--disable-libstdcxx-pch \
|
|
|
|
--enable-__cxa_atexit \
|
2009-11-02 19:20:52 +00:00
|
|
|
--with-arch=armv5te \
|
2009-10-08 03:40:19 +00:00
|
|
|
--disable-multilib \
|
|
|
|
--enable-threads=posix || return 1
|
|
|
|
make || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
package_gcc() {
|
|
|
|
depends=("gcc-libs==$pkgver-$pkgrel" 'binutils>=2.19.1' 'mpfr>=2.4.1' 'cloog-ppl>=0.15.3')
|
|
|
|
groups=(base-devel)
|
|
|
|
license=(GPL)
|
|
|
|
|
|
|
|
cd $srcdir/gcc-build
|
|
|
|
make DESTDIR=$pkgdir install || return 1
|
|
|
|
|
|
|
|
ln -sf gcc $pkgdir/usr/bin/cc
|
|
|
|
ln -sf g++ $pkgdir/usr/bin/c++
|
|
|
|
|
|
|
|
# Remove libraries provided by gcc-libs.
|
|
|
|
rm -f $pkgdir/usr/lib/lib*
|
|
|
|
}
|
|
|
|
|
|
|
|
package_gcc-libs() {
|
2010-02-08 08:28:58 +00:00
|
|
|
depends=('glibc>=2.11')
|
2009-10-08 03:40:19 +00:00
|
|
|
groups=(base)
|
|
|
|
pkgdesc='Runtime libraries shipped by GCC for C and C++ languages'
|
|
|
|
license=(LGPL custom)
|
|
|
|
|
|
|
|
cd $srcdir/gcc-build
|
|
|
|
make DESTDIR=$pkgdir install-target-libgcc install-target-libmudflap install-target-libssp install-target-libstdc++-v3 install-target-libgomp install-target-libgfortran install-target-libobjc || return 1
|
|
|
|
|
|
|
|
# make target `install-target-libstdc++-v3' installs include files.
|
|
|
|
# Those are provided by gcc.
|
|
|
|
rm -rf $pkgdir/usr/include
|
|
|
|
|
|
|
|
# make target `install-target-libgomp' installs include files as well.
|
|
|
|
# Those, too, should be provided by gcc.
|
|
|
|
rm -rf $pkgdir/usr/lib/gcc
|
|
|
|
|
|
|
|
# Install Runtime Library Exception license.
|
|
|
|
install -Dm644 ../gcc-$pkgver/COPYING.RUNTIME \
|
|
|
|
$pkgdir/usr/share/licenses/$pkgname/RUNTIME.LIBRARY.EXCEPTION
|
|
|
|
}
|