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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Wed Aug 10 07:00:04 2005 UTC (9 years, 3 months ago) by spyderous
Branch: MAIN
Changes since 1.6: +38 -2 lines
Add GL handling, /usr/lib/opengl, opengl-update, etc.
(Portage version: 2.0.51.22-r2)

1 spyderous 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 spyderous 1.7 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-0.99.1.ebuild,v 1.6 2005/08/10 01:32:39 spyderous Exp $
4 spyderous 1.1
5     # Must be before x-modular eclass is inherited
6     # Hack to make sure autoreconf gets run
7     SNAPSHOT="yes"
8    
9     inherit x-modular
10    
11 spyderous 1.7 OPENGL_DIR="xorg-x11"
12    
13 spyderous 1.1 MESA_PN="Mesa"
14     MESA_PV="6.3.1.1"
15     MESA_P="${MESA_PN}-${MESA_PV}"
16    
17     PATCHES="${FILESDIR}/xorg-composite.patch"
18    
19     SRC_URI="${SRC_URI}
20     glx? ( http://xorg.freedesktop.org/extras/${MESA_P}.tar.gz )"
21     DESCRIPTION="X.Org X servers"
22 fmccor 1.3 KEYWORDS="~sparc ~x86"
23 spyderous 1.1 IUSE="glx dri xinerama ipv6 minimal"
24     RDEPEND="x11-libs/libXfont
25     x11-libs/xtrans
26     x11-libs/libXau
27     x11-libs/libXext
28     x11-libs/libX11
29     x11-libs/libxkbfile
30     x11-libs/libXdmcp
31     x11-libs/libXmu
32     x11-libs/libXrender
33     x11-libs/libXi
34 spyderous 1.7 media-libs/freetype
35     glx? ( >=media-libs/mesa-6
36     >=x11-base/opengl-update-2.2.2 )"
37 spyderous 1.1 DEPEND="${RDEPEND}
38     x11-proto/randrproto
39     x11-proto/renderproto
40     x11-proto/fixesproto
41     x11-proto/damageproto
42     x11-proto/xextproto
43     x11-proto/xproto
44     x11-proto/xf86dgaproto
45     x11-proto/xf86miscproto
46     x11-proto/xf86rushproto
47     x11-proto/xf86vidmodeproto
48     x11-proto/xf86bigfontproto
49     x11-proto/compositeproto
50     x11-proto/recordproto
51     x11-proto/resourceproto
52     x11-proto/dmxproto
53 spyderous 1.2 x11-proto/videoproto
54     x11-proto/scrnsaverproto
55     x11-proto/evieext
56 spyderous 1.4 x11-proto/trapproto
57     x11-proto/panoramixproto
58 spyderous 1.5 x11-proto/fontsproto
59 spyderous 1.6 x11-proto/kbproto
60 spyderous 1.1 glx? ( x11-proto/glproto )
61     dri? ( x11-proto/xf86driproto
62     x11-libs/libdrm )"
63    
64     if use glx; then
65     confopts="${confopts} --with-mesa-source=${WORKDIR}/${MESA_P}"
66     fi
67    
68     # localstatedir is used for the log location; we need to override the default
69     # from ebuild.sh
70     # sysconfdir is used for the xorg.conf location; same applies
71     CONFIGURE_OPTIONS="
72     $(use_enable xinerama)
73     $(use_enable ipv6)
74     $(use_enable !minimal dmx)
75     $(use_enable !minimal xvfb)
76     $(use_enable !minimal xnest)
77     $(use_enable glx)
78     $(use_enable dri)
79     --enable-xorg
80     --enable-composite
81     --enable-xtrap
82     --enable-xevie
83     --sysconfdir=/etc/X11
84     --localstatedir=/var
85     ${confopts}"
86 spyderous 1.7
87     src_install() {
88     x-modular_src_install
89    
90     dynamic_libgl_install
91     }
92    
93     pkg_postinst() {
94     switch_opengl_implem
95     }
96    
97     dynamic_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    
110     switch_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     }

  ViewVC Help
Powered by ViewVC 1.1.20