Contents of /smage/trunk/core/kdrive/kdrive-1.9.3-r1.smage2
Parent Directory | Revision Log
Revision 967 -
(show annotations)
(download)
Wed Dec 15 17:10:15 2010 UTC (13 years, 9 months ago) by niro
File size: 4204 byte(s)
Wed Dec 15 17:10:15 2010 UTC (13 years, 9 months ago) by niro
File size: 4204 byte(s)
auto added: ver bump to 1.9.3-r1
1 | # $Id: kdrive-1.8.0-r1.smage2 387 2010-05-05 19:52:08Z niro $ |
2 | |
3 | PNAME="kdrive" |
4 | PVER="1.9.3" |
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 | # >= 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.9.0-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-1.8.0-kdrive-default-mode.patch |
67 | mirror://xorg-server/xorg-server-1.8.0-kdrive-evdev-with-valid-mouse-devices.patch |
68 | ) |
69 | |
70 | UP2SUBDIR="xserver" |
71 | UP2DATE="updatecmd_xorg xorg-server" |
72 | |
73 | src_prepare() |
74 | { |
75 | munpack ${SRCFILE} || die |
76 | cd ${SRCDIR} |
77 | |
78 | # fixes fpic issues with libxf86config on 64bit systems |
79 | mpatch xorg-server-1.9.0-fpic-libxf86config.patch || die |
80 | |
81 | # adopted from redhat; use a black background |
82 | mpatch xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch || die |
83 | |
84 | # fix kdrive default mode -> use 640x480@60hz instead of 800x600@75hz |
85 | mpatch xorg-server-1.8.0-kdrive-default-mode.patch || die |
86 | |
87 | # fix new evdev event devices (event4 and event5) |
88 | mpatch xorg-server-1.8.0-kdrive-evdev-with-valid-mouse-devices.patch || die |
89 | |
90 | # fix build issues, some wrapper files which should be generated |
91 | # at build time exist and the makefile doesn't whipe them. we patch |
92 | # the makefile to clean them and whipe these wrapper files |
93 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die |
94 | |
95 | autoreconf --install --force || die |
96 | } |
97 | |
98 | src_compile() |
99 | { |
100 | cd ${SRCDIR} |
101 | |
102 | xorg_src_configure \ |
103 | --sysconfdir=/etc/X11 \ |
104 | --localstatedir=/var \ |
105 | --with-default-font-path=built-ins \ |
106 | --enable-install-setuid \ |
107 | --enable-ipv6 \ |
108 | --enable-kdrive \ |
109 | --disable-xephyr \ |
110 | --disable-static \ |
111 | --disable-dmx \ |
112 | --disable-xvfb \ |
113 | --disable-xnest \ |
114 | --disable-install-libxf86config \ |
115 | --disable-dri \ |
116 | --disable-dri2 \ |
117 | --disable-xorg \ |
118 | --disable-xprint \ |
119 | --disable-glx-tls \ |
120 | --disable-glx \ |
121 | --disable-composite \ |
122 | --disable-xorgcfg \ |
123 | --disable-screensaver \ |
124 | --disable-xdmcp \ |
125 | --disable-xinerama \ |
126 | --disable-dga \ |
127 | --disable-xkb \ |
128 | --disable-xevie \ |
129 | --disable-xprint \ |
130 | --disable-xtrap \ |
131 | --disable-w100 \ |
132 | --disable-xsdl \ |
133 | --disable-config-dbus \ |
134 | --disable-config-hal \ |
135 | --disable-config-udev \ |
136 | --with-sha1=libsha1 \ |
137 | --enable-kdrive-kbd \ |
138 | --enable-kdrive-mouse \ |
139 | --enable-kdrive-evdev \ |
140 | || die |
141 | |
142 | mmake || die |
143 | } |
144 | |
145 | mcore_generic_src_install() |
146 | { |
147 | cd ${SRCDIR} |
148 | xorg_src_install |
149 | |
150 | # suid all tinyX servers |
151 | mchmod 4755 /usr/bin/X\* || die |
152 | |
153 | # cleanup |
154 | zapmost ${BINDIR}/usr bin share/man || die |
155 | |
156 | if [[ -e ${BINDIR}/usr/bin/Xephyr ]] |
157 | then |
158 | rm ${BINDIR}/usr/bin/Xephyr || die |
159 | fi |
160 | |
161 | if [[ -e ${BINDIR}/usr/share/man1/Xephyr.1 ]] |
162 | then |
163 | rm ${BINDIR}/usr/share/man1/Xephyr.1 || die |
164 | fi |
165 | |
166 | # needed directory |
167 | mkeepdir /usr/share/X11/xkb/compiled || die |
168 | } |