summaryrefslogtreecommitdiff
blob: aa01436e5ac5ab32ca7af3b48c6d2359c71cad18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/bcm4400/bcm4400-1.0.1.ebuild,v 1.10 2004/07/15 02:39:47 agriffis Exp $

inherit eutils

SRC_URI="http://www.nodomain.org/bcm4400-1.0.1.tar.gz"
DESCRIPTION="Driver for the bcm4400 gigabit card (in the form of kernel modules)."
HOMEPAGE="http://www.mikrolog.fi/Levyt/NET/BC4401.asp"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="x86"
IUSE=""

S=${WORKDIR}/src

src_unpack() {
	unpack ${A}

	# Patch to fix gcc-3.3.x issues.
	# Closes Bug #28614
	epatch ${FILESDIR}/${P}-gcc33-fix.patch
}

src_compile() {
	check_KV

	mv Makefile Makefile.orig
	sed -e "s|\`uname -r\`|$KV|" \
		< Makefile.orig > Makefile
	emake || die
}

src_install() {
	make PREFIX=${D} install || die
}