From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/cross-arm-wince-cegcc-gcc-base/PKGBUILD | 55 +++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 community/cross-arm-wince-cegcc-gcc-base/PKGBUILD (limited to 'community/cross-arm-wince-cegcc-gcc-base/PKGBUILD') diff --git a/community/cross-arm-wince-cegcc-gcc-base/PKGBUILD b/community/cross-arm-wince-cegcc-gcc-base/PKGBUILD new file mode 100644 index 000000000..293b525bd --- /dev/null +++ b/community/cross-arm-wince-cegcc-gcc-base/PKGBUILD @@ -0,0 +1,55 @@ +# $Id: PKGBUILD 23521 2010-08-12 09:23:12Z spupykin $ +# Maintainer: Sergej Pupykin + +pkgname=cross-arm-wince-cegcc-gcc-base +pkgver=0.59.1 +pkgrel=2 +_prefix=/opt/cegcc +pkgdesc="CE GCC bundle - cross compilation tools for WinCE" +arch=(i686 x86_64) +license=(GPL) +options=(!libtool) +url="http://cegcc.sf.net" +depends=('glibc' 'mpfr' 'cloog-ppl') +makedepends=(cross-arm-wince-cegcc-binutils) +source=(http://arch.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2) +md5sums=('5e3c1098abdf8e5db2a3518ee3578b4b') + +build() { + cd $srcdir/cegcc/src + + mkdir build-gcc-base || true + cd build-gcc-base + + export PATH=$_prefix/bin:$PATH + export TARGET=arm-wince-cegcc + unset CFLAGS + unset LDFLAGS + unset MAKEFLAGS + + ../gcc-4.4.0/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --target=arm-wince-cegcc \ + --build=$CARCH \ + --host=$CARCH \ + --prefix=${_prefix} \ + --disable-threads \ + --disable-nls \ + --disable-shared \ + --enable-languages=c \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --without-headers \ + --with-as=$_prefix/bin/arm-wince-cegcc-as \ + --with-ld=$_prefix/bin/arm-wince-cegcc-ld \ + --with-local-prefix=$_prefix \ + --enable-checking + + make all-gcc || (cd gcc && make) && make all-gcc || return 1 + make DESTDIR=$pkgdir install-gcc || return 1 + find $pkgdir/${_prefix} -type f -name \*.a -exec arm-wince-cegcc-ranlib {} \; + cd $pkgdir/${_prefix} && ln -s arm-wince-cegcc arm-cegcc +} -- cgit v1.2.3-54-g00ecf