aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gcc-avr
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2016-05-23 00:15:03 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-03 08:56:41 +0000
commit19dad919fde3f877f676cfd3fca2d9528552f3f1 (patch)
tree85d8c764f3a3b86a6330af1978c8b1429ce7cb3e /testing/gcc-avr
parentd91375b1f8ac1b1e5c3b59c54bca68f3b021953f (diff)
downloadaports-19dad919fde3f877f676cfd3fca2d9528552f3f1.tar.bz2
aports-19dad919fde3f877f676cfd3fca2d9528552f3f1.tar.xz
testing/gcc-avr: new aport
The GNU Compiler Collection for AVR targets http://gcc.gnu.org
Diffstat (limited to 'testing/gcc-avr')
-rw-r--r--testing/gcc-avr/APKBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/testing/gcc-avr/APKBUILD b/testing/gcc-avr/APKBUILD
new file mode 100644
index 0000000000..8f9cd2f03d
--- /dev/null
+++ b/testing/gcc-avr/APKBUILD
@@ -0,0 +1,68 @@
+# Contributor: Stefan Wagner <stw@bit-strickerei.de>
+# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
+pkgname=gcc-avr
+pkgver=5.3.0
+pkgrel=0
+pkgdesc="The GNU Compiler Collection for AVR targets"
+url="http://gcc.gnu.org"
+depends="binutils-avr"
+makedepends="bash linux-headers gmp-dev mpfr-dev mpc1-dev zlib-dev"
+arch="all"
+license="GPL LGPL"
+subpackages="$pkgname-doc"
+_islver=0.15
+source="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2
+ http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2"
+
+builddir="$srcdir/gcc-$pkgver"
+_workingdir="$builddir/build"
+
+build() {
+ mkdir "$_workingdir" || return 1
+ cd "$_workingdir"
+
+ # link isl for in-tree build
+ ln -s "$srcdir"/isl-"$_islver" "$builddir"/isl
+
+ export CFLAGS_FOR_TARGET='-pipe'
+ export CXXFLAGS_FOR_TARGET='-pipe'
+
+ "$builddir"/configure \
+ --build="$CBUILD" \
+ --target=avr \
+ --prefix=/usr \
+ --enable-languages=c,c++ \
+ --enable-ld=default \
+ --enable-__cxa_atexit \
+ --disable-install-libiberty \
+ --disable-libssp \
+ --disable-libstdcxx-pch \
+ --disable-libunwind-exceptions \
+ --disable-linker-build-id \
+ --disable-nls \
+ --disable-werror \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib \
+ --with-as=/usr/bin/avr-as \
+ --with-gnu-as \
+ --with-gnu-ld \
+ --with-ld=/usr/bin/avr-ld \
+ --with-system-zlib \
+ --with-isl || return 1
+ make
+}
+
+package() {
+ cd "$_workingdir"
+ make install DESTDIR="$pkgdir" || return 1
+ rm -rf "$pkgdir"/usr/share/man/man7
+ rm -f "$pkgdir"/usr/lib/libcc1.*
+ find "$pkgdir"/usr/lib -type f -name "*.a" -exec /usr/bin/avr-strip --strip-debug '{}' \;
+}
+
+md5sums="c9616fd448f980259c31de613e575719 gcc-5.3.0.tar.bz2
+8428efbbc6f6e2810ce5c1ba73ecf98c isl-0.15.tar.bz2"
+sha256sums="b84f5592e9218b73dbae612b5253035a7b34a9a1f7688d2e1bfaaf7267d5c4db gcc-5.3.0.tar.bz2
+8ceebbf4d9a81afa2b4449113cee4b7cb14a687d7a549a963deb5e2a41458b6b isl-0.15.tar.bz2"
+sha512sums="d619847383405fd389f5a2d7225f97fedb01f81478dbb8339047ccba7561a5c20045ab500a8744bffd19ea51892ce09fc37f862f2cfcb42de0f0f8cd8f8da37a gcc-5.3.0.tar.bz2
+1e27b7798f7428abcb5e9b2e3fbe3842fede54c03bbd7bd3cf83703e1e4cca7d95c51326ab90253fe55b38c002183e8e78dfbb4d2cf20b0aabe02443c8e7d50f isl-0.15.tar.bz2"