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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat May 13 09:12:35 2006 UTC (8 years, 3 months ago) by spyderous
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Bump to 7.1RC3.
(Portage version: 2.1_pre10-r5)
 (Unsigned Manifest commit)

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.99.902-r1.ebuild,v 1.2 2006/05/13 05:44:41 joshuabaergen 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 multilib
10
11 OPENGL_DIR="xorg-x11"
12
13 MESA_PN="Mesa"
14 MESA_PV="6.5"
15 MESA_P="${MESA_PN}-${MESA_PV}"
16 MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
17
18 PATCHES="${FILESDIR}/${PN}-1.0.2-xprint-init.patch
19 ${FILESDIR}/CVE-2006-1526-xrender-mitri.patch
20 ${FILESDIR}/1.0.99.901-Xprint-xprintdir.patch"
21
22 SRC_URI="${SRC_URI}
23 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
24 http://xorg.freedesktop.org/snapshots/individual/xserver/${P}.tar.bz2"
25 DESCRIPTION="X.Org X servers"
26 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
27 IUSE_VIDEO_CARDS="
28 video_cards_chips
29 video_cards_epson
30 video_cards_glint
31 video_cards_i810
32 video_cards_mach64
33 video_cards_mga
34 video_cards_neomagic
35 video_cards_nv
36 video_cards_r128
37 video_cards_radeon
38 video_cards_siliconmotion
39 video_cards_via"
40 IUSE="${IUSE_VIDEO_CARDS}
41 dmx dri ipv6 kdrive minimal nptl sdl xorg xprint"
42 RDEPEND="x11-libs/libXfont
43 x11-libs/xtrans
44 x11-libs/libXau
45 x11-libs/libXext
46 x11-libs/libX11
47 x11-libs/libxkbfile
48 x11-libs/libXdmcp
49 x11-libs/libXmu
50 x11-libs/libXrender
51 x11-libs/libXi
52 media-libs/freetype
53 >=media-libs/mesa-6.5-r2
54 media-fonts/font-adobe-75dpi
55 media-fonts/font-misc-misc
56 media-fonts/font-cursor-misc
57 x11-misc/xbitmaps
58 || ( x11-misc/xkeyboard-config x11-misc/xkbdata )
59 x11-apps/iceauth
60 x11-apps/rgb
61 x11-apps/xauth
62 x11-apps/xinit
63 app-admin/eselect-opengl
64 x11-libs/libXaw
65 x11-libs/libXpm
66 x11-libs/libXxf86misc
67 x11-libs/libXxf86vm
68 !minimal? ( x11-libs/libdmx
69 x11-libs/libXtst
70 x11-libs/libXres )
71 >=x11-libs/libxkbui-1.0.2
72 x11-libs/liblbxutil
73 kdrive? ( sdl? ( media-libs/libsdl ) )"
74 # Xres is dmx-dependent, xkbui is xorgcfg-dependent
75 # Xaw is dmx- and xorgcfg-dependent
76 # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
77 # Xxf86misc and Xxf86vm are xorgcfg-dependent
78 # liblbxutil is lbx- dependent
79 DEPEND="${RDEPEND}
80 x11-proto/randrproto
81 x11-proto/renderproto
82 >=x11-proto/fixesproto-4
83 x11-proto/damageproto
84 x11-proto/xextproto
85 x11-proto/xproto
86 x11-proto/xf86dgaproto
87 x11-proto/xf86miscproto
88 x11-proto/xf86rushproto
89 x11-proto/xf86vidmodeproto
90 x11-proto/xf86bigfontproto
91 >=x11-proto/compositeproto-0.3
92 x11-proto/recordproto
93 x11-proto/resourceproto
94 x11-proto/videoproto
95 >=x11-proto/scrnsaverproto-1.1.0
96 x11-proto/evieext
97 x11-proto/trapproto
98 >=x11-proto/xineramaproto-1.1-r1
99 x11-proto/fontsproto
100 >=x11-proto/kbproto-1.0-r1
101 x11-proto/inputproto
102 x11-proto/bigreqsproto
103 x11-proto/xcmiscproto
104 >=x11-proto/glproto-1.4.6
105 !minimal? ( x11-proto/dmxproto )
106 dri? ( x11-proto/xf86driproto
107 >=x11-libs/libdrm-2 )
108 xprint? ( x11-proto/printproto
109 x11-apps/mkfontdir
110 x11-apps/mkfontscale )"
111 LICENSE="${LICENSE} MIT"
112
113 pkg_setup() {
114 # localstatedir is used for the log location; we need to override the default
115 # from ebuild.sh
116 # sysconfdir is used for the xorg.conf location; same applies
117
118 # --enable-xorg needed because darwin defaults off
119 # --enable-install-setuid needed because sparcs default off
120
121 # SDL only available in kdrive build
122 if use kdrive && use sdl; then
123 conf_opts="${conf_opts} --enable-xsdl"
124 else
125 conf_opts="${conf_opts} --disable-xsdl"
126 fi
127
128 # Only Xorg and Xgl support this, and we won't build Xgl
129 # until it merges to trunk
130 if use xorg; then
131 conf_opts="${conf_opts} --with-mesa-source=${WORKDIR}/${MESA_P}"
132 fi
133
134 CONFIGURE_OPTIONS="
135 $(use_enable ipv6)
136 $(use_enable dmx)
137 $(use_enable kdrive)
138 $(use_enable !minimal xvfb)
139 $(use_enable !minimal xnest)
140 $(use_enable dri)
141 $(use_enable xorg)
142 $(use_enable xprint)
143 $(use_enable nptl glx-tls)
144 --sysconfdir=/etc/X11
145 --localstatedir=/var
146 --enable-install-setuid
147 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1
148 ${conf_opts}"
149
150 local diemsg="You must build xorg-server and mesa with the same nptl USE setting."
151 if built_with_use media-libs/mesa nptl; then
152 use nptl || die "${diemsg}"
153 else
154 use nptl && die "${diemsg}"
155 fi
156
157 # (#121394) Causes window corruption
158 filter-flags -fweb
159
160 # Nothing else provides new enough glxtokens.h
161 ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
162 OLD_IMPLEM="$(eselect opengl show)"
163 eselect opengl set --impl-headers ${OPENGL_DIR}
164 }
165
166 src_unpack() {
167 x-modular_specs_check
168 x-modular_dri_check
169 x-modular_unpack_source
170 x-modular_patch_source
171
172 # Set up kdrive servers to build
173 if use kdrive; then
174 einfo "Removing unused kdrive drivers ..."
175 for card in ${IUSE_VIDEO_CARDS}; do
176 real_card=${card#video_cards_}
177
178 # Differences between VIDEO_CARDS name and kdrive server name
179 real_card=${real_card/glint/pm2}
180 real_card=${real_card/radeon/ati}
181 real_card=${real_card/nv/nvidia}
182 real_card=${real_card/siliconmotion/smi}
183 if ! use ${card}; then
184 ebegin " ${real_card}"
185 sed -i \
186 -e "s:${real_card}::g" \
187 ${S}/hw/kdrive/Makefile.am \
188 || die "sed of ${real_card} failed"
189 eend
190 fi
191
192 done
193
194 # smi and via are the only things on line 2. If line 2 ends up blank,
195 # we need to get rid of the backslash at the end of line 1.
196 if ! use video_cards_siliconmotion && ! use video_cards_via; then
197 sed -i \
198 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \
199 ${S}/hw/kdrive/Makefile.am
200 fi
201
202 # Only need to reconf if we're modifying kdrive's Makefile.am
203 x-modular_reconf_source
204 fi
205 }
206
207 src_install() {
208 x-modular_src_install
209
210 dynamic_libgl_install
211
212 server_based_install
213 }
214
215 pkg_postinst() {
216 switch_opengl_implem
217 }
218
219 pkg_postrm() {
220 # Get rid of module dir to ensure opengl-update works properly
221 if ! has_version x11-base/xorg-server; then
222 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
223 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
224 fi
225 fi
226 }
227
228 dynamic_libgl_install() {
229 # next section is to setup the dynamic libGL stuff
230 ebegin "Moving GL files for dynamic switching"
231 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
232 local x=""
233 for x in ${D}/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
234 if [ -f ${x} -o -L ${x} ]; then
235 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
236 fi
237 done
238 eend 0
239 }
240
241 server_based_install() {
242 use xprint && xprint_src_install
243
244 if ! use xorg; then
245 rm ${D}/usr/share/man/man1/Xserver.1x \
246 ${D}/usr/$(get_libdir)/xserver/SecurityPolicy \
247 ${D}/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
248 ${D}/usr/share/man/man1/Xserver.1x
249 fi
250 }
251
252 switch_opengl_implem() {
253 # Switch to the xorg implementation.
254 # Use new opengl-update that will not reset user selected
255 # OpenGL interface ...
256 echo
257 # eselect opengl set --use-old ${OPENGL_DIR}
258 eselect opengl set ${OLD_IMPLEM}
259 }
260
261 xprint_src_install() {
262 # RH-style init script, we provide a wrapper
263 exeinto /usr/$(get_libdir)/misc
264 doexe ${S}/Xprint/etc/init.d/xprint
265 # Patch init script for fonts location
266 sed -e 's:/lib/X11/fonts/:/share/fonts/:g' \
267 -i ${D}/usr/$(get_libdir)/misc/xprint
268 # Install the wrapper
269 newinitd ${FILESDIR}/xprint.init xprint
270 # Install profile scripts
271 insinto /etc/profile.d
272 doins ${S}/Xprint/etc/profile.d/xprint*
273 insinto /etc/X11/xinit/xinitrc.d
274 newins ${S}/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh \
275 92xprint-xpserverlist.sh
276 # Patch profile scripts
277 sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
278 get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \
279 ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist.sh
280 # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo
281 dodoc ${D}/etc/profile.d/xprint*
282 rm -f ${D}/etc/profile.d/xprint*
283 }

  ViewVC Help
Powered by ViewVC 1.1.20