/[gentoo-x86]/x11-base/xorg-server/xorg-server-1.0.2-r7.ebuild
Gentoo

Contents of /x11-base/xorg-server/xorg-server-1.0.2-r7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Wed Jul 19 14:36:49 2006 UTC (8 years, 1 month ago) by gmsoft
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable on hppa.
(Portage version: 2.1.1_pre1-r2)

1 spyderous 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 gmsoft 1.5 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.0.2-r7.ebuild,v 1.4 2006/06/30 15:03:28 wolf31o2 Exp $
4 spyderous 1.1
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.4.2"
15     MESA_P="${MESA_PN}-${MESA_PV}"
16     MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
17    
18     PATCHES="${FILESDIR}/${P}-Sbus.patch
19     ${FILESDIR}/CVE-2006-1526-xrender-mitri.patch
20     ${FILESDIR}/${P}-sparc64-cfbrrop-fix.patch
21     ${FILESDIR}/${P}-64bit-fix-indirect-vertex-array.patch
22     ${FILESDIR}/${P}-64bit-fix-have-dix-config.patch
23     ${FILESDIR}/${P}-64bit-fix-for-glx.patch
24     ${FILESDIR}/${P}-Xprt-build.patch
25     ${FILESDIR}/${P}-xprint-init.patch
26     ${FILESDIR}/${PV}-Xprint-xprintdir.patch
27     ${FILESDIR}/${PV}-try-to-fix-xorgcfg.patch
28     ${FILESDIR}/${PV}-fix-xorgconfig-rgbpath-and-mouse.patch
29     ${DISTDIR}/${PV}-overlay-window.patch.bz2
30     ${FILESDIR}/${PV}-fix-readKernelMapping-overrun.patch
31     ${FILESDIR}/${PV}-fix-rom-read-dualhead.patch
32     ${FILESDIR}/x11r7.0-setuid.diff"
33    
34     SRC_URI="${SRC_URI}
35     mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
36     http://dev.gentoo.org/~spyderous/xorg-x11/1.0.2/1.0.2-overlay-window.patch.bz2"
37     DESCRIPTION="X.Org X servers"
38     # It's suid and has lazy bindings, so FEATURES="stricter" doesn't work
39     RESTRICT="stricter"
40 gmsoft 1.5 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ppc64 ~sh ~sparc x86 ~x86-fbsd"
41 spyderous 1.1 IUSE="dri ipv6 minimal xprint"
42     RDEPEND="x11-libs/libXfont
43     x11-libs/xtrans
44     x11-libs/libXau
45     x11-libs/libXext
46     x11-libs/libX11
47     x11-libs/libxkbfile
48     x11-libs/libXdmcp
49     x11-libs/libXmu
50     x11-libs/libXrender
51     x11-libs/libXi
52     media-libs/freetype
53     media-libs/mesa
54     media-fonts/font-adobe-75dpi
55     media-fonts/font-misc-misc
56     media-fonts/font-cursor-misc
57     x11-misc/xbitmaps
58     || ( x11-misc/xkeyboard-config x11-misc/xkbdata )
59     x11-apps/iceauth
60     x11-apps/rgb
61     x11-apps/xauth
62     x11-apps/xinit
63     app-admin/eselect-opengl
64     x11-libs/libXaw
65     x11-libs/libXpm
66     x11-libs/libXxf86misc
67     x11-libs/libXxf86vm
68     !minimal? ( x11-libs/libdmx
69     x11-libs/libXtst
70     x11-libs/libXres )
71     >=x11-libs/libxkbui-1.0.2
72     x11-libs/liblbxutil"
73     # Xres is dmx-dependent, xkbui is xorgcfg-dependent
74     # Xaw is dmx- and xorgcfg-dependent
75     # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
76     # Xxf86misc and Xxf86vm are xorgcfg-dependent
77     # liblbxutil is lbx- dependent
78     DEPEND="${RDEPEND}
79     x11-proto/randrproto
80     x11-proto/renderproto
81     >=x11-proto/fixesproto-4
82     x11-proto/damageproto
83     x11-proto/xextproto
84     x11-proto/xproto
85     x11-proto/xf86dgaproto
86     x11-proto/xf86miscproto
87     x11-proto/xf86rushproto
88     x11-proto/xf86vidmodeproto
89     x11-proto/xf86bigfontproto
90     >=x11-proto/compositeproto-0.3
91     x11-proto/recordproto
92     x11-proto/resourceproto
93     x11-proto/videoproto
94     x11-proto/scrnsaverproto
95     x11-proto/evieext
96     x11-proto/trapproto
97     >=x11-proto/xineramaproto-1.1-r1
98     x11-proto/fontsproto
99     >=x11-proto/kbproto-1.0-r1
100     x11-proto/inputproto
101     x11-proto/bigreqsproto
102     x11-proto/xcmiscproto
103     >=x11-proto/glproto-1.4.1_pre20051013
104     !minimal? ( x11-proto/dmxproto )
105     dri? ( x11-proto/xf86driproto
106     >=x11-libs/libdrm-2 )
107     xprint? ( x11-proto/printproto
108     x11-apps/mkfontdir
109     x11-apps/mkfontscale )"
110     LICENSE="${LICENSE} MIT"
111    
112     pkg_setup() {
113     # localstatedir is used for the log location; we need to override the default
114     # from ebuild.sh
115     # sysconfdir is used for the xorg.conf location; same applies
116    
117     # --enable-xorg needed because darwin defaults off
118     # --enable-install-setuid needed because sparcs default off
119     CONFIGURE_OPTIONS="
120     $(use_enable ipv6)
121     $(use_enable !minimal dmx)
122     $(use_enable !minimal xvfb)
123     $(use_enable !minimal xnest)
124     $(use_enable dri)
125     $(use_enable xprint)
126     --with-mesa-source=${WORKDIR}/${MESA_P}
127     --enable-xorg
128     --sysconfdir=/etc/X11
129     --localstatedir=/var
130     --enable-install-setuid
131     --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1"
132    
133     # (#121394) Causes window corruption
134     filter-flags -fweb
135    
136     # Nothing else provides new enough glxtokens.h
137     ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
138     OLD_IMPLEM="$(eselect opengl show)"
139     eselect opengl set --impl-headers ${OPENGL_DIR}
140     }
141    
142     src_install() {
143     x-modular_src_install
144    
145     dynamic_libgl_install
146    
147     use xprint && xprint_src_install
148     }
149    
150     pkg_postinst() {
151     switch_opengl_implem
152     }
153    
154     pkg_postrm() {
155     # Get rid of module dir to ensure opengl-update works properly
156     if ! has_version x11-base/xorg-server; then
157     if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
158     rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
159     fi
160     fi
161     }
162    
163     dynamic_libgl_install() {
164     # next section is to setup the dynamic libGL stuff
165     ebegin "Moving GL files for dynamic switching"
166     dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
167     local x=""
168     for x in ${D}/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
169     if [ -f ${x} -o -L ${x} ]; then
170     mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
171     fi
172     done
173     eend 0
174     }
175    
176     switch_opengl_implem() {
177     # Switch to the xorg implementation.
178     # Use new opengl-update that will not reset user selected
179     # OpenGL interface ...
180     echo
181     # eselect opengl set --use-old ${OPENGL_DIR}
182     eselect opengl set ${OLD_IMPLEM}
183     }
184    
185     xprint_src_install() {
186     # RH-style init script, we provide a wrapper
187     exeinto /usr/$(get_libdir)/misc
188     doexe ${S}/Xprint/etc/init.d/xprint
189     # Patch init script for fonts location
190     sed -e 's:/lib/X11/fonts/:/share/fonts/:g' \
191     -i ${D}/usr/$(get_libdir)/misc/xprint
192     # Install the wrapper
193     newinitd ${FILESDIR}/xprint.init xprint
194     # Install profile scripts
195     insinto /etc/profile.d
196     doins ${S}/Xprint/etc/profile.d/xprint*
197     insinto /etc/X11/xinit/xinitrc.d
198     newins ${S}/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh \
199     92xprint-xpserverlist.sh
200     # Patch profile scripts
201     sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
202     get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \
203     ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist.sh
204     # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo
205     dodoc ${D}/etc/profile.d/xprint*
206     rm -f ${D}/etc/profile.d/xprint*
207     }

  ViewVC Help
Powered by ViewVC 1.1.20