| 1 |
vapier |
1.3 |
# Copyright 1999-2006 Gentoo Foundation
|
| 2 |
spyderous |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
spyderous |
1.5 |
# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.0.1.ebuild,v 1.4 2006/01/19 03:53:22 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.1"
|
| 15 |
|
|
MESA_P="${MESA_PN}-${MESA_PV}"
|
| 16 |
|
|
MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
|
| 17 |
|
|
|
| 18 |
|
|
PATCHES="${FILESDIR}/${P}-Sbus.patch"
|
| 19 |
|
|
|
| 20 |
|
|
SRC_URI="${SRC_URI}
|
| 21 |
|
|
mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2"
|
| 22 |
|
|
DESCRIPTION="X.Org X servers"
|
| 23 |
vapier |
1.3 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~sh ~sparc ~x86"
|
| 24 |
spyderous |
1.1 |
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 |
|
|
app-admin/eselect-opengl
|
| 46 |
|
|
x11-libs/libXaw
|
| 47 |
|
|
x11-libs/libXpm
|
| 48 |
|
|
x11-libs/libXxf86misc
|
| 49 |
|
|
x11-libs/libXxf86vm
|
| 50 |
|
|
!minimal? ( x11-libs/libdmx
|
| 51 |
|
|
x11-libs/libXtst
|
| 52 |
|
|
x11-libs/libXres )
|
| 53 |
|
|
x11-libs/libxkbui
|
| 54 |
|
|
x11-libs/liblbxutil"
|
| 55 |
|
|
# Xres is dmx-dependent, xkbui is xorgcfg-dependent
|
| 56 |
|
|
# Xaw is dmx- and xorgcfg-dependent
|
| 57 |
|
|
# Xpm is dmx- and xorgcfg-dependent, pulls in Xt
|
| 58 |
|
|
# Xxf86misc and Xxf86vm are xorgcfg-dependent
|
| 59 |
|
|
# liblbxutil is lbx- dependent
|
| 60 |
|
|
DEPEND="${RDEPEND}
|
| 61 |
|
|
x11-proto/randrproto
|
| 62 |
|
|
x11-proto/renderproto
|
| 63 |
|
|
x11-proto/fixesproto
|
| 64 |
|
|
x11-proto/damageproto
|
| 65 |
|
|
x11-proto/xextproto
|
| 66 |
|
|
x11-proto/xproto
|
| 67 |
|
|
x11-proto/xf86dgaproto
|
| 68 |
|
|
x11-proto/xf86miscproto
|
| 69 |
|
|
x11-proto/xf86rushproto
|
| 70 |
|
|
x11-proto/xf86vidmodeproto
|
| 71 |
|
|
x11-proto/xf86bigfontproto
|
| 72 |
|
|
x11-proto/compositeproto
|
| 73 |
|
|
x11-proto/recordproto
|
| 74 |
|
|
x11-proto/resourceproto
|
| 75 |
|
|
x11-proto/videoproto
|
| 76 |
|
|
x11-proto/scrnsaverproto
|
| 77 |
|
|
x11-proto/evieext
|
| 78 |
|
|
x11-proto/trapproto
|
| 79 |
|
|
>=x11-proto/xineramaproto-1.1-r1
|
| 80 |
|
|
x11-proto/fontsproto
|
| 81 |
|
|
>=x11-proto/kbproto-1.0-r1
|
| 82 |
|
|
x11-proto/inputproto
|
| 83 |
|
|
x11-proto/bigreqsproto
|
| 84 |
|
|
x11-proto/xcmiscproto
|
| 85 |
|
|
>=x11-proto/glproto-1.4.1_pre20051013
|
| 86 |
|
|
!minimal? ( x11-proto/dmxproto )
|
| 87 |
|
|
dri? ( x11-proto/xf86driproto
|
| 88 |
|
|
>=x11-libs/libdrm-2 )
|
| 89 |
|
|
xprint? ( x11-proto/printproto
|
| 90 |
|
|
x11-apps/mkfontdir
|
| 91 |
|
|
x11-apps/mkfontscale )"
|
| 92 |
joshuabaergen |
1.4 |
LICENSE="${LICENSE} MIT"
|
| 93 |
spyderous |
1.1 |
|
| 94 |
|
|
pkg_setup() {
|
| 95 |
|
|
# localstatedir is used for the log location; we need to override the default
|
| 96 |
|
|
# from ebuild.sh
|
| 97 |
|
|
# sysconfdir is used for the xorg.conf location; same applies
|
| 98 |
|
|
CONFIGURE_OPTIONS="
|
| 99 |
|
|
$(use_enable ipv6)
|
| 100 |
|
|
$(use_enable !minimal dmx)
|
| 101 |
|
|
$(use_enable !minimal xvfb)
|
| 102 |
|
|
$(use_enable !minimal xnest)
|
| 103 |
|
|
$(use_enable dri)
|
| 104 |
|
|
$(use_enable xprint)
|
| 105 |
|
|
--enable-xcsecurity
|
| 106 |
|
|
--with-mesa-source=${WORKDIR}/${MESA_P}
|
| 107 |
|
|
--enable-xorg
|
| 108 |
|
|
--enable-xtrap
|
| 109 |
|
|
--enable-xevie
|
| 110 |
|
|
--sysconfdir=/etc/X11
|
| 111 |
|
|
--localstatedir=/var
|
| 112 |
|
|
--disable-static
|
| 113 |
|
|
--enable-install-setuid
|
| 114 |
|
|
--with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1"
|
| 115 |
|
|
}
|
| 116 |
|
|
|
| 117 |
|
|
src_install() {
|
| 118 |
|
|
x-modular_src_install
|
| 119 |
|
|
|
| 120 |
|
|
dynamic_libgl_install
|
| 121 |
|
|
|
| 122 |
|
|
# As of 20051028, should be taken care of by upstream
|
| 123 |
|
|
dosym Xorg /usr/bin/X
|
| 124 |
|
|
}
|
| 125 |
|
|
|
| 126 |
|
|
pkg_postinst() {
|
| 127 |
|
|
switch_opengl_implem
|
| 128 |
|
|
}
|
| 129 |
|
|
|
| 130 |
|
|
pkg_postrm() {
|
| 131 |
|
|
# Get rid of module dir to ensure opengl-update works properly
|
| 132 |
|
|
if ! has_version x11-base/xorg-server; then
|
| 133 |
|
|
if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
|
| 134 |
|
|
rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
|
| 135 |
|
|
fi
|
| 136 |
|
|
fi
|
| 137 |
|
|
}
|
| 138 |
|
|
|
| 139 |
|
|
dynamic_libgl_install() {
|
| 140 |
|
|
# next section is to setup the dynamic libGL stuff
|
| 141 |
|
|
ebegin "Moving GL files for dynamic switching"
|
| 142 |
|
|
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
|
| 143 |
|
|
local x=""
|
| 144 |
|
|
for x in ${D}/usr/$(get_libdir)/xorg/modules/libglx*; do
|
| 145 |
|
|
if [ -f ${x} -o -L ${x} ]; then
|
| 146 |
|
|
mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
|
| 147 |
|
|
fi
|
| 148 |
|
|
done
|
| 149 |
|
|
eend 0
|
| 150 |
|
|
}
|
| 151 |
|
|
|
| 152 |
|
|
switch_opengl_implem() {
|
| 153 |
|
|
# Switch to the xorg implementation.
|
| 154 |
|
|
# Use new opengl-update that will not reset user selected
|
| 155 |
|
|
# OpenGL interface ...
|
| 156 |
|
|
echo
|
| 157 |
|
|
eselect opengl set --use-old ${OPENGL_DIR}
|
| 158 |
|
|
}
|