blob: d0c9f44ba31bb3e9ffc7ec8cb916e8006430a47e (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/mtxdrivers-pro/mtxdrivers-pro-1.1.0_beta-r2.ebuild,v 1.8 2005/07/09 16:02:25 swegener Exp $
inherit matrox
# GL lib version
GL_V="1.3.0"
# Stupid naming scheme requires this, probably only works for betas
MY_PV="${PV/_/-pro-}"
MY_PN="${PN/-pro}"
MY_P="${MY_PN}-rh9.0-v${MY_PV}"
DESCRIPTION="Drivers for the Matrox Parhelia and Millenium P650/P750 cards with OpenGL support."
SRC_URI="${MY_P}.run"
KEYWORDS="x86"
IUSE=""
RDEPEND="x11-base/opengl-update
!media-video/mtxdrivers"
PROVIDE="virtual/opengl"
S="${WORKDIR}"
pkg_nofetch() {
einfo "You must go to:"
einfo "http://www.matrox.com/mga/registration/driverhub.cfm?aid=103&dtype=3&osid=7&prodid=40"
einfo "(for the RH9.0 drivers) and log in (or create an account) to download the"
einfo "Matrox Parhelia drivers. Remember to right-click and use Save Link As when"
einfo "downloading the driver."
}
src_unpack() {
unpack_makeself ${A}
# Patch from http://sowerbutts.com/matrox/
# found on matrox forums at forum.matrox.com
epatch ${FILESDIR}/${PF}-kernel-2.6-will1-20041013.patch
}
src_install() {
# Install 2D driver and DRM kernel module
matrox_base_src_install
dodoc README*
# Install OpenGL driver, libs, etc.
local GENTOO_GL_ROOT="/usr/lib/opengl"
local GENTOO_MTX_ROOT="${GENTOO_GL_ROOT}/mtx"
dodir ${GENTOO_MTX_ROOT}/extensions; exeinto ${GENTOO_MTX_ROOT}/extensions
doexe xfree86/${GENTOO_X_VERSION}/libglx.a
dodir ${GENTOO_MTX_ROOT}/include; insinto ${GENTOO_MTX_ROOT}/include
doins include/GL/gl.h include/GL/glx.h include/GL/glext.h
dodir ${GENTOO_MTX_ROOT}/lib; exeinto ${GENTOO_MTX_ROOT}/lib
doexe lib/libGL.so.${GL_V}
dosym ../../${X11_IMPLEM}/lib/libGL.so.${GL_V} ${GENTOO_MTX_ROOT}/lib/libGL.so.1
dosym ../../${X11_IMPLEM}/lib/libGL.so.${GL_V} ${GENTOO_MTX_ROOT}/lib/libGL.so
# Same as X11
dosym ../../${X11_IMPLEM}/lib/libGL.la ${GENTOO_MTX_ROOT}/lib/libGL.la
}
pkg_postinst() {
# modules-update, maybe some info on busmastering
matrox_base_pkg_postinst
# Don't run opengl-update for them. Tell them how, instead. (spyderous)
einfo "To switch to Matrox OpenGL, run \"opengl-update mtx\""
}
|