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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Feb 13 05:34:07 2006 UTC (8 years, 10 months ago) by spyderous
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
(#122140) Add patch to fix OpenGL on amd64, thanks to Igor V. Kovalenko <garrison@mail.ru>. Also update to Mesa 6.4.2 tarball so people only need to download one version of it.
(Portage version: 2.1_pre4-r1)

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

  ViewVC Help
Powered by ViewVC 1.1.20