Contents of /smage/trunk/core/xorg-server/xorg-server-1.8.0-r3.smage2
Parent Directory | Revision Log
Revision 589 -
(show annotations)
(download)
Wed Oct 13 21:20:55 2010 UTC (13 years, 11 months ago) by niro
File size: 5595 byte(s)
Wed Oct 13 21:20:55 2010 UTC (13 years, 11 months ago) by niro
File size: 5595 byte(s)
auto added: ver bump to 1.8.0-r3
1 | # $Id: xorg-server-1.8.0-r2.smage2 419 2010-05-06 23:13:19Z niro $ |
2 | |
3 | PNAME="xorg-server" |
4 | PVER="1.8.0" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="x11-base" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Modular X.Org X Server." |
11 | HOMEPAGE="http://xorg.freedesktop.org" |
12 | |
13 | PROVIDE="virtual/x11" |
14 | |
15 | DEPEND=">= x11-libs/libXfont-1.4.1 |
16 | >= x11-libs/libXau-1.0.5 |
17 | >= x11-libs/libXext-1.1 |
18 | >= x11-libs/libX11-1.3.1 |
19 | >= x11-libs/libxkbfile-1.0.6 |
20 | >= x11-libs/libXdmcp-1.0.3 |
21 | >= x11-libs/libXmu-1.0.5 |
22 | >= x11-libs/libXrender-0.9.5 |
23 | >= x11-libs/libXi-1.3 |
24 | >= media-libs/freetype-2.3.9 |
25 | >= media-fonts/font-misc-misc-1 |
26 | >= media-fonts/font-cursor-misc-1 |
27 | >= x11-libs/libXpm-3.5.8 |
28 | >= x11-libs/libXinerama-1.1 |
29 | >= sys-fs/udev-151 |
30 | >= x11-libs/pixman-0.16.2 |
31 | >= x11-libs/libpciaccess-0.10.9 |
32 | >= dev-libs/libsha1-0.2" |
33 | # == media-libs/mesa-${MESA_PVER} |
34 | # >= x11-misc/xbitmaps-1.1.0 |
35 | # >= x11-misc/xkeyboard-config-1.7 |
36 | # >= x11-apps/iceauth-1.0.3 |
37 | # >= x11-apps/rgb-1.0.3 |
38 | # >= x11-apps/xauth-1.0.4 |
39 | # >= x11-apps/xinit-1.1.1 |
40 | # >= x11-libs/libXaw-1.0.7 |
41 | # >= x11-libs/libdmx-1.1.0 |
42 | # >= x11-base/opengl-update-magellan-2.2.10 |
43 | # >= x11-libs/libXxf86misc-1.0.2 |
44 | # >= x11-libs/libXxf86vm-1.1.0 |
45 | # >= x11-libs/libXtst-1.1.0 |
46 | # >= x11-libs/libXres-1.0.4 |
47 | # >= x11-libs/libxkbui-1.0.2 |
48 | |
49 | SDEPEND=">= x11-libs/xtrans-1.2.5 |
50 | >= x11-proto/randrproto-1.3.1 |
51 | >= x11-proto/renderproto-0.11 |
52 | >= x11-proto/fixesproto-4.1.1 |
53 | >= x11-proto/damageproto-1.2.0 |
54 | >= x11-proto/xextproto-7.1.1 |
55 | >= x11-proto/xproto-7.0.16 |
56 | >= x11-proto/xf86dgaproto-2.1 |
57 | >= x11-proto/xf86miscproto-0.9.3 |
58 | >= x11-proto/xf86vidmodeproto-2.3 |
59 | >= x11-proto/xf86bigfontproto-1.2.0 |
60 | >= x11-proto/recordproto-1.14 |
61 | >= x11-proto/resourceproto-1.1.0 |
62 | >= x11-proto/videoproto-2.3.0 |
63 | >= x11-proto/scrnsaverproto-1.2.0 |
64 | >= x11-proto/evieext-1.1.0 |
65 | >= x11-proto/fontsproto-2.1.0 |
66 | >= x11-proto/kbproto-1.0.4 |
67 | >= x11-proto/inputproto-2.0 |
68 | >= x11-proto/bigreqsproto-1.1.0 |
69 | >= x11-proto/xcmiscproto-1.2.0 |
70 | >= x11-apps/mkfontdir-1.0.5 |
71 | >= x11-apps/mkfontscale-1.0.7 |
72 | >= x11-misc/xbitmaps-1.1.0" |
73 | #??? >= x11-libs/libXv-1.0.5" |
74 | # >= x11-proto/compositeproto-0.4.1 |
75 | # >= x11-proto/xineramaproto-1.2 |
76 | # >= x11-proto/glproto-1.4.10 |
77 | # >= x11-proto/dmxproto-2.3 |
78 | # >= x11-proto/xf86driproto-2.1.0 |
79 | # >= x11-proto/dri2proto-2.1 |
80 | # >= x11-libs/libdrm-2.4.15 |
81 | |
82 | # base files |
83 | MCORE_ONLY_KEEP="etc/X11 |
84 | usr/bin/Xorg |
85 | usr/$(mlibdir)/xorg/protocol.txt |
86 | var/lib/xkb/README.compiled" |
87 | |
88 | # generic modules |
89 | MCORE_ONLY_KEEP+=" usr/$(mlibdir)/xorg/modules/libvgahw.so |
90 | usr/$(mlibdir)/xorg/modules/libvbe.so |
91 | usr/$(mlibdir)/xorg/modules/libshadow.so |
92 | usr/$(mlibdir)/xorg/modules/libexa.so |
93 | usr/$(mlibdir)/xorg/modules/libxaa.so |
94 | usr/$(mlibdir)/xorg/modules/libint10.so |
95 | usr/$(mlibdir)/xorg/modules/libfb.so |
96 | usr/$(mlibdir)/xorg/modules/libshadowfb.so" |
97 | |
98 | # generic extensions |
99 | MCORE_ONLY_KEEP+=" usr/$(mlibdir)/xorg/modules/extensions/libextmod.so |
100 | usr/$(mlibdir)/xorg/modules/extensions/libdbe.so" |
101 | |
102 | sminclude xorg mtools mcore-split |
103 | |
104 | SRC_URI=( ${SRC_URI[*]} |
105 | mirror://${PNAME}/${SRCFILE} |
106 | mirror://${PNAME}/${PNAME}-1.4-fpic-libxf86config.patch |
107 | mirror://${PNAME}/${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch |
108 | mirror://${PNAME}/${PNAME}-${PVER}-match-only-sane-devices.patch |
109 | mirror://${PNAME}/${PNAME}-${PVER}-kdrive-default-mode.patch |
110 | mirror://${PNAME}/${PNAME}-${PVER}-kdrive-evdev-with-valid-mouse-devices.patch |
111 | ) |
112 | |
113 | UP2SUBDIR="xserver" |
114 | UP2DATE="updatecmd_xorg ${PNAME}" |
115 | |
116 | src_prepare() |
117 | { |
118 | munpack ${SRCFILE} || die |
119 | cd ${SRCDIR} |
120 | |
121 | # fixes fpic issues with libxf86config on 64bit systems |
122 | mpatch ${PNAME}-1.4-fpic-libxf86config.patch || die |
123 | |
124 | # adopted from redhat; use a black background |
125 | mpatch ${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch || die |
126 | |
127 | # only match sane devices in 10-evdev.conf |
128 | # having a generic catchall also adds devices like accelerometers. These |
129 | # devices make X unusable, hence restrict matching to "known sane" devices |
130 | # like pointers, touchpads, keyboards, tablets and touchscreens. |
131 | mpatch ${PNAME}-${PVER}-match-only-sane-devices.patch || die |
132 | |
133 | # fix kdrive default mode -> use 640x480@60hz instead of 800x600@75hz |
134 | mpatch ${PNAME}-${PVER}-kdrive-default-mode.patch || die |
135 | |
136 | # fix new evdev event devices (event4 and event5) |
137 | mpatch ${PNAME}-${PVER}-kdrive-evdev-with-valid-mouse-devices.patch || die |
138 | |
139 | # fix build issues, some wrapper files which should be generated |
140 | # at build time exist and the makefile doesn't whipe them. we patch |
141 | # the makefile to clean them and whipe these wrapper files |
142 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die |
143 | |
144 | # fix xorg.conf.d location |
145 | sed -i 's:^\(@CONFIG_UDEV_TRUE@xorgconfddir =\).*:\1 $(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.in || die |
146 | sed -i 's:^\(xorgconfddir =\).*: \1$(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.am || die |
147 | |
148 | autoreconf --verbose --install --force || die |
149 | } |
150 | |
151 | src_compile() |
152 | { |
153 | cd ${SRCDIR} |
154 | |
155 | xorg_src_configure \ |
156 | --sysconfdir=/etc \ |
157 | --localstatedir=/var \ |
158 | --with-xkb-output=/var/lib/xkb \ |
159 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ |
160 | --enable-install-setuid \ |
161 | --disable-ipv6 \ |
162 | --disable-dmx \ |
163 | --disable-xvfb \ |
164 | --disable-xnest \ |
165 | --disable-dri \ |
166 | --disable-dri2 \ |
167 | --enable-xorg \ |
168 | --enable-xtrap \ |
169 | --enable-xevie \ |
170 | --disable-xprint \ |
171 | --disable-glx-tls \ |
172 | --disable-glx \ |
173 | --disable-static \ |
174 | --disable-config-dbus \ |
175 | --disable-config-hal \ |
176 | --enable-config-udev \ |
177 | --disable-composite \ |
178 | --disable-xinerama \ |
179 | --with-sha1=libsha1 \ |
180 | || die |
181 | |
182 | mmake || die |
183 | } |
184 | |
185 | src_install() |
186 | { |
187 | xorg_src_install || die |
188 | |
189 | # needed directories |
190 | minstalldir /usr/bin || die |
191 | |
192 | # missing symlink |
193 | mlink Xorg /usr/bin/X || die |
194 | } |