/[gentoo-x86]/net-misc/mknbi/mknbi-1.4.3.ebuild
Gentoo

Contents of /net-misc/mknbi/mknbi-1.4.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Jul 31 02:18:58 2007 UTC (12 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
clean older ebuild
(Portage version: 2.1.2.9)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/mknbi/mknbi-1.4.3.ebuild,v 1.9 2007/07/02 15:02:07 peper Exp $
4
5 inherit toolchain-funcs eutils
6
7 DESCRIPTION="Utility for making tagged kernel images useful for netbooting"
8 SRC_URI="mirror://sourceforge/etherboot/${P}.tar.gz"
9 RESTRICT="mirror"
10 HOMEPAGE="http://etherboot.sourceforge.net"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86"
15 IUSE=""
16
17 DEPEND=">=dev-lang/perl-5.6.1
18 dev-lang/nasm"
19
20 src_unpack() {
21 unpack ${A}
22 cd ${S}
23 epatch ${FILESDIR}/mknbi-1.4.3-nossp.patch
24 }
25
26 src_compile()
27 {
28 sed -i -e "s:\/usr\/local:\/usr:" Makefile
29
30 #apply modifications to CFLAGS to fix for gcc 3.4: bug #64049
31 if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ]
32 then
33 sed -i -e "s:\-mcpu:\-mtune:" Makefile
34 sed -i -e "s:CFLAGS=:CFLAGS= -minline-all-stringops:" Makefile
35 fi
36
37 emake || die "Compile failed"
38 }
39
40 src_install()
41 {
42 export BUILD_ROOT=${D}
43 dodoc COPYING
44 make DESTDIR=${D} install || die "Installing failed"
45 }

  ViewVC Help
Powered by ViewVC 1.1.20