Annotation of /smage/trunk/core/kdrive/kdrive-1.10.0-r1.smage2
Parent Directory | Revision Log
Revision 1411 -
(hide annotations)
(download)
Tue Mar 1 23:22:08 2011 UTC (13 years, 3 months ago) by niro
File size: 4307 byte(s)
Tue Mar 1 23:22:08 2011 UTC (13 years, 3 months ago) by niro
File size: 4307 byte(s)
auto added: ver bump to 1.10.0-r1
1 | niro | 1411 | # $Id$ |
2 | |||
3 | PNAME="kdrive" | ||
4 | PVER="1.10.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="x11-base" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Modular X.Org X Server." | ||
11 | HOMEPAGE="http://xorg.freedesktop.org" | ||
12 | |||
13 | DEPEND=">= x11-libs/libXfont-1.4.3 | ||
14 | >= x11-libs/libXau-1.0.6 | ||
15 | >= x11-libs/libXext-1.2 | ||
16 | >= x11-libs/libX11-1.4 | ||
17 | >= x11-libs/libXdmcp-1.1 | ||
18 | >= x11-libs/libxkbfile-1.0.7 | ||
19 | >= x11-libs/pixman-0.20 | ||
20 | >= media-libs/freetype-2.4 | ||
21 | >= media-fonts/font-misc-misc-1 | ||
22 | >= media-fonts/font-cursor-misc-1 | ||
23 | >= x11-misc/xkeyboard-config-2.1 | ||
24 | >= dev-libs/libsha1-0.3" | ||
25 | # >= x11-libs/libXv-1.0.5 | ||
26 | |||
27 | SDEPEND=">= x11-libs/xtrans-1.2 | ||
28 | >= x11-proto/randrproto-1.3 | ||
29 | < x11-proto/renderproto-0.11 | ||
30 | >= x11-proto/fixesproto-4.1 | ||
31 | >= x11-proto/damageproto-1.2 | ||
32 | >= x11-proto/xextproto-7.1.1 | ||
33 | >= x11-proto/xproto-7.0.16 | ||
34 | >= x11-proto/xf86dgaproto-2.1 | ||
35 | >= x11-proto/xf86miscproto-0.9.3 | ||
36 | >= x11-proto/xf86vidmodeproto-2.3 | ||
37 | >= x11-proto/xf86bigfontproto-1.2.0 | ||
38 | >= x11-proto/compositeproto-0.4.1 | ||
39 | >= x11-proto/recordproto-1.14 | ||
40 | >= x11-proto/resourceproto-1.1.0 | ||
41 | >= x11-proto/videoproto-2.3.0 | ||
42 | >= x11-proto/scrnsaverproto-1.2.0 | ||
43 | >= x11-proto/evieext-1.1.0 | ||
44 | >= x11-proto/xineramaproto-1.2 | ||
45 | >= x11-proto/fontsproto-2.1.0 | ||
46 | >= x11-proto/kbproto-1.0.4 | ||
47 | >= x11-proto/inputproto-2.0 | ||
48 | >= x11-proto/bigreqsproto-1.1.0 | ||
49 | >= x11-proto/xcmiscproto-1.2.0 | ||
50 | >= x11-apps/mkfontdir-1.0.5 | ||
51 | >= x11-apps/mkfontscale-1.0.7" | ||
52 | |||
53 | PROVIDE="virtual/x11 | ||
54 | virtual/x11-input-drivers | ||
55 | virtual/x11-video-drivers | ||
56 | virtual/x11-drivers" | ||
57 | |||
58 | MCORE_ONLY_KEEP="usr/bin usr/share/X11/xkb" | ||
59 | sminclude xorg mtools cleanutils mcore-split | ||
60 | |||
61 | SRCFILE="xorg-server-${PVER}.tar.bz2" | ||
62 | SRCDIR="${BUILDDIR}/xorg-server-${PVER}" | ||
63 | |||
64 | SRC_URI=( | ||
65 | http://ftp.x.org/pub/individual/xserver/${SRCFILE} | ||
66 | mirror://xorg-server/${SRCFILE} | ||
67 | mirror://xorg-server/xorg-server-1.9.0-fpic-libxf86config.patch | ||
68 | mirror://xorg-server/xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch | ||
69 | mirror://xorg-server/xorg-server-1.8.0-kdrive-default-mode.patch | ||
70 | mirror://xorg-server/xorg-server-1.8.0-kdrive-evdev-with-valid-mouse-devices.patch | ||
71 | ) | ||
72 | |||
73 | UP2SUBDIR="xserver" | ||
74 | UP2DATE="updatecmd_xorg xorg-server" | ||
75 | |||
76 | src_prepare() | ||
77 | { | ||
78 | munpack ${SRCFILE} || die | ||
79 | cd ${SRCDIR} | ||
80 | |||
81 | # fixes fpic issues with libxf86config on 64bit systems | ||
82 | mpatch xorg-server-1.9.0-fpic-libxf86config.patch || die | ||
83 | |||
84 | # adopted from redhat; use a black background | ||
85 | mpatch xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch || die | ||
86 | |||
87 | # fix kdrive default mode -> use 640x480@60hz instead of 800x600@75hz | ||
88 | mpatch xorg-server-1.8.0-kdrive-default-mode.patch || die | ||
89 | |||
90 | # fix new evdev event devices (event4 and event5) | ||
91 | mpatch xorg-server-1.8.0-kdrive-evdev-with-valid-mouse-devices.patch || die | ||
92 | |||
93 | # fix build issues, some wrapper files which should be generated | ||
94 | # at build time exist and the makefile doesn't whipe them. we patch | ||
95 | # the makefile to clean them and whipe these wrapper files | ||
96 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die | ||
97 | |||
98 | autoreconf --install --force || die | ||
99 | } | ||
100 | |||
101 | src_compile() | ||
102 | { | ||
103 | cd ${SRCDIR} | ||
104 | |||
105 | xorg_src_configure \ | ||
106 | --sysconfdir=/etc/X11 \ | ||
107 | --localstatedir=/var \ | ||
108 | --with-default-font-path=built-ins \ | ||
109 | --enable-install-setuid \ | ||
110 | --enable-ipv6 \ | ||
111 | --enable-kdrive \ | ||
112 | --disable-xephyr \ | ||
113 | --disable-static \ | ||
114 | --disable-dmx \ | ||
115 | --disable-xvfb \ | ||
116 | --disable-xnest \ | ||
117 | --disable-install-libxf86config \ | ||
118 | --disable-dri \ | ||
119 | --disable-dri2 \ | ||
120 | --disable-xorg \ | ||
121 | --disable-xprint \ | ||
122 | --disable-glx-tls \ | ||
123 | --disable-glx \ | ||
124 | --disable-composite \ | ||
125 | --disable-xorgcfg \ | ||
126 | --disable-screensaver \ | ||
127 | --disable-xdmcp \ | ||
128 | --disable-xinerama \ | ||
129 | --disable-dga \ | ||
130 | --disable-xkb \ | ||
131 | --disable-xevie \ | ||
132 | --disable-xprint \ | ||
133 | --disable-xtrap \ | ||
134 | --disable-w100 \ | ||
135 | --disable-xsdl \ | ||
136 | --disable-config-dbus \ | ||
137 | --disable-config-hal \ | ||
138 | --disable-config-udev \ | ||
139 | --with-sha1=libsha1 \ | ||
140 | --enable-kdrive-kbd \ | ||
141 | --enable-kdrive-mouse \ | ||
142 | --enable-kdrive-evdev \ | ||
143 | || die | ||
144 | |||
145 | mmake || die | ||
146 | } | ||
147 | |||
148 | mcore_generic_src_install() | ||
149 | { | ||
150 | cd ${SRCDIR} | ||
151 | xorg_src_install | ||
152 | |||
153 | # suid all tinyX servers | ||
154 | mchmod 4755 /usr/bin/X\* || die | ||
155 | |||
156 | # cleanup | ||
157 | zapmost ${BINDIR}/usr bin share/man || die | ||
158 | |||
159 | if [[ -e ${BINDIR}/usr/bin/Xephyr ]] | ||
160 | then | ||
161 | rm ${BINDIR}/usr/bin/Xephyr || die | ||
162 | fi | ||
163 | |||
164 | if [[ -e ${BINDIR}/usr/share/man1/Xephyr.1 ]] | ||
165 | then | ||
166 | rm ${BINDIR}/usr/share/man1/Xephyr.1 || die | ||
167 | fi | ||
168 | |||
169 | # needed directory | ||
170 | mkeepdir /usr/share/X11/xkb/compiled || die | ||
171 | } | ||
172 | |||
173 | postinstall() | ||
174 | { | ||
175 | # symlink to kdrive | ||
176 | ln -snf Xfbdev ${MROOT}/usr/bin/X || die | ||
177 | } |