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

Contents of /x11-base/xorg-server/xorg-server-0.99.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Oct 31 17:37:27 2005 UTC (8 years, 10 months ago) by spyderous
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Pull old versions.
(Portage version: 2.0.53_rc6)

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

  ViewVC Help
Powered by ViewVC 1.1.20