summaryrefslogtreecommitdiff
path: root/community/sdcc
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-12-29 11:16:16 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-12-29 11:16:16 -0300
commite6cfd7546bf6f69ede45c253e0c130b58f3520ff (patch)
tree95ed4c7b4ed62c88ca3d9a6a0a7456960ce62645 /community/sdcc
parent8539eba5172b223acd7238f637ca2a6d7e85490f (diff)
parent5cd3c62bce23c2b25c28b22da71f664b48703ad2 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/clementine/PKGBUILD multilib-testing/binutils-multilib/PKGBUILD multilib-testing/gcc-multilib/PKGBUILD multilib-testing/lib32-glibc/PKGBUILD testing/binutils/PKGBUILD testing/gcc/PKGBUILD testing/glibc/PKGBUILD testing/linux-api-headers/PKGBUILD
Diffstat (limited to 'community/sdcc')
-rw-r--r--community/sdcc/PKGBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/community/sdcc/PKGBUILD b/community/sdcc/PKGBUILD
index eb6c882d1..d1358029e 100644
--- a/community/sdcc/PKGBUILD
+++ b/community/sdcc/PKGBUILD
@@ -1,24 +1,32 @@
-# $Id: PKGBUILD 40227 2011-02-22 02:15:34Z stephane $
+# $Id: PKGBUILD 61264 2011-12-27 15:33:34Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jose Negron <josenj.arch@mailnull.net>
pkgname=sdcc
-pkgver=3.0.0
-pkgrel=2
+pkgver=3.1.0
+pkgrel=1
pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08)"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
-depends=('bash' 'gcc-libs')
-makedepends=('gputils' 'flex' 'bison' 'patch')
+depends=('bash' 'gcc-libs' 'boost-libs')
+makedepends=('gputils' 'flex' 'bison' 'patch' 'boost')
optdepends=('python')
url="http://sdcc.sourceforge.net/"
options=(!strip)
source=(http://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-$pkgver.tar.bz2)
-md5sums=('20fbd49a3421e09fe65577c45524c89e')
+md5sums=('92202e970071a8b506fea62a913bd2d2')
build() {
cd $srcdir/$pkgname
LDFLAGS="-lm" ./configure --prefix=$pkgdir/usr
+
+ # gcc -O2 bug workaround
+ [ $CARCH == "i686" ] && (
+ cd src &&
+ make SDCCy.h &&
+ gcc -g -O0 -I. -I.. -I./../support/util -c SDCCicode.c -o SDCCicode.o
+ )
+
make
make install
strip $pkgdir/usr/bin/* || true