# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="The GNU binutils for the AVR microcontroller architecture" # Homepage, not used by Portage directly but handy for developer reference HOMEPAGE="http://sources.redhat.com/binutils" S="${WORKDIR}/binutils-2.14" A="binutils-2.14.tar.bz2" SRC_URI="http://ftp.gnu.org/gnu/binutils/${A}" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" INSTALLDIR=/usr/avr MANDIR=/usr/share/man INFODIR=/usr/share/info # Build-time dependencies, such as # ssl? ( >=openssl-0.9.6b ) # >=perl-5.6.1-r1 # It is advisable to use the >= syntax show above, to reflect what you # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. DEPEND="virtual/glibc" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" src_compile() { pwd ./configure \ --host=${CHOST} \ --target=avr \ --prefix=${INSTALLDIR} \ --infodir=${INFODIR} \ --mandir=${MANDIR} || die "./configure failed" emake || die } src_install() { make prefix=${D}${INSTALLDIR} \ mandir=${D}${MANDIR} \ infodir=${D}${INFODIR} \ install || die dodir /etc/env.d echo -e "PATH=${INSTALLDIR}/bin\nROOTPATH=${INSTALLDIR}/bin" > \ ${D}/etc/env.d/11avrbinutils }