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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Aug 10 22:07:21 2005 UTC (9 years, 8 months ago) by spyderous
Branch: MAIN
Changes since 1.1: +25 -23 lines
Move confopts into pkg_setup(), and therefore also CONFIGURE_OPTIONS.
(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-r1.ebuild,v 1.1 2005/08/10 21:37:59 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="${FILESDIR}/xorg-composite.patch"
18
19 SRC_URI="${SRC_URI}
20 glx? ( http://xorg.freedesktop.org/extras/${MESA_P}.tar.gz )"
21 DESCRIPTION="X.Org X servers"
22 KEYWORDS="~sparc ~x86"
23 IUSE="glx dri xinerama ipv6 minimal"
24 RDEPEND="x11-libs/libXfont
25 x11-libs/xtrans
26 x11-libs/libXau
27 x11-libs/libXext
28 x11-libs/libX11
29 x11-libs/libxkbfile
30 x11-libs/libXdmcp
31 x11-libs/libXmu
32 x11-libs/libXrender
33 x11-libs/libXi
34 media-libs/freetype
35 glx? ( >=media-libs/mesa-6
36 >=x11-base/opengl-update-2.2.2 )"
37 DEPEND="${RDEPEND}
38 x11-proto/randrproto
39 x11-proto/renderproto
40 x11-proto/fixesproto
41 x11-proto/damageproto
42 x11-proto/xextproto
43 x11-proto/xproto
44 x11-proto/xf86dgaproto
45 x11-proto/xf86miscproto
46 x11-proto/xf86rushproto
47 x11-proto/xf86vidmodeproto
48 x11-proto/xf86bigfontproto
49 x11-proto/compositeproto
50 x11-proto/recordproto
51 x11-proto/resourceproto
52 x11-proto/dmxproto
53 x11-proto/videoproto
54 x11-proto/scrnsaverproto
55 x11-proto/evieext
56 x11-proto/trapproto
57 x11-proto/panoramixproto
58 x11-proto/fontsproto
59 x11-proto/kbproto
60 glx? ( x11-proto/glproto )
61 dri? ( x11-proto/xf86driproto
62 x11-libs/libdrm )"
63
64 pkg_setup() {
65 if use glx; then
66 confopts="${confopts} --with-mesa-source=${WORKDIR}/${MESA_P}"
67 fi
68
69 # localstatedir is used for the log location; we need to override the default
70 # from ebuild.sh
71 # sysconfdir is used for the xorg.conf location; same applies
72 CONFIGURE_OPTIONS="
73 $(use_enable xinerama)
74 $(use_enable ipv6)
75 $(use_enable !minimal dmx)
76 $(use_enable !minimal xvfb)
77 $(use_enable !minimal xnest)
78 $(use_enable glx)
79 $(use_enable dri)
80 --enable-xorg
81 --enable-composite
82 --enable-xtrap
83 --enable-xevie
84 --sysconfdir=/etc/X11
85 --localstatedir=/var
86 ${confopts}"
87 }
88
89 src_install() {
90 x-modular_src_install
91
92 dynamic_libgl_install
93 }
94
95 pkg_postinst() {
96 switch_opengl_implem
97 }
98
99 dynamic_libgl_install() {
100 # next section is to setup the dynamic libGL stuff
101 ebegin "Moving GL files for dynamic switching"
102 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
103 local x=""
104 for x in ${D}/usr/$(get_libdir)/xorg/modules/libglx*; do
105 if [ -f ${x} -o -L ${x} ]; then
106 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
107 fi
108 done
109 eend 0
110 }
111
112 switch_opengl_implem() {
113 # Switch to the xorg implementation.
114 # Use new opengl-update that will not reset user selected
115 # OpenGL interface ...
116 echo
117 local opengl_implem="$(${ROOT}/usr/sbin/opengl-update --get-implementation)"
118 ${ROOT}/usr/sbin/opengl-update --use-old ${OPENGL_DIR}
119 }

  ViewVC Help
Powered by ViewVC 1.1.20