summaryrefslogtreecommitdiff
path: root/community/cross-arm-wince-cegcc-gcc/PKGBUILD
blob: dcd86193ca28b3d1e81f0b40852d45279cc76460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $Id: PKGBUILD 45499 2011-04-22 14:57:58Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=cross-arm-wince-cegcc-gcc
pkgver=0.59.1
pkgrel=3
_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.p5n.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

  [ -f Makefile ] || ../gcc-4.4.0/configure \
	--prefix=${_prefix}      \
	--exec-prefix=${_prefix} \
	--bindir=${_prefix}/bin  \
	--target=$TARGET         \
	--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

  make
  make DESTDIR=$pkgdir install
  rm -f $pkgdir/$_prefix/lib/libiberty.a
  find $pkgdir/${_prefix} -type f -name \*.a -exec arm-wince-cegcc-ranlib {} \;
}