# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Libc for the AVR microcontroller architecture" # Homepage, not used by Portage directly but handy for developer reference HOMEPAGE="http:////www.nongnu.org/avr-libc/" S="${WORKDIR}/avr-libc-20030512cvs" A="avr-libc-20030512cvs.tar.gz" SRC_URI="http://savannah.nongnu.org/download/avr-libc/snapshots/src/${A}" LICENSE="GPL-2" CFLAGS="" 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="avr/avr-gcc" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" src_compile() { mkdir obj-avr cd obj-avr pwd CC=avr-gcc CFLAGS="" ../configure \ --target=avr \ --prefix=${INSTALLDIR} \ --infodir=${INFODIR} \ --mandir=${MANDIR} || die "./configure failed" emake || die } src_install() { cd obj-avr pwd make prefix=${D}${INSTALLDIR} \ mandir=${D}${MANDIR} \ infodir=${D}${INFODIR} \ install || die }