Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=374a6626f27c29b8265861366080a457155c6d51

commit 374a6626f27c29b8265861366080a457155c6d51
Author: Devil505 <devil505li...@gmail.com>
Date:   Sun Oct 30 15:42:50 2011 +0100

gcc-avr-4.6.2-1-i686
* new package
* close #4215

diff --git a/source/devel-extra/gcc-avr/FrugalBuild 
b/source/devel-extra/gcc-avr/FrugalBuild
new file mode 100644
index 0000000..5618180
--- /dev/null
+++ b/source/devel-extra/gcc-avr/FrugalBuild
@@ -0,0 +1,47 @@
+# Compiling Time: 26.48 SBU
+# Maintainer: Miklos Vajna <vmik...@frugalware.org>
+
+pkgname=gcc-avr
+_F_archive_name="${pkgname/-avr}"
+pkgver=4.6.2
+pkgrel=1
+pkgdesc="The GNU avr Compiler Collection for the avr architecture"
+url="http://gcc.gnu.org";
+depends=('binutils-avr>=2.21' 'libgcc>=4.6.0' 'libmpc')
+groups=('devel-extra')
+archs=('i686' 'x86_64')
+options=('scriptlet')
+up2date="Flasttar ftp://gcc.gnu.org/pub/gcc/snapshots/LATEST-${pkgver/%_*/}/";
+source=(http://ftp.gnu.org/gnu/gcc/${pkgname/-avr}-${pkgver}/gcc-{core,g++}-${pkgver}.tar.bz2)
+sha1sums=('23d259e2269a40f6e203cf6f57bc7eb7a207a8b3' \
+          'f0bc2b4e1c23c5dc1462599efd5df4b9807b23af')
+
+build() {
+       export CFLAGS="-O2 -pipe"
+       export CXXFLAGS="-O2 -pipe"
+
+       Fcd ${pkgname/-avr}-${pkgver}
+
+       mkdir build
+       cd build
+       ../configure --disable-libssp \
+               --disable-nls \
+               --enable-languages=c,c++ \
+               --infodir=/usr/share/info \
+                       --libdir=/usr/lib \
+                       --libexecdir=/usr/lib \
+                       --mandir=/usr/share/man \
+                       --prefix=/usr \
+                       --target=avr \
+                       --with-gnu-as \
+                       --with-gnu-ld \
+                       --with-as=/usr/bin/avr-as \
+                       --with-ld=/usr/bin/avr-ld || Fdie
+
+       make || Fdie
+       make -j1 DESTDIR=$Fdestdir install || Fdie
+
+       Frm usr/lib/libiberty.a
+       Frm usr/share/man/man7
+       Frm usr/share/info
+}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to