Contents of /smage/trunk/core/kdrive/kdrive-1.8.0-r2.smage2
Parent Directory | Revision Log
Revision 561 -
(show annotations)
(download)
Mon Sep 13 17:00:08 2010 UTC (14 years ago) by niro
File size: 4614 byte(s)
Mon Sep 13 17:00:08 2010 UTC (14 years ago) by niro
File size: 4614 byte(s)
-fixed a typo
1 | # $Id: kdrive-1.8.0-r1.smage2 387 2010-05-05 19:52:08Z niro $ |
2 | |
3 | PNAME="kdrive" |
4 | PVER="1.8.0" |
5 | PBUILD="r2" |
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.1 |
14 | >= x11-libs/libXau-1.0.5 |
15 | >= x11-libs/libXext-1.1 |
16 | >= x11-libs/libX11-1.3.1 |
17 | >= x11-libs/libXdmcp-1.0.3 |
18 | >= x11-libs/libxkbfile-1.0.6 |
19 | >= x11-libs/pixman-0.16.2 |
20 | >= media-libs/freetype-2.3.9 |
21 | >= media-fonts/font-misc-misc-1 |
22 | >= media-fonts/font-cursor-misc-1 |
23 | >= x11-misc/xkeyboard-config-1.7 |
24 | >= dev-libs/libsha1-0.2" |
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 | |
55 | MCORE_ONLY_KEEP="usr/bin usr/share/X11/xkb" |
56 | sminclude xorg mtools cleanutils mcore-split |
57 | |
58 | SRCFILE="xorg-server-${PVER}.tar.bz2" |
59 | SRCDIR="${BUILDDIR}/xorg-server-${PVER}" |
60 | |
61 | SRC_URI=( |
62 | http://ftp.x.org/pub/individual/xserver/${SRCFILE} |
63 | mirror://xorg-server/${SRCFILE} |
64 | mirror://xorg-server/xorg-server-1.4-fpic-libxf86config.patch |
65 | mirror://xorg-server/xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch |
66 | mirror://xorg-server/xorg-server-${PVER}-match-only-sane-devices.patch |
67 | mirror://xorg-server/xorg-server-${PVER}-kdrive-default-mode.patch |
68 | mirror://xorg-server/xorg-server-${PVER}-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.4-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 | # only match sane devices in 10-evdev.conf |
86 | # having a generic catchall also adds devices like accelerometers. These |
87 | # devices make X unusable, hence restrict matching to "known sane" devices |
88 | # like pointers, touchpads, keyboards, tablets and touchscreens. |
89 | mpatch xorg-server-${PVER}-match-only-sane-devices.patch || die |
90 | |
91 | # fix kdrive default mode -> use 640x480@60hz instead of 800x600@75hz |
92 | mpatch xorg-server-${PVER}-kdrive-default-mode.patch || die |
93 | |
94 | # fix new evdev event devices (event4 and event5) |
95 | mpatch xorg-server-${PVER}-kdrive-evdev-with-valid-mouse-devices.patch || die |
96 | |
97 | # fix build issues, some wrapper files which should be generated |
98 | # at build time exist and the makefile doesn't whipe them. we patch |
99 | # the makefile to clean them and whipe these wrapper files |
100 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die |
101 | |
102 | autoreconf --install --force || die |
103 | } |
104 | |
105 | src_compile() |
106 | { |
107 | cd ${SRCDIR} |
108 | |
109 | xorg_src_configure \ |
110 | --sysconfdir=/etc/X11 \ |
111 | --localstatedir=/var \ |
112 | --with-default-font-path=built-ins \ |
113 | --enable-install-setuid \ |
114 | --enable-ipv6 \ |
115 | --enable-kdrive \ |
116 | --disable-xephyr \ |
117 | --disable-static \ |
118 | --disable-dmx \ |
119 | --disable-xvfb \ |
120 | --disable-xnest \ |
121 | --disable-install-libxf86config \ |
122 | --disable-dri \ |
123 | --disable-dri2 \ |
124 | --disable-xorg \ |
125 | --disable-xprint \ |
126 | --disable-glx-tls \ |
127 | --disable-glx \ |
128 | --disable-composite \ |
129 | --disable-xorgcfg \ |
130 | --disable-screensaver \ |
131 | --disable-xdmcp \ |
132 | --disable-xinerama \ |
133 | --disable-dga \ |
134 | --disable-xkb \ |
135 | --disable-xevie \ |
136 | --disable-xprint \ |
137 | --disable-xtrap \ |
138 | --disable-w100 \ |
139 | --disable-xsdl \ |
140 | --disable-config-dbus \ |
141 | --disable-config-hal \ |
142 | --disable-config-udev \ |
143 | --with-sha1=libsha1 \ |
144 | --enable-kdrive-kbd \ |
145 | --enable-kdrive-mouse \ |
146 | --enable-kdrive-evdev \ |
147 | || die |
148 | |
149 | mmake || die |
150 | } |
151 | |
152 | mcore_generic_src_install() |
153 | { |
154 | cd ${SRCDIR} |
155 | xorg_src_install |
156 | |
157 | # suid all tinyX servers |
158 | mchmod 4755 /usr/bin/X\* || die |
159 | |
160 | # cleanup |
161 | zapmost ${BINDIR}/usr bin share/man || die |
162 | |
163 | if [[ -e ${BINDIR}/usr/bin/Xephyr ]] |
164 | then |
165 | rm ${BINDIR}/usr/bin/Xephyr || die |
166 | fi |
167 | |
168 | if [[ -e ${BINDIR}/usr/share/man1/Xephyr.1 ]] |
169 | then |
170 | rm ${BINDIR}/usr/share/man1/Xephyr.1 || die |
171 | fi |
172 | |
173 | # needed directory |
174 | mkeepdir /usr/share/X11/xkb/compiled || die |
175 | } |