PKGBUILDs/community/cross-arm-wince-cegcc-gcc-base/PKGBUILD
2009-10-09 21:15:33 -05:00

53 lines
1.4 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=cross-arm-wince-cegcc-gcc-base
pkgver=0.55
pkgrel=1
pkgdesc="CE GCC bundle - cross compilation tools for WinCE"
arch=(i686 x86_64)
license=(GPL)
options=(!libtool)
url="http://cegcc.sf.net"
depends=('glibc')
source=(http://arch.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2)
md5sums=('a781929486db5b6154a0f82a825895e9')
_prefix=/opt/cegcc
build() {
cd ${startdir}/src/cegcc-$pkgver/src
mkdir build-gcc-base
cd build-gcc-base
export PATH=$_prefix/bin:$PATH
export TARGET=arm-wince-cegcc
unset CFLAGS
unset LDFLAGS
unset MAKEFLAGS
../gcc/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=${startdir}/pkg install-gcc || return 1
}