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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations) (download)
Thu Apr 14 16:02:33 2011 UTC (3 years, 5 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.0_alpha29/cvs/Linux i686)

1 ssuominen 1.12 # Copyright 1999-2011 Gentoo Foundation
2 scarabeus 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.13 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.7.7-r1.ebuild,v 1.12 2011/03/27 17:23:01 ssuominen Exp $
4 scarabeus 1.1
5     EAPI="2"
6    
7     # Must be before x-modular eclass is inherited
8     SNAPSHOT="yes"
9    
10     inherit x-modular multilib versionator
11    
12     EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver"
13    
14     OPENGL_DIR="xorg-x11"
15    
16     SRC_URI="${SRC_URI}
17     http://dev.gentoo.org/~scarabeus/${P}-patches-01.tar.bz2
18     "
19     DESCRIPTION="X.Org X servers"
20 ranger 1.11 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~ppc64 sh sparc x86 ~x86-fbsd"
21 scarabeus 1.1
22     IUSE_SERVERS="dmx kdrive xorg"
23 ssuominen 1.12 IUSE="${IUSE_SERVERS} tslib ipv6 minimal nptl sdl"
24     RDEPEND="tslib? ( >=x11-libs/tslib-1.0 x11-proto/xcalibrateproto )
25 scarabeus 1.1 dev-libs/openssl
26     >=x11-libs/libXfont-1.3.3
27     >=x11-libs/xtrans-1.2.2
28     >=x11-libs/libXau-1.0.4
29     >=x11-libs/libxkbfile-1.0.4
30     >=x11-libs/libXdmcp-1.0.2
31     >=x11-libs/libpciaccess-0.10.3
32     >=x11-libs/pixman-0.15.20
33     media-libs/freetype
34     >=x11-misc/xbitmaps-1.0.1
35     >=x11-misc/xkeyboard-config-1.4
36     x11-apps/xkbcomp
37     >=x11-apps/iceauth-1.0.2
38     >=x11-apps/rgb-1.0.3
39     >=x11-apps/xauth-1.0.3
40     <=x11-apps/xinit-1.2.1
41     >=app-admin/eselect-opengl-1.0.8
42     dmx? (
43     x11-libs/libXt
44     >=x11-libs/libdmx-1.0.99.1
45     >=x11-libs/libX11-1.1.5
46     >=x11-libs/libXaw-1.0.4
47     >=x11-libs/libXext-1.0.5
48     >=x11-libs/libXfixes-4.0.3
49     >=x11-libs/libXi-1.2.99.1
50     >=x11-libs/libXmu-1.0.3
51     >=x11-libs/libXtst-1.0.3
52     )
53     !minimal? (
54     >=x11-libs/libX11-1.1.5
55     >=x11-libs/libXext-1.0.5
56     >=x11-libs/libXres-1.0.3
57     >=media-libs/mesa-7.4[nptl=]
58     )
59     >=x11-libs/libxkbui-1.0.2
60     kdrive? (
61     >=x11-libs/libXext-1.0.5
62 remi 1.6 x11-libs/libXv
63     sdl? ( media-libs/libsdl )
64     )"
65 scarabeus 1.1 # Xres is dmx-dependent
66     # Xaw is dmx-dependent
67     # Xpm is dmx-dependent, pulls in Xt
68     # xkbcomp is launched at startup but not checked by ./configure
69    
70     ## Deps that don't have a version in configure.ac but do here:
71     # x11-proto/resourceproto
72     # x11-proto/fontsproto
73     # x11-libs/libXau
74     # x11-libs/libXfont
75     # x11-libs/libXdmcp
76     # x11-libs/libXext
77     # x11-libs/libX11
78     # x11-libs/libXrender
79     # x11-libs/libXmu
80     # x11-libs/libXfixes
81     # x11-libs/libXtst
82     # x11-proto/xineramaproto
83     # x11-proto/dmxproto
84     ## Deps that are larger here than in configure.ac
85     # x11-libs/libpciaccess-0.8.0
86     #
87    
88     DEPEND="${RDEPEND}
89     !!net-dialup/dtrace
90     sys-devel/flex
91     >=x11-proto/randrproto-1.2.99.3
92     >=x11-proto/renderproto-0.11
93     >=x11-proto/fixesproto-4.1
94     >=x11-proto/damageproto-1.1
95     >=x11-proto/xextproto-7.0.99.3
96     >=x11-proto/xproto-7.0.13
97     >=x11-proto/xf86dgaproto-2.0.99.1
98     >=x11-proto/xf86rushproto-1.1.2
99     >=x11-proto/xf86vidmodeproto-2.2.99.1
100     >=x11-proto/compositeproto-0.4
101     >=x11-proto/recordproto-1.13.99.1
102     >=x11-proto/resourceproto-1.0.2
103     >=x11-proto/videoproto-2.2.2
104     >=x11-proto/scrnsaverproto-1.1
105     >=x11-proto/trapproto-3.4.3
106     >=x11-proto/xineramaproto-1.1.3
107     >=x11-proto/fontsproto-2.0.2
108     >=x11-proto/kbproto-1.0.3
109     >=x11-proto/inputproto-1.9.99.902
110     >=x11-proto/bigreqsproto-1.1.0
111     >=x11-proto/xcmiscproto-1.2.0
112     >=x11-proto/glproto-1.4.9
113     dmx? ( >=x11-proto/dmxproto-2.2.99.1 )
114     !minimal? (
115     >=x11-proto/xf86driproto-2.1.0
116     >=x11-proto/dri2proto-2.1
117     >=x11-libs/libdrm-2.3.0
118     )"
119    
120     PDEPEND="xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
121    
122     EPATCH_FORCE="yes"
123     EPATCH_SUFFIX="patch"
124    
125     # These have been sent upstream
126     UPSTREAMED_PATCHES=(
127     "${WORKDIR}/patches/"
128 chithanh 1.2 "${FILESDIR}"/${PN}-1.8-nouveau-default.patch
129 scarabeus 1.1 )
130    
131     PATCHES=(
132     "${UPSTREAMED_PATCHES[@]}"
133 mgorny 1.10
134     # Fixes for bug #318609
135     "${FILESDIR}"/0001-Fix-tslib-check-fallback-to-set-TSLIB_LIBS.patch
136     "${FILESDIR}"/${PN}-1.7.6-tslib-as-needed.patch
137 scarabeus 1.1 )
138    
139     pkg_setup() {
140     use minimal || ensure_a_server_is_building
141    
142     # SDL only available in kdrive build
143     if use kdrive && use sdl; then
144     conf_opts="${conf_opts} --enable-xsdl"
145     else
146     conf_opts="${conf_opts} --disable-xsdl"
147     fi
148    
149     # localstatedir is used for the log location; we need to override the default
150     # from ebuild.sh
151     # sysconfdir is used for the xorg.conf location; same applies
152     # --enable-install-setuid needed because sparcs default off
153     CONFIGURE_OPTIONS="
154     $(use_enable ipv6)
155     $(use_enable dmx)
156     $(use_enable kdrive)
157     $(use_enable tslib)
158     $(use_enable tslib xcalibrate)
159     $(use_enable !minimal xvfb)
160     $(use_enable !minimal xnest)
161     $(use_enable !minimal record)
162     $(use_enable !minimal xfree86-utils)
163     $(use_enable !minimal install-libxf86config)
164     $(use_enable !minimal dri)
165     $(use_enable !minimal dri2)
166     $(use_enable !minimal glx)
167     $(use_enable xorg)
168     $(use_enable nptl glx-tls)
169 ssuominen 1.12 --disable-config-hal
170 scarabeus 1.1 --sysconfdir=/etc/X11
171     --localstatedir=/var
172     --enable-install-setuid
173     --with-fontdir=/usr/share/fonts
174     --with-xkb-output=/var/lib/xkb
175     --without-dtrace
176     ${conf_opts}"
177    
178     # (#121394) Causes window corruption
179     filter-flags -fweb
180    
181     # Incompatible with GCC 3.x SSP on x86, bug #244352
182     if use x86 ; then
183     if [[ $(gcc-major-version) -lt 4 ]]; then
184     filter-flags -fstack-protector
185     fi
186     fi
187    
188     # Incompatible with GCC 3.x CPP, bug #314615
189     if [[ $(gcc-major-version) -lt 4 ]]; then
190     ewarn "GCC 3.x C preprocessor may cause build failures. Use GCC 4.x"
191     ewarn "or set CPP=cpp-4.3.4 (replace with the actual installed version)"
192     fi
193    
194     OLD_IMPLEM="$(eselect opengl show)"
195     eselect opengl set ${OPENGL_DIR}
196     }
197    
198     src_install() {
199     x-modular_src_install
200    
201     dynamic_libgl_install
202    
203     server_based_install
204    
205     if ! use minimal && use xorg; then
206     # Install xorg.conf.example (see bugs #151421 and #151670)
207     insinto /etc/X11
208     doins hw/xfree86/xorg.conf.example \
209     || die "couldn't install xorg.conf.example"
210     fi
211     }
212    
213     pkg_postinst() {
214     switch_opengl_implem
215    
216     echo
217     ewarn "You must rebuild all drivers if upgrading from xorg-server 1.6"
218     ewarn "or earlier, because the ABI changed. If you cannot start X because"
219     ewarn "of module version mismatch errors, this is your problem."
220    
221     echo
222     ewarn "You can generate a list of all installed packages in the x11-drivers"
223     ewarn "category using this command:"
224     ewarn "emerge portage-utils; qlist -I -C x11-drivers/"
225    
226     ebeep 5
227     epause 10
228     }
229    
230     pkg_postrm() {
231     # Get rid of module dir to ensure opengl-update works properly
232     if ! has_version x11-base/xorg-server; then
233     if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
234     rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
235     fi
236     fi
237     }
238    
239     dynamic_libgl_install() {
240     # next section is to setup the dynamic libGL stuff
241     ebegin "Moving GL files for dynamic switching"
242     dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
243     local x=""
244     for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri,dri2}*; do
245     if [ -f ${x} -o -L ${x} ]; then
246     mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
247     fi
248     done
249     eend 0
250     }
251    
252     server_based_install() {
253     if ! use xorg; then
254     rm "${D}"/usr/share/man/man1/Xserver.1x \
255     "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
256     "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
257     "${D}"/usr/share/man/man1/Xserver.1x
258     fi
259     }
260    
261     switch_opengl_implem() {
262     # Switch to the xorg implementation.
263     # Use new opengl-update that will not reset user selected
264     # OpenGL interface ...
265     echo
266     eselect opengl set ${OLD_IMPLEM}
267     }
268    
269     ensure_a_server_is_building() {
270     for server in ${IUSE_SERVERS}; do
271     use ${server} && return;
272     done
273     eerror "You need to specify at least one server to build."
274     eerror "Valid servers are: ${IUSE_SERVERS}."
275     die "No servers were specified to build."
276     }

  ViewVC Help
Powered by ViewVC 1.1.20