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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Aug 21 10:04:25 2005 UTC (9 years, 4 months ago) by spyderous
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Drop old versions.
(Portage version: 2.0.51.22-r2)

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.1-r3.ebuild,v 1.11 2005/08/20 22:53:03 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 x-modular
10
11 OPENGL_DIR="xorg-x11"
12
13 MESA_PN="Mesa"
14 MESA_PV="6.3.1.1"
15 MESA_P="${MESA_PN}-${MESA_PV}"
16
17 PATCHES="${WORKDIR}/${P}-update-to-CVS-HEAD-20050811-1.patch
18 ${FILESDIR}/check-for-glproto.patch
19 ${FILESDIR}/fix-xf86misc-typo.patch
20 ${FILESDIR}/${P}-x86_64-1.patch
21 ${FILESDIR}/${PN}-fbmmx-local.patch"
22
23 SRC_URI="${SRC_URI}
24 glx? ( http://xorg.freedesktop.org/extras/${MESA_P}.tar.gz )
25 http://dev.gentoo.org/~spyderous/xorg-x11/xorg-server-0.99.1-update-to-CVS-HEAD-20050811-1.patch.gz"
26 DESCRIPTION="X.Org X servers"
27 KEYWORDS="~amd64 ~sparc ~x86"
28 IUSE="glx dri ipv6 minimal"
29 RDEPEND="x11-libs/libXfont
30 x11-libs/xtrans
31 x11-libs/libXau
32 x11-libs/libXext
33 x11-libs/libX11
34 x11-libs/libxkbfile
35 x11-libs/libXdmcp
36 x11-libs/libXmu
37 x11-libs/libXrender
38 x11-libs/libXi
39 media-libs/freetype
40 glx? ( >=media-libs/mesa-6
41 >=x11-base/opengl-update-2.2.3 )"
42 DEPEND="${RDEPEND}
43 x11-proto/randrproto
44 x11-proto/renderproto
45 x11-proto/fixesproto
46 x11-proto/damageproto
47 x11-proto/xextproto
48 x11-proto/xproto
49 x11-proto/xf86dgaproto
50 x11-proto/xf86miscproto
51 x11-proto/xf86rushproto
52 x11-proto/xf86vidmodeproto
53 x11-proto/xf86bigfontproto
54 x11-proto/compositeproto
55 x11-proto/recordproto
56 x11-proto/resourceproto
57 x11-proto/dmxproto
58 x11-proto/videoproto
59 x11-proto/scrnsaverproto
60 x11-proto/evieext
61 x11-proto/trapproto
62 x11-proto/xineramaproto
63 x11-proto/fontsproto
64 x11-proto/kbproto
65 x11-proto/inputproto
66 x11-proto/bigreqsproto
67 x11-proto/xcmiscproto
68 glx? ( x11-proto/glproto )
69 dri? ( x11-proto/xf86driproto
70 x11-libs/libdrm )"
71
72 pkg_setup() {
73 if use glx; then
74 confopts="${confopts} --with-mesa-source=${WORKDIR}/${MESA_P}"
75 fi
76
77 # localstatedir is used for the log location; we need to override the default
78 # from ebuild.sh
79 # sysconfdir is used for the xorg.conf location; same applies
80 CONFIGURE_OPTIONS="
81 $(use_enable ipv6)
82 $(use_enable !minimal dmx)
83 $(use_enable !minimal xvfb)
84 $(use_enable !minimal xnest)
85 $(use_enable glx)
86 $(use_enable dri)
87 --enable-xorg
88 --enable-xtrap
89 --enable-xevie
90 --sysconfdir=/etc/X11
91 --localstatedir=/var
92 ${confopts}"
93 }
94
95 src_install() {
96 x-modular_src_install
97
98 if use glx; then
99 dynamic_libgl_install
100 fi
101
102 dosym Xorg /usr/bin/X
103 fperms 4711 /usr/bin/Xorg
104 }
105
106 pkg_postinst() {
107 if use glx; then
108 switch_opengl_implem
109 fi
110 }
111
112 pkg_postrm() {
113 # Get rid of module dir to ensure opengl-update works properly
114 if ! has_version x11-base/xorg-server; then
115 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
116 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
117 fi
118 fi
119 }
120
121 dynamic_libgl_install() {
122 # next section is to setup the dynamic libGL stuff
123 ebegin "Moving GL files for dynamic switching"
124 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
125 local x=""
126 for x in ${D}/usr/$(get_libdir)/xorg/modules/libglx*; do
127 if [ -f ${x} -o -L ${x} ]; then
128 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
129 fi
130 done
131 eend 0
132 }
133
134 switch_opengl_implem() {
135 # Switch to the xorg implementation.
136 # Use new opengl-update that will not reset user selected
137 # OpenGL interface ...
138 echo
139 local opengl_implem="$(${ROOT}/usr/sbin/opengl-update --get-implementation)"
140 ${ROOT}/usr/sbin/opengl-update --use-old ${OPENGL_DIR}
141 }

  ViewVC Help
Powered by ViewVC 1.1.20