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