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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Sep 3 20:06:04 2005 UTC (8 years, 7 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Added support for the XCSecurity option, which is what's needed to make binary Nvidia drivers work
(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-r6.ebuild,v 1.1 2005/09/02 01:56:42 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 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 CVS_UPDATE_DATE="20050822-1"
19
20 PATCHES="${WORKDIR}/${P}-update-to-CVS-HEAD-${CVS_UPDATE_DATE}.patch
21 ${FILESDIR}/${PVR}-check-for-glproto.patch
22 ${FILESDIR}/fix-xnest.patch
23 ${FILESDIR}/make-fbcompose-endian-safe.patch"
24
25 SRC_URI="${SRC_URI}
26 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
27 http://dev.gentoo.org/~spyderous/xorg-x11/xorg-server-0.99.1-update-to-CVS-HEAD-${CVS_UPDATE_DATE}.patch.gz"
28 DESCRIPTION="X.Org X servers"
29 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
30 #IUSE="dri ipv6 minimal xprint"
31 IUSE="dri ipv6 minimal"
32 RDEPEND="x11-libs/libXfont
33 x11-libs/xtrans
34 x11-libs/libXau
35 x11-libs/libXext
36 x11-libs/libX11
37 x11-libs/libxkbfile
38 x11-libs/libXdmcp
39 x11-libs/libXmu
40 x11-libs/libXrender
41 x11-libs/libXi
42 media-libs/freetype
43 >=media-libs/mesa-6
44 >=x11-base/opengl-update-2.2.3"
45 DEPEND="${RDEPEND}
46 x11-proto/randrproto
47 x11-proto/renderproto
48 x11-proto/fixesproto
49 x11-proto/damageproto
50 x11-proto/xextproto
51 x11-proto/xproto
52 x11-proto/xf86dgaproto
53 x11-proto/xf86miscproto
54 x11-proto/xf86rushproto
55 x11-proto/xf86vidmodeproto
56 x11-proto/xf86bigfontproto
57 x11-proto/compositeproto
58 x11-proto/recordproto
59 x11-proto/resourceproto
60 x11-proto/dmxproto
61 x11-proto/videoproto
62 x11-proto/scrnsaverproto
63 x11-proto/evieext
64 x11-proto/trapproto
65 >=x11-proto/xineramaproto-1.1-r1
66 x11-proto/fontsproto
67 x11-proto/kbproto
68 x11-proto/inputproto
69 x11-proto/bigreqsproto
70 x11-proto/xcmiscproto
71 x11-proto/glproto
72 dri? ( x11-proto/xf86driproto
73 x11-libs/libdrm )"
74 # xprint? ( x11-proto/printproto )
75
76 pkg_setup() {
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 dri)
86 --disable-xprint
87 --with-mesa-source=${WORKDIR}/${MESA_P}
88 --enable-xorg
89 --enable-xtrap
90 --enable-xevie
91 --sysconfdir=/etc/X11
92 --localstatedir=/var
93 --with-xkb-path=/usr/$(get_libdir)/X11/xkb
94 --disable-static"
95 # $(use_enable xprint)
96
97 # X won't start if -fomit-frame-pointer isn't filtered
98 filter-flags -fomit-frame-pointer
99 }
100
101 src_install() {
102 x-modular_src_install
103
104 dynamic_libgl_install
105
106 dosym Xorg /usr/bin/X
107 fperms 4711 /usr/bin/Xorg
108 }
109
110 pkg_postinst() {
111 switch_opengl_implem
112 }
113
114 pkg_postrm() {
115 # Get rid of module dir to ensure opengl-update works properly
116 if ! has_version x11-base/xorg-server; then
117 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
118 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
119 fi
120 fi
121 }
122
123 dynamic_libgl_install() {
124 # next section is to setup the dynamic libGL stuff
125 ebegin "Moving GL files for dynamic switching"
126 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
127 local x=""
128 for x in ${D}/usr/$(get_libdir)/xorg/modules/libglx*; do
129 if [ -f ${x} -o -L ${x} ]; then
130 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
131 fi
132 done
133 eend 0
134 }
135
136 switch_opengl_implem() {
137 # Switch to the xorg implementation.
138 # Use new opengl-update that will not reset user selected
139 # OpenGL interface ...
140 echo
141 local opengl_implem="$(${ROOT}/usr/sbin/opengl-update --get-implementation)"
142 ${ROOT}/usr/sbin/opengl-update --use-old ${OPENGL_DIR}
143 }

  ViewVC Help
Powered by ViewVC 1.1.20