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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Mon Apr 17 23:27:06 2006 UTC (8 years, 5 months ago) by joshuabaergen
Branch: MAIN
Changes since 1.3: +2 -2 lines
Drop the mesa version check since it shouldn't be required.
(Portage version: 2.1_pre7-r5)

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

  ViewVC Help
Powered by ViewVC 1.1.20