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

Contents of /x11-base/xorg-server/xorg-server-1.0.1-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sun Feb 19 03:54:56 2006 UTC (8 years, 6 months ago) by spyderous
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Really fix GLX on 64-bit systems.
(Portage version: 2.1_pre4-r1)

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

  ViewVC Help
Powered by ViewVC 1.1.20