blob: d6ac6ae67dbec9ec6e1857d2c754a228f5a2e98a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-base/kdrive/kdrive-6.6.1_pre20050820.ebuild,v 1.6 2006/02/14 22:09:36 corsair Exp $
SNAPSHOT="yes"
inherit flag-o-matic x-modular
PATCHES="${FILESDIR}/make-xv-configable.patch"
MY_PN="xserver"
MY_P="${MY_PN}-${PV##*pre}"
SRC_URI="http://dev.gentoo.org/~spyderous/overlay/distfiles/${MY_P}.tar.bz2"
HOMEPAGE="http://xserver.freedesktop.org/wiki/Software/Xserver"
DESCRIPTION="Experimental X11 implementations"
KEYWORDS="~ppc64 ~x86"
IUSE="ipv6 static minimal"
RDEPEND="x11-libs/libXdmcp
x11-libs/libX11
x11-libs/libXext
x11-libs/libXfont
x11-libs/xtrans
x11-libs/libXau
x11-libs/libXrender
>=media-libs/glitz-0.4.3
media-libs/freetype"
DEPEND="${RDEPEND}
x11-proto/randrproto
x11-proto/renderproto
x11-proto/fixesproto
x11-proto/damageproto
x11-proto/xextproto
x11-proto/xproto
x11-proto/compositeproto
x11-proto/resourceproto
x11-proto/recordproto"
LICENSE="${LICENSE} GLX SGI-B-1.1 MIT"
# Strip off the version
S="${WORKDIR}/${MY_P%%-[0-9]*}"
pkg_setup() {
CONFIGURE_OPTIONS="$(use_enable ipv6)
$(use_enable !minimal xv)
$(use_enable !minimal composite)
$(use_enable !minimal xrecord)
$(use_enable !minimal xres)
--enable-xglserver
--enable-xglxserver
--disable-xeglserver
--with-fontpath=/usr/share/fonts/misc,/usr/share/fonts/100dpi,/usr/share/fonts/75dpi"
# Probably need to --enable-egl in glitz for this
# --enable-xeglserver
append-ldflags $(bindnow-flags)
}
src_compile() {
x-modular_src_configure
# Has to be after configure, or configure dies
if use static; then
append-ldflags -all-static
fi
# Yes, we do need the LDFLAGS here in addition to the above append.
emake LDFLAGS="${LDFLAGS}"
}
src_install() {
x-modular_src_install
ebegin "Making X servers suid"
find ${D}${XDIR}/bin -name 'X*' \
| sed -e "s:${D}::g" \
| xargs fperms u+s
eend 0
# Install our startx script
exeinto ${XDIR}/bin
doexe ${FILESDIR}/startxkd
}
pkg_postinst() {
x-modular_pkg_postinst
einfo "You may edit ${XDIR}/bin/startxkd to your preferences."
einfo "Xvesa is the default."
einfo "Or you can use something like:"
einfo "\"xinit -- ${XDIR}/bin/Xvesa :0 -screen 1280x1024x16 -nolisten tcp\"."
einfo "Your ~/.xinitrc will be used if you use xinit."
}
|