aboutsummaryrefslogtreecommitdiffstats
path: root/community/gcc-avr/APKBUILD
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2016-08-18 20:01:37 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-18 21:21:06 +0200
commit2f2883cc10692bcb0db5997907b081268fad8d79 (patch)
treed81d38b511465f265bd65324bb46fdfeee4749e6 /community/gcc-avr/APKBUILD
parentbe6dec1f57e2315d6b3e04d81be7d2220edbdf7f (diff)
downloadaports-2f2883cc10692bcb0db5997907b081268fad8d79.tar.bz2
aports-2f2883cc10692bcb0db5997907b081268fad8d79.tar.xz
testing/[various]: move to community
Diffstat (limited to 'community/gcc-avr/APKBUILD')
-rw-r--r--community/gcc-avr/APKBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/community/gcc-avr/APKBUILD b/community/gcc-avr/APKBUILD
new file mode 100644
index 0000000000..8f9cd2f03d
--- /dev/null
+++ b/community/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"