summaryrefslogtreecommitdiff
blob: f8a59577f2e2936bcb2b9bdf16cb4216d9be1437 (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
38
# 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.9 2004/06/24 23:36:09 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"

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
}