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

Contents of /x11-base/xorg-server/xorg-server-1.0.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Mar 24 01:17:14 2006 UTC (8 years, 5 months ago) by spyderous
Branch: MAIN
(#127333) Fix crashing of pretty much all gtk+-2 apps. We had the client-side updates to composite and fixes extensions, but we didn't let the server know about them, which resulted in lots of BadRequests.
(Portage version: 2.1_pre6-r5)

1 spyderous 1.1 # Copyright 1999-2006 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-1.0.2.ebuild,v 1.1 2006/03/21 06:16:26 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 flag-o-matic x-modular multilib
10    
11     OPENGL_DIR="xorg-x11"
12    
13     MESA_PN="Mesa"
14     MESA_PV="6.4.2"
15     MESA_P="${MESA_PN}-${MESA_PV}"
16     MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
17    
18     PATCHES="${FILESDIR}/${P}-Sbus.patch
19     ${FILESDIR}/${P}-sparc64-cfbrrop-fix.patch
20     ${FILESDIR}/${PV}-try-to-fix-xorgcfg.patch
21     ${FILESDIR}/${PV}-fix-xorgconfig-rgbpath-and-mouse.patch
22     ${DISTDIR}/${PV}-overlay-window.patch.bz2"
23    
24     SRC_URI="${SRC_URI}
25     mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
26     http://dev.gentoo.org/~spyderous/xorg-x11/1.0.2/1.0.2-overlay-window.patch.bz2"
27     DESCRIPTION="X.Org X servers"
28     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
29     IUSE="dri ipv6 minimal xprint"
30     RDEPEND="x11-libs/libXfont
31     x11-libs/xtrans
32     x11-libs/libXau
33     x11-libs/libXext
34     x11-libs/libX11
35     x11-libs/libxkbfile
36     x11-libs/libXdmcp
37     x11-libs/libXmu
38     x11-libs/libXrender
39     x11-libs/libXi
40     media-libs/freetype
41     >=media-libs/mesa-6
42     media-fonts/font-misc-misc
43     media-fonts/font-cursor-misc
44     x11-misc/xbitmaps
45     || ( x11-misc/xkeyboard-config x11-misc/xkbdata )
46     x11-apps/iceauth
47     x11-apps/rgb
48     x11-apps/xauth
49     x11-apps/xinit
50     app-admin/eselect-opengl
51     x11-libs/libXaw
52     x11-libs/libXpm
53     x11-libs/libXxf86misc
54     x11-libs/libXxf86vm
55     !minimal? ( x11-libs/libdmx
56     x11-libs/libXtst
57     x11-libs/libXres )
58     x11-libs/libxkbui
59     x11-libs/liblbxutil"
60     # Xres is dmx-dependent, xkbui is xorgcfg-dependent
61     # Xaw is dmx- and xorgcfg-dependent
62     # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
63     # Xxf86misc and Xxf86vm are xorgcfg-dependent
64     # liblbxutil is lbx- dependent
65     DEPEND="${RDEPEND}
66     x11-proto/randrproto
67     x11-proto/renderproto
68     x11-proto/fixesproto
69     x11-proto/damageproto
70     x11-proto/xextproto
71     x11-proto/xproto
72     x11-proto/xf86dgaproto
73     x11-proto/xf86miscproto
74     x11-proto/xf86rushproto
75     x11-proto/xf86vidmodeproto
76     x11-proto/xf86bigfontproto
77     x11-proto/compositeproto
78     x11-proto/recordproto
79     x11-proto/resourceproto
80     x11-proto/videoproto
81     x11-proto/scrnsaverproto
82     x11-proto/evieext
83     x11-proto/trapproto
84     >=x11-proto/xineramaproto-1.1-r1
85     x11-proto/fontsproto
86     >=x11-proto/kbproto-1.0-r1
87     x11-proto/inputproto
88     x11-proto/bigreqsproto
89     x11-proto/xcmiscproto
90     >=x11-proto/glproto-1.4.1_pre20051013
91     !minimal? ( x11-proto/dmxproto )
92     dri? ( x11-proto/xf86driproto
93     >=x11-libs/libdrm-2 )
94     xprint? ( x11-proto/printproto
95     x11-apps/mkfontdir
96     x11-apps/mkfontscale )"
97     LICENSE="${LICENSE} MIT"
98    
99     pkg_setup() {
100     # localstatedir is used for the log location; we need to override the default
101     # from ebuild.sh
102     # sysconfdir is used for the xorg.conf location; same applies
103    
104     # --enable-xorg needed because darwin defaults off
105     # --enable-install-setuid needed because sparcs default off
106     CONFIGURE_OPTIONS="
107     $(use_enable ipv6)
108     $(use_enable !minimal dmx)
109     $(use_enable !minimal xvfb)
110     $(use_enable !minimal xnest)
111     $(use_enable dri)
112     $(use_enable xprint)
113     --with-mesa-source=${WORKDIR}/${MESA_P}
114     --enable-xorg
115     --sysconfdir=/etc/X11
116     --localstatedir=/var
117     --enable-install-setuid
118     --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1"
119    
120     # (#121394) Causes window corruption
121     filter-flags -fweb
122     }
123    
124     src_install() {
125     x-modular_src_install
126    
127     dynamic_libgl_install
128     }
129    
130     pkg_postinst() {
131     switch_opengl_implem
132     }
133    
134     pkg_postrm() {
135     # Get rid of module dir to ensure opengl-update works properly
136     if ! has_version x11-base/xorg-server; then
137     if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
138     rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
139     fi
140     fi
141     }
142    
143     dynamic_libgl_install() {
144     # next section is to setup the dynamic libGL stuff
145     ebegin "Moving GL files for dynamic switching"
146     dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
147     local x=""
148     for x in ${D}/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
149     if [ -f ${x} -o -L ${x} ]; then
150     mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
151     fi
152     done
153     eend 0
154     }
155    
156     switch_opengl_implem() {
157     # Switch to the xorg implementation.
158     # Use new opengl-update that will not reset user selected
159     # OpenGL interface ...
160     echo
161     eselect opengl set --use-old ${OPENGL_DIR}
162     }

  ViewVC Help
Powered by ViewVC 1.1.20