aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2016-08-26 09:41:09 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-08-28 03:10:50 +0000
commit3e91e75200d00f4410db0e80b5cec08c24f33731 (patch)
treeb164b05ffcbaef1a333aa2bf0f73a311e7d6f241 /community
parent8bdc98d68351be28bf94e42b1fc6aa62cfe7a206 (diff)
downloadaports-3e91e75200d00f4410db0e80b5cec08c24f33731.tar.bz2
aports-3e91e75200d00f4410db0e80b5cec08c24f33731.tar.xz
testing/{gcc-avr,avr-libc}: moved to community
Diffstat (limited to 'community')
-rw-r--r--community/avr-libc/APKBUILD37
-rw-r--r--community/gcc-avr/APKBUILD68
2 files changed, 105 insertions, 0 deletions
diff --git a/community/avr-libc/APKBUILD b/community/avr-libc/APKBUILD
new file mode 100644
index 0000000000..40a4617e96
--- /dev/null
+++ b/community/avr-libc/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Stefan Wagner <stw@bit-strickerei.de>
+# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
+pkgname=avr-libc
+pkgver=2.0.0
+pkgrel=0
+pkgdesc="The C runtime library for the AVR family of microcontrollers"
+url="http://savannah.nongnu.org/projects/avr-libc/"
+depends="gcc-avr"
+makedepends="autoconf automake bash"
+arch="all"
+license="BSD"
+subpackages="$pkgname-doc"
+source="http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.bz2"
+
+builddir="$srcdir/$pkgname-$pkgver"
+build() {
+ cd "$builddir"
+ ./bootstrap || return 1
+ CC=avr-gcc ./configure \
+ --build="$(./config.guess)" \
+ --host=avr \
+ --prefix=/usr || return 1
+ make
+}
+
+package() {
+ cd "$builddir"
+ make install DESTDIR="$pkgdir" || return 1
+ if [ -d "$pkgdir"/usr/lib64 ]; then
+ mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/
+ rmdir "$pkgdir"/usr/lib64
+ fi
+}
+
+md5sums="2360981cd5d94e1d7a70dfc6983bdf15 avr-libc-2.0.0.tar.bz2"
+sha256sums="b2dd7fd2eefd8d8646ef6a325f6f0665537e2f604ed02828ced748d49dc85b97 avr-libc-2.0.0.tar.bz2"
+sha512sums="fc8d062043d633350dbe05978935dcb8028257a4f1013f246af9658aef0671def19ac11577d1ee9302df68df1b8cf030b22441d96852e185db212263aacabea6 avr-libc-2.0.0.tar.bz2"
diff --git a/community/gcc-avr/APKBUILD b/community/gcc-avr/APKBUILD
new file mode 100644
index 0000000000..36ce212321
--- /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=6.1.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.17.1
+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="8fb6cb98b8459f5863328380fbf06bd1 gcc-6.1.0.tar.bz2
+5184f543a013165e8057be59728664b1 isl-0.17.1.tar.bz2"
+sha256sums="09c4c85cabebb971b1de732a0219609f93fc0af5f86f6e437fd8d7f832f1a351 gcc-6.1.0.tar.bz2
+d6307bf9a59514087abac3cbaab3d99393a0abb519354f7e7834a8c842310daa isl-0.17.1.tar.bz2"
+sha512sums="eeed3e2018b8c012aabce419e8d718fde701e5c3c179b4486c61ba46e5736eecc8fccdd18b01fcd973a42c6ad3116dbbe2ee247fe3757d622d373f93ebaf8d2e gcc-6.1.0.tar.bz2
+b84f6cab0d9fc7cb64f3afc35fc5f8c05db3456c569510788d65d402ebe8116eb49c327b8055eaebdfd0cac4764f279c1832d5440db6ffa0e52331ac52096058 isl-0.17.1.tar.bz2"