summaryrefslogtreecommitdiff
path: root/community/arm-wince-cegcc-gcc/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-21 23:14:55 +0000
committerroot <root@rshg054.dnsready.net>2011-12-21 23:14:55 +0000
commit69d24275e4d5296a5f02e4c4d0fc438a80d159b8 (patch)
tree06395fd573908625990d57aa57cdacba4d92faae /community/arm-wince-cegcc-gcc/PKGBUILD
parentea1f4bece8870857691a7123bdc899562760b3fe (diff)
Wed Dec 21 23:14:54 UTC 2011
Diffstat (limited to 'community/arm-wince-cegcc-gcc/PKGBUILD')
-rw-r--r--community/arm-wince-cegcc-gcc/PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/community/arm-wince-cegcc-gcc/PKGBUILD b/community/arm-wince-cegcc-gcc/PKGBUILD
new file mode 100644
index 000000000..8787f4b46
--- /dev/null
+++ b/community/arm-wince-cegcc-gcc/PKGBUILD
@@ -0,0 +1,66 @@
+# $Id: PKGBUILD 61036 2011-12-20 20:10:53Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=arm-wince-cegcc-gcc
+pkgver=0.59.1
+pkgrel=4
+_prefix=/opt/cegcc
+pkgdesc="CE GCC bundle - cross compilation tools for WinCE"
+arch=(i686 x86_64)
+license=('GPL')
+options=(!libtool !strip)
+url="http://cegcc.sf.net"
+depends=('cloog' 'ppl' 'arm-wince-cegcc-binutils')
+makedepends=('arm-wince-cegcc-newlib' 'arm-wince-cegcc-w32api'
+ 'arm-wince-cegcc-importlibs' 'arm-wince-cegcc-gcc-base'
+ 'arm-wince-cegcc-cegccdll-dummy')
+conflicts=('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 CPPFLAGS
+ unset LDFLAGS
+ unset MAKEFLAGS
+
+ mkdir -p build-gcc
+ 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 {} \;
+ strip $pkgdir/${_prefix}/bin/arm-wince-cegcc-* || true
+ find $pkgdir/${_prefix}/libexec/ -type f -exec strip {} \; || true
+ rm -f $pkgdir/${_prefix}/info/dir
+ cd $pkgdir/${_prefix} && ln -s arm-wince-cegcc arm-cegcc
+}