diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/cross-arm-wince-cegcc-gcc/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cross-arm-wince-cegcc-gcc/PKGBUILD')
-rw-r--r-- | community/cross-arm-wince-cegcc-gcc/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/community/cross-arm-wince-cegcc-gcc/PKGBUILD b/community/cross-arm-wince-cegcc-gcc/PKGBUILD new file mode 100644 index 000000000..add91773e --- /dev/null +++ b/community/cross-arm-wince-cegcc-gcc/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 23529 2010-08-12 13:44:06Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=cross-arm-wince-cegcc-gcc +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=(cross-arm-wince-cegcc-binutils) +makedepends=(cross-arm-wince-cegcc-newlib cross-arm-wince-cegcc-w32api cross-arm-wince-cegcc-importlibs) +conflicts=(cross-arm-wince-cegcc-gcc-base) +groups=('cegcc') +source=(http://arch.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2) +md5sums=('5e3c1098abdf8e5db2a3518ee3578b4b') + +build() { + cd $srcdir/cegcc/src + + export PATH=$_prefix/bin:$PATH + export TARGET=arm-wince-cegcc + unset CFLAGS + unset CXXFLAGS + unset LDFLAGS + unset MAKEFLAGS + + mkdir build-gcc || true + cd build-gcc + +if [ $NOEXTRACT -ne 1 ]; then + ../gcc-4.4.0/configure \ + --prefix=${_prefix} \ + --exec-prefix=${_prefix} \ + --bindir=${_prefix}/bin \ + --target=arm-wince-cegcc \ + --build=$CARCH \ + --host=$CARCH \ + --disable-nls \ + --includedir=${_prefix}/include \ + --with-gcc \ + --with-ld=/opt/cegcc/bin/arm-wince-cegcc-ld \ + --with-as=/opt/cegcc/bin/arm-wince-cegcc-as \ + --enable-threads=win32 \ + --enable-languages=c,c++ \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --without-newlib \ + --enable-checking \ + --with-headers \ + --disable-libssp +fi + + make || return 1 + make DESTDIR=$pkgdir install || return 1 + rm -f $pkgdir/$_prefix/lib/libiberty.a + find $pkgdir/${_prefix} -type f -name \*.a -exec arm-wince-cegcc-ranlib {} \; +} |