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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Aug 23 01:06:27 2005 UTC (8 years, 11 months ago) by spyderous
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Pull old version.
(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-r4.ebuild,v 1.3 2005/08/21 22:00:15 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
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 CVS_UPDATE_DATE="20050820"
18
19 PATCHES="${WORKDIR}/${P}-update-to-CVS-HEAD-${CVS_UPDATE_DATE}.patch
20 ${FILESDIR}/check-for-glproto.patch
21 ${FILESDIR}/fix-xf86misc-typo.patch
22 ${FILESDIR}/${P}-x86_64-1.patch"
23
24 SRC_URI="${SRC_URI}
25 http://xorg.freedesktop.org/extras/${MESA_P}.tar.gz
26 http://dev.gentoo.org/~spyderous/xorg-x11/xorg-server-0.99.1-update-to-CVS-HEAD-${CVS_UPDATE_DATE}.patch.gz"
27 DESCRIPTION="X.Org X servers"
28 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
29 #IUSE="dri ipv6 minimal xprint"
30 IUSE="dri ipv6 minimal"
31 RDEPEND="x11-libs/libXfont
32 x11-libs/xtrans
33 x11-libs/libXau
34 x11-libs/libXext
35 x11-libs/libX11
36 x11-libs/libxkbfile
37 x11-libs/libXdmcp
38 x11-libs/libXmu
39 x11-libs/libXrender
40 x11-libs/libXi
41 media-libs/freetype
42 >=media-libs/mesa-6
43 >=x11-base/opengl-update-2.2.3"
44 DEPEND="${RDEPEND}
45 x11-proto/randrproto
46 x11-proto/renderproto
47 x11-proto/fixesproto
48 x11-proto/damageproto
49 x11-proto/xextproto
50 x11-proto/xproto
51 x11-proto/xf86dgaproto
52 x11-proto/xf86miscproto
53 x11-proto/xf86rushproto
54 x11-proto/xf86vidmodeproto
55 x11-proto/xf86bigfontproto
56 x11-proto/compositeproto
57 x11-proto/recordproto
58 x11-proto/resourceproto
59 x11-proto/dmxproto
60 x11-proto/videoproto
61 x11-proto/scrnsaverproto
62 x11-proto/evieext
63 x11-proto/trapproto
64 >=x11-proto/xineramaproto-1.1-r1
65 x11-proto/fontsproto
66 x11-proto/kbproto
67 x11-proto/inputproto
68 x11-proto/bigreqsproto
69 x11-proto/xcmiscproto
70 x11-proto/glproto
71 dri? ( x11-proto/xf86driproto
72 x11-libs/libdrm )"
73 # xprint? ( x11-proto/printproto )
74
75 pkg_setup() {
76 # localstatedir is used for the log location; we need to override the default
77 # from ebuild.sh
78 # sysconfdir is used for the xorg.conf location; same applies
79 CONFIGURE_OPTIONS="
80 $(use_enable ipv6)
81 $(use_enable !minimal dmx)
82 $(use_enable !minimal xvfb)
83 $(use_enable !minimal xnest)
84 $(use_enable dri)
85 --disable-xprint
86 --with-mesa-source=${WORKDIR}/${MESA_P}
87 --enable-glx
88 --enable-xorg
89 --enable-xtrap
90 --enable-xevie
91 --sysconfdir=/etc/X11
92 --localstatedir=/var"
93 # $(use_enable xprint)
94
95 # X won't start if -fomit-frame-pointer isn't filtered
96 filter-flags -fomit-frame-pointer
97 }
98
99 src_install() {
100 x-modular_src_install
101
102 dynamic_libgl_install
103
104 dosym Xorg /usr/bin/X
105 fperms 4711 /usr/bin/Xorg
106 }
107
108 pkg_postinst() {
109 switch_opengl_implem
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