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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Aug 12 17:12:12 2005 UTC (9 years ago) by spyderous
Branch: MAIN
Changes since 1.2: +2 -1 lines
Re-add, this time with a huge patch on the mirror.
(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 flameeyes 1.2 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-0.99.1-r2.ebuild,v 1.1 2005/08/12 04:59:48 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     OPENGL_DIR="xorg-x11"
12    
13     MESA_PN="Mesa"
14     MESA_PV="6.3.1.1"
15     MESA_P="${MESA_PN}-${MESA_PV}"
16    
17     PATCHES="${FILESDIR}/xorg-server-0.99.1-update-to-CVS-HEAD-20050811.patch
18     ${FILESDIR}/check-for-glproto.patch
19     ${FILESDIR}/fix-xf86misc-typo.patch"
20    
21     SRC_URI="${SRC_URI}
22 spyderous 1.3 glx? ( http://xorg.freedesktop.org/extras/${MESA_P}.tar.gz )
23     http://dev.gentoo.org/~spyderous/xorg-x11/xorg-server-0.99.1-update-to-CVS-HEAD-20050811.patch.gz"
24 spyderous 1.1 DESCRIPTION="X.Org X servers"
25     KEYWORDS="~sparc ~x86"
26     IUSE="glx dri xinerama ipv6 minimal"
27     RDEPEND="x11-libs/libXfont
28     x11-libs/xtrans
29     x11-libs/libXau
30     x11-libs/libXext
31     x11-libs/libX11
32     x11-libs/libxkbfile
33     x11-libs/libXdmcp
34     x11-libs/libXmu
35     x11-libs/libXrender
36     x11-libs/libXi
37     media-libs/freetype
38     glx? ( >=media-libs/mesa-6
39     >=x11-base/opengl-update-2.2.2 )"
40     DEPEND="${RDEPEND}
41     x11-proto/randrproto
42     x11-proto/renderproto
43     x11-proto/fixesproto
44     x11-proto/damageproto
45     x11-proto/xextproto
46     x11-proto/xproto
47     x11-proto/xf86dgaproto
48     x11-proto/xf86miscproto
49     x11-proto/xf86rushproto
50     x11-proto/xf86vidmodeproto
51     x11-proto/xf86bigfontproto
52     x11-proto/compositeproto
53     x11-proto/recordproto
54     x11-proto/resourceproto
55     x11-proto/dmxproto
56     x11-proto/videoproto
57     x11-proto/scrnsaverproto
58     x11-proto/evieext
59     x11-proto/trapproto
60     x11-proto/panoramixproto
61     x11-proto/fontsproto
62     x11-proto/kbproto
63     x11-proto/inputproto
64     x11-proto/bigreqsproto
65     x11-proto/xcmiscproto
66     glx? ( x11-proto/glproto )
67     dri? ( x11-proto/xf86driproto
68     x11-libs/libdrm )"
69    
70     pkg_setup() {
71     if use glx; then
72     confopts="${confopts} --with-mesa-source=${WORKDIR}/${MESA_P}"
73     fi
74    
75     # localstatedir is used for the log location; we need to override the default
76     # from ebuild.sh
77     # sysconfdir is used for the xorg.conf location; same applies
78     CONFIGURE_OPTIONS="
79     $(use_enable xinerama)
80     $(use_enable ipv6)
81     $(use_enable !minimal dmx)
82     $(use_enable !minimal xvfb)
83     $(use_enable !minimal xnest)
84     $(use_enable glx)
85     $(use_enable dri)
86     --enable-xorg
87     --enable-composite
88     --enable-xtrap
89     --enable-xevie
90     --sysconfdir=/etc/X11
91     --localstatedir=/var
92     ${confopts}"
93     }
94    
95     src_install() {
96     x-modular_src_install
97    
98     dynamic_libgl_install
99    
100     dosym Xorg /usr/bin/X
101     }
102    
103     pkg_postinst() {
104     switch_opengl_implem
105     }
106    
107     dynamic_libgl_install() {
108     # next section is to setup the dynamic libGL stuff
109     ebegin "Moving GL files for dynamic switching"
110     dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
111     local x=""
112     for x in ${D}/usr/$(get_libdir)/xorg/modules/libglx*; do
113     if [ -f ${x} -o -L ${x} ]; then
114     mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
115     fi
116     done
117     eend 0
118     }
119    
120     switch_opengl_implem() {
121     # Switch to the xorg implementation.
122     # Use new opengl-update that will not reset user selected
123     # OpenGL interface ...
124     echo
125     local opengl_implem="$(${ROOT}/usr/sbin/opengl-update --get-implementation)"
126     ${ROOT}/usr/sbin/opengl-update --use-old ${OPENGL_DIR}
127     }

  ViewVC Help
Powered by ViewVC 1.1.20