/[gentoo-x86]/x11-base/xorg-server/xorg-server-0.99.1.ebuild
Gentoo

Diff of /x11-base/xorg-server/xorg-server-0.99.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-0.99.1.ebuild,v 1.6 2005/08/10 01:32:39 spyderous Exp $ 3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-0.99.1.ebuild,v 1.7 2005/08/10 07:00:04 spyderous Exp $
4 4
5# Must be before x-modular eclass is inherited 5# Must be before x-modular eclass is inherited
6# Hack to make sure autoreconf gets run 6# Hack to make sure autoreconf gets run
7SNAPSHOT="yes" 7SNAPSHOT="yes"
8 8
9inherit x-modular 9inherit x-modular
10
11OPENGL_DIR="xorg-x11"
10 12
11MESA_PN="Mesa" 13MESA_PN="Mesa"
12MESA_PV="6.3.1.1" 14MESA_PV="6.3.1.1"
13MESA_P="${MESA_PN}-${MESA_PV}" 15MESA_P="${MESA_PN}-${MESA_PV}"
14 16
27 x11-libs/libxkbfile 29 x11-libs/libxkbfile
28 x11-libs/libXdmcp 30 x11-libs/libXdmcp
29 x11-libs/libXmu 31 x11-libs/libXmu
30 x11-libs/libXrender 32 x11-libs/libXrender
31 x11-libs/libXi 33 x11-libs/libXi
32 media-libs/freetype" 34 media-libs/freetype
35 glx? ( >=media-libs/mesa-6
36 >=x11-base/opengl-update-2.2.2 )"
33DEPEND="${RDEPEND} 37DEPEND="${RDEPEND}
34 x11-proto/randrproto 38 x11-proto/randrproto
35 x11-proto/renderproto 39 x11-proto/renderproto
36 x11-proto/fixesproto 40 x11-proto/fixesproto
37 x11-proto/damageproto 41 x11-proto/damageproto
77 --enable-xtrap 81 --enable-xtrap
78 --enable-xevie 82 --enable-xevie
79 --sysconfdir=/etc/X11 83 --sysconfdir=/etc/X11
80 --localstatedir=/var 84 --localstatedir=/var
81 ${confopts}" 85 ${confopts}"
86
87src_install() {
88 x-modular_src_install
89
90 dynamic_libgl_install
91}
92
93pkg_postinst() {
94 switch_opengl_implem
95}
96
97dynamic_libgl_install() {
98 # next section is to setup the dynamic libGL stuff
99 ebegin "Moving GL files for dynamic switching"
100 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
101 local x=""
102 for x in ${D}/usr/$(get_libdir)/xorg/modules/libglx*; do
103 if [ -f ${x} -o -L ${x} ]; then
104 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
105 fi
106 done
107 eend 0
108}
109
110switch_opengl_implem() {
111 # Switch to the xorg implementation.
112 # Use new opengl-update that will not reset user selected
113 # OpenGL interface ...
114 echo
115 local opengl_implem="$(${ROOT}/usr/sbin/opengl-update --get-implementation)"
116 ${ROOT}/usr/sbin/opengl-update --use-old ${OPENGL_DIR}
117}

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20