commit
71455d71f4
4 changed files with 150 additions and 0 deletions
44
srcpkgs/avr-binutils/template
Normal file
44
srcpkgs/avr-binutils/template
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Template file for 'avr-binutils'
|
||||
pkgname=avr-binutils
|
||||
version=2.25
|
||||
revision=1
|
||||
short_desc="GNU binary utilities for AVR"
|
||||
maintainer="allan <mail@may.mooo.com>"
|
||||
homepage="http://www.gnu.org/software/binutils/"
|
||||
license="GPL-3"
|
||||
distfiles="$GNU_SITE/binutils/binutils-$version.tar.gz"
|
||||
checksum=cccf377168b41a52a76f46df18feb8f7285654b3c1bd69fc8265cb0fc6902f2d
|
||||
wrksrc="binutils-$version"
|
||||
only_for_archs="i686 x86_64"
|
||||
|
||||
hostmakedepends="zlib-devel"
|
||||
|
||||
do_configure() {
|
||||
./configure \
|
||||
--disable-werror \
|
||||
--enable-ld=default \
|
||||
--enable-shared \
|
||||
--enable-gold \
|
||||
--enable-plugins \
|
||||
--enable-threads \
|
||||
--enable-install-libbfd \
|
||||
--prefix=/usr \
|
||||
--target=avr \
|
||||
--with-pic
|
||||
|
||||
make configure-host
|
||||
}
|
||||
|
||||
do_build() {
|
||||
make tooldir=/usr
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make prefix="$DESTDIR"/usr tooldir="$DESTDIR"/usr install
|
||||
}
|
||||
|
||||
post_install() {
|
||||
rm -rf "$DESTDIR"/usr/share/info
|
||||
rm -rf "$DESTDIR"/usr/share/locale
|
||||
rm "$DESTDIR"/usr/bin/{ar,as,nm,objcopy,objdump,ranlib,strip}
|
||||
}
|
69
srcpkgs/avr-gcc/template
Normal file
69
srcpkgs/avr-gcc/template
Normal file
|
@ -0,0 +1,69 @@
|
|||
# Template build file for 'avr-gcc'
|
||||
pkgname=avr-gcc
|
||||
version=4.9.2
|
||||
revision=1
|
||||
short_desc="The GNU C Compiler for AVR"
|
||||
maintainer="allan <mail@may.mooo.com>"
|
||||
homepage="http://gcc.gnu.org"
|
||||
license="GFDL-1.2, GPL-3, LGPL-2.1"
|
||||
distfiles="$GNU_SITE/gcc/gcc-$version/gcc-$version.tar.bz2"
|
||||
checksum=2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd
|
||||
wrksrc="gcc-$version"
|
||||
only_for_archs="i686 x86_64"
|
||||
|
||||
hostmakedepends="avr-binutils zlib-devel libmpc-devel cloog-devel gmp-devel mpfr-devel"
|
||||
depends="avr-binutils"
|
||||
nostrip=yes
|
||||
|
||||
do_configure() {
|
||||
mkdir obj-avr
|
||||
cd obj-avr
|
||||
|
||||
CFLAGS="${CFLAGS/-mtune=generic/}"
|
||||
|
||||
CONFIG_SHELL=/bin/bash ../configure \
|
||||
--disable-install-libiberty \
|
||||
--disable-libssp \
|
||||
--disable-libstdcxx-pch \
|
||||
--disable-libunwind-exceptions \
|
||||
--disable-linker-build-id \
|
||||
--disable-nls \
|
||||
--disable-werror \
|
||||
--enable-__cxa_atexit \
|
||||
--enable-checking=release \
|
||||
--enable-clocale=gnu \
|
||||
--enable-cloog-backend=isl \
|
||||
--enable-gnu-unique-object \
|
||||
--enable-gold \
|
||||
--enable-languages=c,c++ \
|
||||
--enable-ld=default \
|
||||
--enable-lto \
|
||||
--enable-plugin \
|
||||
--enable-shared \
|
||||
--prefix=/usr \
|
||||
--target=avr \
|
||||
--with-gnu-as \
|
||||
--with-as=/usr/bin/avr-as \
|
||||
--with-gnu-ld \
|
||||
--with-ld=/usr/bin/avr-ld \
|
||||
--with-plugin-ld=ld.gold \
|
||||
--with-system-zlib \
|
||||
--without-included-gettext
|
||||
}
|
||||
|
||||
do_build() {
|
||||
cd obj-avr
|
||||
make ${makejobs}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
cd obj-avr
|
||||
make DESTDIR="$DESTDIR" install
|
||||
}
|
||||
|
||||
post_install() {
|
||||
rm -rf "$DESTDIR"/usr/share/man/man7
|
||||
rm -rf "$DESTDIR"/usr/share/info
|
||||
find "$DESTDIR"/usr/lib -type f -name "*.a" \
|
||||
-exec avr-strip --strip-debug {} \;
|
||||
}
|
21
srcpkgs/avr-libc/template
Normal file
21
srcpkgs/avr-libc/template
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Template file for 'avr-libc'
|
||||
pkgname=avr-libc
|
||||
version=1.8.1
|
||||
revision=1
|
||||
short_desc="A C library for use with GCC on Atmel AVR microcontrollers"
|
||||
maintainer="allan <mail@may.mooo.com>"
|
||||
license="BSD"
|
||||
homepage="http://savannah.nongnu.org/projects/avr-libc/"
|
||||
distfiles="$NONGNU_SITE/$pkgname/$pkgname-$version.tar.bz2"
|
||||
checksum=c3062a481b6b2c6959dc708571c00b0e26301897ba21171ed92acd0af7c4a969
|
||||
only_for_archs="i686 x86_64"
|
||||
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="avr-binutils avr-gcc"
|
||||
depends="avr-binutils avr-gcc"
|
||||
nostrip=yes
|
||||
|
||||
do_configure() {
|
||||
CC=avr-gcc CC_FOR_BUILD=avr-gcc AR=avr-ar AS=avr-as RANLIB=avr-ranlib \
|
||||
./configure --host=avr --prefix=/usr
|
||||
}
|
16
srcpkgs/avrdude/template
Normal file
16
srcpkgs/avrdude/template
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Template file for 'avrdude'
|
||||
pkgname="avrdude"
|
||||
version="6.1"
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
short_desc="An utility to manipulate ROM and EEPROM of AVR microcontrollers"
|
||||
maintainer="allan <mail@may.mooo.com>"
|
||||
license="GPL-2"
|
||||
homepage="http://www.nongnu.org/avrdude/"
|
||||
distfiles="$NONGNU_SITE/$pkgname/${pkgname}-$version.tar.gz"
|
||||
checksum=9e98baca8e57cad402aaa1c7b61c8de750ed4f6fed577f7e4935db0430783d3b
|
||||
only_for_archs="i686 x86_64"
|
||||
hostmakedepends="flex"
|
||||
makedepends="elfutils-devel libusb-compat-devel"
|
||||
depends="avr-libc"
|
||||
conf_files="/etc/avrdude.conf"
|
Loading…
Reference in a new issue