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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Fri Oct 14 18:56:42 2005 UTC (8 years, 11 months ago) by spyderous
Branch: MAIN
Changes since 1.3: +2 -2 lines
Also wrap dmxproto dep in minimal USE.
(Portage version: 2.0.53_rc5)

1 spyderous 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 spyderous 1.4 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-0.99.1_p20051013.ebuild,v 1.3 2005/10/14 18:17:38 spyderous 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.3.2"
15     MESA_P="${MESA_PN}-${MESA_PV}"
16     MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
17    
18     #PATCHES="${FILESDIR}/link-xtrap-into-xprint.patch"
19    
20     SRC_URI="mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
21     http://dev.gentoo.org/~spyderous/xorg-x11/${P}.tar.bz2"
22     DESCRIPTION="X.Org X servers"
23     KEYWORDS="~amd64 ~ppc ~sparc ~x86"
24     IUSE="dri ipv6 minimal xprint"
25     RDEPEND="x11-libs/libXfont
26     x11-libs/xtrans
27     x11-libs/libXau
28     x11-libs/libXext
29     x11-libs/libX11
30     x11-libs/libxkbfile
31     x11-libs/libXdmcp
32     x11-libs/libXmu
33     x11-libs/libXrender
34     x11-libs/libXi
35     media-libs/freetype
36     >=media-libs/mesa-6
37     media-fonts/font-misc-misc
38     media-fonts/font-cursor-misc
39     x11-misc/xbitmaps
40     x11-misc/xkbdata
41     x11-apps/iceauth
42     x11-apps/rgb
43     x11-apps/xauth
44     x11-apps/xinit
45 joshuabaergen 1.2 app-admin/eselect-opengl
46 spyderous 1.3 !minimal? ( x11-libs/libdmx
47     x11-libs/libXres )
48 joshuabaergen 1.2 x11-libs/libxkbui" #Xres is dmx-dependent, xkbui is xorgcfg-dependent
49 spyderous 1.1 DEPEND="${RDEPEND}
50     x11-proto/randrproto
51     x11-proto/renderproto
52     x11-proto/fixesproto
53     x11-proto/damageproto
54     x11-proto/xextproto
55     x11-proto/xproto
56     x11-proto/xf86dgaproto
57     x11-proto/xf86miscproto
58     x11-proto/xf86rushproto
59     x11-proto/xf86vidmodeproto
60     x11-proto/xf86bigfontproto
61     x11-proto/compositeproto
62     x11-proto/recordproto
63     x11-proto/resourceproto
64     x11-proto/videoproto
65     x11-proto/scrnsaverproto
66     x11-proto/evieext
67     x11-proto/trapproto
68     >=x11-proto/xineramaproto-1.1-r1
69     x11-proto/fontsproto
70     >=x11-proto/kbproto-1.0-r1
71     x11-proto/inputproto
72     x11-proto/bigreqsproto
73     x11-proto/xcmiscproto
74     >=x11-proto/glproto-1.4.1_pre20051013
75 spyderous 1.4 !minimal? ( x11-proto/dmxproto )
76 spyderous 1.1 dri? ( x11-proto/xf86driproto
77     x11-libs/libdrm )
78     xprint? ( x11-proto/printproto
79     x11-apps/mkfontdir
80     x11-apps/mkfontscale )"
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     $(use_enable 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     }
103    
104     src_install() {
105     x-modular_src_install
106    
107     dynamic_libgl_install
108    
109     dosym Xorg /usr/bin/X
110     fperms 4711 /usr/bin/Xorg
111     }
112    
113     pkg_postinst() {
114     switch_opengl_implem
115     }
116    
117     pkg_postrm() {
118     # Get rid of module dir to ensure opengl-update works properly
119     if ! has_version x11-base/xorg-server; then
120     if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
121     rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
122     fi
123     fi
124     }
125    
126     dynamic_libgl_install() {
127     # next section is to setup the dynamic libGL stuff
128     ebegin "Moving GL files for dynamic switching"
129     dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
130     local x=""
131     for x in ${D}/usr/$(get_libdir)/xorg/modules/libglx*; do
132     if [ -f ${x} -o -L ${x} ]; then
133     mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
134     fi
135     done
136     eend 0
137     }
138    
139     switch_opengl_implem() {
140     # Switch to the xorg implementation.
141     # Use new opengl-update that will not reset user selected
142     # OpenGL interface ...
143     echo
144     eselect opengl set --use-old ${OPENGL_DIR}
145     }

  ViewVC Help
Powered by ViewVC 1.1.20