diff options
Diffstat (limited to 'manualPorts/avr-binutils/Pkgfile')
-rw-r--r-- | manualPorts/avr-binutils/Pkgfile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/manualPorts/avr-binutils/Pkgfile b/manualPorts/avr-binutils/Pkgfile new file mode 100644 index 0000000..d9fd4c6 --- /dev/null +++ b/manualPorts/avr-binutils/Pkgfile @@ -0,0 +1,56 @@ +# Description: A set of programs to assemble and manipulate binary and object files for the AVR architecture +# URL: http://www.gnu.org/software/binutils/ +# Maintainer: Erich Eckner, crux at eckner dot net +# Contributor: schuay, jakob dot gruber at gmail dot com +# Contributor: Brad Fanella, bradfanella at archlinux dot us +# Contributor: Corrado Primier, bardo at aur dot archlinux dot org +# Contributor: danst0, danst0 at west dot de +# Depends on: glibc zlib binutils + +name=avr-binutils +version=2.30 +release=1 +source=("ftp://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.bz2" + "avr-size.patch" + "avr-binutils.revdep") + +build() { + + cd binutils-${version} + patch -Np0 < "${SRC}/avr-size.patch" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure + + config_guess=$(./config.guess) + + mkdir binutils-build + cd binutils-build + ../configure \ + --prefix=/usr \ + --disable-nls \ + --with-lib-path=/usr/lib:/usr/local/lib \ + --with-bugurl=https://bugs.archlinux.org/ \ + --enable-ld=default \ + --enable-gold \ + --enable-plugins \ + --enable-threads \ + --with-pic \ + --enable-shared \ + --disable-werror \ + --disable-multilib \ + --build=${config_guess} \ + --target=avr + + make configure-host + make tooldir=/usr + make prefix=${PKG}/usr tooldir=${PKG}/usr install + + for bin in ar as nm objcopy objdump ranlib strip readelf + do + rm -f ${PKG}/usr/bin/${bin} + done + + rm -rf ${PKG}/usr/share/info + + install -D -m0644 ${SRC}/avr-binutils.revdep ${PKG}/etc/revdep.d/${name} + +} |