# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-boot/gnu-efi/gnu-efi-3.0a.ebuild,v 1.6 2004/07/01 21:46:11 eradicator Exp $ inherit eutils DESCRIPTION="Library for build EFI Applications" SRC_URI="ftp://ftp.hpl.hp.com/pub/linux-ia64/gnu-efi-3.0a.tar.gz" HOMEPAGE="http://developer.intel.com/technology/efi" KEYWORDS="ia64 ~x86" SLOT="3" LICENSE="GPL-2" IUSE="" DEPEND="virtual/libc" # don't think there's anything else RDEPEND="virtual/libc" src_unpack() { unpack ${A} && cd ${S} || die "failed to unpack" epatch ${FILESDIR}/gnu-efi-3.0a-lds.patch || die "epatch failed" } src_compile() { local iarch case $ARCH in ia64) iarch=ia64 ;; x86) iarch=ia32 ;; *) die "unknown architecture: $ARCH" ;; esac emake CC="${CC}" ARCH=${iarch} -j1 || die "emake failed" } src_install() { make install INSTALLROOT=${D}/usr || die "einstall failed" dodoc README* ChangeLog }