summaryrefslogtreecommitdiff
blob: d0ea483012e5f2792c12256ee1421a94d2d285cb (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/kyro-kernel/kyro-kernel-2.00.20.0427.ebuild,v 1.5 2003/06/02 14:44:19 seemant Exp $

IUSE=""

DEBUG="yes"
RESTRICT="nostrip"

S=${WORKDIR}/powervr-2.00.20-427
DESCRIPTION="XFree86 DRI drivers for the KyroII card"
HOMEPAGE="http://www.powervr.com/"
SRC_URI="http://www.powervr.com/Drivers/Linux/powervr-2.00.20-427.tgz"

SLOT="${KV}"
LICENSE="ImaginationTechnologies"
KEYWORDS="~x86 -ppc -sparc -alpha -mips -hppa -arm"

DEPEND="virtual/x11
	virtual/linux-sources
	>=sys-apps/portage-1.9.10"

RDEPEND="virtual/x11"

src_unpack() {
	unpack ${A}
	cd ${S} 
	epatch ${FILESDIR}/mtrr-include-fix.diff
}

src_compile() {
	check_KV
	make || die
}

src_install() {
	insinto /lib/modules/${KV}/drivers/char/drm/
	doins powervr.o

	dolib.so lib*.so
	dolib.a lib*.a
	
	insinto /usr/X11R6/lib/modules/dri
	doins powervr_dri.so 

	insinto /usr/X11R6/lib/modules/drivers
	doins powervr_drv.o 
	
	insinto /etc
	dosin powervr_kyro.ini

	dosym /usr/lib/libPVR2D.so /usr/X11R6/lib/modules/drivers/libPVR2D.so 

	dodoc XF86KyroSampleConfig LICENSE.TXT README
}