/[gentoo-x86]/x11-drivers/mtxdrivers-pro/mtxdrivers-pro-1.1.0_beta-r2.ebuild
Gentoo

Contents of /x11-drivers/mtxdrivers-pro/mtxdrivers-pro-1.1.0_beta-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed May 3 09:01:53 2006 UTC (12 years, 11 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Push version using eselect-opengl into stable.
(Portage version: 2.1_pre10-r2)
 (Signed Manifest commit)

1 spyderous 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 eradicator 1.2 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/mtxdrivers-pro/mtxdrivers-pro-1.1.0_beta-r2.ebuild,v 1.1 2005/12/07 00:12:50 spyderous Exp $
4 spyderous 1.1
5     inherit matrox
6    
7     # GL lib version
8     GL_V="1.3.0"
9    
10     # Stupid naming scheme requires this, probably only works for betas
11     MY_PV="${PV/_/-pro-}"
12     MY_PN="${PN/-pro}"
13     MY_P="${MY_PN}-rh9.0-v${MY_PV}"
14    
15     DESCRIPTION="Drivers for the Matrox Parhelia and Millenium P650/P750 cards with OpenGL support."
16     SRC_URI="${MY_P}.run"
17    
18     KEYWORDS="x86"
19     IUSE=""
20    
21     RDEPEND="x11-base/opengl-update
22     !media-video/mtxdrivers"
23     PROVIDE="virtual/opengl"
24    
25     S="${WORKDIR}"
26    
27     pkg_nofetch() {
28     einfo "You must go to:"
29     einfo "http://www.matrox.com/mga/registration/driverhub.cfm?aid=103&dtype=3&osid=7&prodid=40"
30     einfo "(for the RH9.0 drivers) and log in (or create an account) to download the"
31     einfo "Matrox Parhelia drivers. Remember to right-click and use Save Link As when"
32     einfo "downloading the driver."
33     }
34    
35     src_unpack() {
36     unpack_makeself ${A}
37     # Patch from http://sowerbutts.com/matrox/
38     # found on matrox forums at forum.matrox.com
39     epatch ${FILESDIR}/${PF}-kernel-2.6-will1-20041013.patch
40     }
41    
42     src_install() {
43     # Install 2D driver and DRM kernel module
44     matrox_base_src_install
45    
46     dodoc README*
47    
48     # Install OpenGL driver, libs, etc.
49     local GENTOO_GL_ROOT="/usr/lib/opengl"
50     local GENTOO_MTX_ROOT="${GENTOO_GL_ROOT}/mtx"
51    
52     dodir ${GENTOO_MTX_ROOT}/extensions; exeinto ${GENTOO_MTX_ROOT}/extensions
53     doexe xfree86/${GENTOO_X_VERSION}/libglx.a
54    
55     dodir ${GENTOO_MTX_ROOT}/include; insinto ${GENTOO_MTX_ROOT}/include
56     doins include/GL/gl.h include/GL/glx.h include/GL/glext.h
57    
58     dodir ${GENTOO_MTX_ROOT}/lib; exeinto ${GENTOO_MTX_ROOT}/lib
59     doexe lib/libGL.so.${GL_V}
60     dosym ../../${X11_IMPLEM}/lib/libGL.so.${GL_V} ${GENTOO_MTX_ROOT}/lib/libGL.so.1
61     dosym ../../${X11_IMPLEM}/lib/libGL.so.${GL_V} ${GENTOO_MTX_ROOT}/lib/libGL.so
62    
63     # Same as X11
64     dosym ../../${X11_IMPLEM}/lib/libGL.la ${GENTOO_MTX_ROOT}/lib/libGL.la
65     }
66    
67     pkg_postinst() {
68     # modules-update, maybe some info on busmastering
69     matrox_base_pkg_postinst
70    
71     # Don't run opengl-update for them. Tell them how, instead. (spyderous)
72     einfo "To switch to Matrox OpenGL, run \"opengl-update mtx\""
73     }

  ViewVC Help
Powered by ViewVC 1.1.20