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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Sep 13 01:05:21 2005 UTC (8 years, 11 months ago) by joshuabaergen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old versions and patches.
(Portage version: 2.0.52-r1)

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

  ViewVC Help
Powered by ViewVC 1.1.20