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

  ViewVC Help
Powered by ViewVC 1.1.20