Annotation of /smage/trunk/core/xorg-server/xorg-server-1.9.3-r1.smage2
Parent Directory | Revision Log
Revision 1016 -
(hide annotations)
(download)
Thu Dec 16 22:49:32 2010 UTC (13 years, 5 months ago) by niro
File size: 6647 byte(s)
Thu Dec 16 22:49:32 2010 UTC (13 years, 5 months ago) by niro
File size: 6647 byte(s)
-keep cvt and gtf too
1 | niro | 1014 | # $Id: xorg-server-1.8.0-r2.smage2 419 2010-05-06 23:13:19Z niro $ |
2 | |||
3 | PNAME="xorg-server" | ||
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 | # mesa sources are needed to compile opengl extensions | ||
14 | MESA_PVER="7.8.2" | ||
15 | MESA_SRCFILE="MesaLib-${MESA_PVER/_/-}.tar.gz" | ||
16 | MESA_SRCDIR="${BUILDDIR}/MesaLib-${MESA_PVER/_/-}" | ||
17 | |||
18 | PROVIDE="virtual/x11" | ||
19 | |||
20 | DEPEND=">= x11-libs/libXfont-1.4.3 | ||
21 | >= x11-libs/libXau-1.0.6 | ||
22 | >= x11-libs/libXext-1.2 | ||
23 | >= x11-libs/libX11-1.4 | ||
24 | >= x11-libs/libxkbfile-1.0.7 | ||
25 | >= x11-libs/libXdmcp-1.1 | ||
26 | >= x11-libs/libXmu-1.1 | ||
27 | >= x11-libs/libXrender-0.9.6 | ||
28 | >= x11-libs/libXi-1.4 | ||
29 | >= media-libs/freetype-2.4 | ||
30 | >= media-fonts/font-misc-misc-1 | ||
31 | >= media-fonts/font-cursor-misc-1 | ||
32 | >= x11-libs/libXpm-3.5.9 | ||
33 | >= x11-libs/libXinerama-1.1.1 | ||
34 | >= sys-fs/udev-165 | ||
35 | >= x11-libs/pixman-0.20 | ||
36 | >= x11-libs/libpciaccess-0.12 | ||
37 | >= dev-libs/libsha1-0.3 | ||
38 | == media-libs/mesa-${MESA_PVER} | ||
39 | >= x11-libs/libXxf86misc-1.0.3 | ||
40 | >= x11-libs/libXxf86vm-1.1.1 | ||
41 | >= x11-misc/xkeyboard-config-2.0" | ||
42 | # >= x11-misc/xbitmaps-1.1.0 | ||
43 | # >= x11-apps/iceauth-1.0.3 | ||
44 | # >= x11-apps/rgb-1.0.3 | ||
45 | # >= x11-apps/xauth-1.0.4 | ||
46 | # >= x11-apps/xinit-1.1.1 | ||
47 | # >= x11-libs/libXaw-1.0.7 | ||
48 | # >= x11-libs/libdmx-1.1.0 | ||
49 | # >= x11-libs/libXtst-1.1.0 | ||
50 | # >= x11-libs/libXres-1.0.4 | ||
51 | # >= x11-libs/libxkbui-1.0.2 | ||
52 | |||
53 | SDEPEND=">= x11-libs/xtrans-1.2.6 | ||
54 | >= x11-proto/randrproto-1.3.2 | ||
55 | >= x11-proto/renderproto-0.11.1 | ||
56 | >= x11-proto/fixesproto-4.1.2 | ||
57 | >= x11-proto/damageproto-1.2.1 | ||
58 | >= x11-proto/xextproto-7.1.2 | ||
59 | >= x11-proto/xproto-7.0.20 | ||
60 | >= x11-proto/xf86dgaproto-2.1 | ||
61 | >= x11-proto/xf86miscproto-0.9.3 | ||
62 | >= x11-proto/xf86vidmodeproto-2.3 | ||
63 | >= x11-proto/xf86bigfontproto-1.2.0 | ||
64 | >= x11-proto/recordproto-1.14.1 | ||
65 | >= x11-proto/resourceproto-1.1.1 | ||
66 | >= x11-proto/videoproto-2.3.1 | ||
67 | >= x11-proto/scrnsaverproto-1.2.1 | ||
68 | >= x11-proto/evieext-1.1.0 | ||
69 | >= x11-proto/fontsproto-2.1.1 | ||
70 | >= x11-proto/kbproto-1.0.5 | ||
71 | >= x11-proto/inputproto-2.0.1 | ||
72 | >= x11-proto/bigreqsproto-1.1.0 | ||
73 | >= x11-proto/xcmiscproto-1.2.0 | ||
74 | >= x11-apps/mkfontdir-1.0.5 | ||
75 | >= x11-apps/mkfontscale-1.0.7 | ||
76 | >= x11-misc/xbitmaps-1.1.0 | ||
77 | >= x11-proto/compositeproto-0.4.1 | ||
78 | >= x11-proto/xineramaproto-1.2 | ||
79 | >= x11-proto/glproto-1.4.10 | ||
80 | >= x11-proto/xf86driproto-2.1.0 | ||
81 | >= x11-proto/dri2proto-2.1 | ||
82 | >= x11-libs/libdrm-2.4.15" | ||
83 | |||
84 | #??? >= x11-libs/libXv-1.0.5" | ||
85 | # >= x11-proto/dmxproto-2.3 | ||
86 | |||
87 | # base files | ||
88 | MCORE_ONLY_KEEP="etc/X11 | ||
89 | usr/bin/Xorg | ||
90 | usr/$(mlibdir)/xorg/protocol.txt | ||
91 | var/lib/xkb/README.compiled" | ||
92 | |||
93 | # generic modules | ||
94 | MCORE_ONLY_KEEP+=" usr/$(mlibdir)/xorg/modules/libvgahw.so | ||
95 | usr/$(mlibdir)/xorg/modules/libvbe.so | ||
96 | usr/$(mlibdir)/xorg/modules/libshadow.so | ||
97 | usr/$(mlibdir)/xorg/modules/libexa.so | ||
98 | usr/$(mlibdir)/xorg/modules/libxaa.so | ||
99 | usr/$(mlibdir)/xorg/modules/libint10.so | ||
100 | usr/$(mlibdir)/xorg/modules/libfb.so | ||
101 | usr/$(mlibdir)/xorg/modules/libshadowfb.so" | ||
102 | |||
103 | # generic extensions | ||
104 | MCORE_ONLY_KEEP+=" usr/$(mlibdir)/xorg/modules/extensions/libextmod.so | ||
105 | usr/$(mlibdir)/xorg/modules/extensions/libdbe.so" | ||
106 | |||
107 | # opengl | ||
108 | MCORE_ONLY_KEEP+=" /usr/$(mlibdir)/opengl/xorg/extensions" | ||
109 | |||
110 | # other drivers | ||
111 | MCORE_ONLY_KEEP+=" usr/$(mlibdir)/xorg/modules/drivers | ||
112 | usr/$(mlibdir)/xorg/modules/drivers/extensions | ||
113 | usr/$(mlibdir)/xorg/modules/drivers/input | ||
114 | usr/$(mlibdir)/xorg/modules/drivers/linux | ||
115 | usr/$(mlibdir)/xorg/modules/drivers/multimedia" | ||
116 | |||
117 | niro | 1016 | # keep cvt and gtf for modline calculating |
118 | MCORE_ONLY_KEEP+=" usr/bin/cvt usr/bin/gtf" | ||
119 | |||
120 | niro | 1014 | sminclude xorg mtools mcore-split |
121 | |||
122 | SRC_URI=( ${SRC_URI[*]} | ||
123 | mirror://${PNAME}/${SRCFILE} | ||
124 | ftp://ftp.freedesktop.org/pub/mesa/${MESA_PVER}/${MESA_SRCFILE} | ||
125 | sourceforge://mesa3d/${MESA_SRCFILE} | ||
126 | mirror://mesa/${MESA_SRCFILE} | ||
127 | niro | 1015 | mirror://${PNAME}/${PNAME}-1.9.0-fpic-libxf86config.patch |
128 | niro | 1014 | mirror://${PNAME}/${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch |
129 | niro | 1015 | mirror://${PNAME}/${PNAME}-1.8.0-kdrive-default-mode.patch |
130 | mirror://${PNAME}/${PNAME}-1.8.0-kdrive-evdev-with-valid-mouse-devices.patch | ||
131 | niro | 1014 | ) |
132 | |||
133 | UP2SUBDIR="xserver" | ||
134 | UP2DATE="updatecmd_xorg ${PNAME}" | ||
135 | |||
136 | src_prepare() | ||
137 | { | ||
138 | munpack ${SRCFILE} || die | ||
139 | munpack ${MESA_SRCFILE} || die | ||
140 | cd ${SRCDIR} | ||
141 | |||
142 | # fixes fpic issues with libxf86config on 64bit systems | ||
143 | niro | 1015 | mpatch ${PNAME}-1.9.0-fpic-libxf86config.patch || die |
144 | niro | 1014 | |
145 | # adopted from redhat; use a black background | ||
146 | mpatch ${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch || die | ||
147 | |||
148 | # fix kdrive default mode -> use 640x480@60hz instead of 800x600@75hz | ||
149 | niro | 1015 | mpatch ${PNAME}-1.8.0-kdrive-default-mode.patch || die |
150 | niro | 1014 | |
151 | # fix new evdev event devices (event4 and event5) | ||
152 | niro | 1015 | mpatch ${PNAME}-1.8.0-kdrive-evdev-with-valid-mouse-devices.patch || die |
153 | niro | 1014 | |
154 | # fix build issues, some wrapper files which should be generated | ||
155 | # at build time exist and the makefile doesn't whipe them. we patch | ||
156 | # the makefile to clean them and whipe these wrapper files | ||
157 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die | ||
158 | |||
159 | # fix xorg.conf.d location | ||
160 | sed -i 's:^\(@CONFIG_UDEV_TRUE@xorgconfddir =\).*:\1 $(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.in || die | ||
161 | sed -i 's:^\(xorgconfddir =\).*: \1$(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.am || die | ||
162 | |||
163 | autoreconf --verbose --install --force || die | ||
164 | } | ||
165 | |||
166 | src_compile() | ||
167 | { | ||
168 | cd ${SRCDIR} | ||
169 | |||
170 | xorg_src_configure \ | ||
171 | --with-mesa-source=${MESA_SRCDIR} \ | ||
172 | --sysconfdir=/etc \ | ||
173 | --localstatedir=/var \ | ||
174 | --with-xkb-output=/var/lib/xkb \ | ||
175 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ | ||
176 | --enable-install-setuid \ | ||
177 | --disable-ipv6 \ | ||
178 | --disable-dmx \ | ||
179 | --disable-xvfb \ | ||
180 | --disable-xnest \ | ||
181 | --enable-dri \ | ||
182 | --enable-dri2 \ | ||
183 | --enable-xorg \ | ||
184 | --enable-xtrap \ | ||
185 | --enable-xevie \ | ||
186 | --disable-xprint \ | ||
187 | --enable-glx-tls \ | ||
188 | --enable-glx \ | ||
189 | --disable-static \ | ||
190 | --disable-config-dbus \ | ||
191 | --disable-config-hal \ | ||
192 | --enable-config-udev \ | ||
193 | --enable-composite \ | ||
194 | --enable-xinerama \ | ||
195 | --with-sha1=libsha1 \ | ||
196 | || die | ||
197 | |||
198 | mmake || die | ||
199 | } | ||
200 | |||
201 | mcore_generic_src_install() | ||
202 | { | ||
203 | xorg_src_install || die | ||
204 | |||
205 | # needed directories | ||
206 | minstalldir /usr/bin || die | ||
207 | minstalldir /usr/$(mlibdir)/opengl/xorg/extensions || die | ||
208 | |||
209 | # missing symlink | ||
210 | mlink Xorg /usr/bin/X || die | ||
211 | } | ||
212 | |||
213 | preinstall() | ||
214 | { | ||
215 | # fix some deprecated symlinks from ancient xorg-1.5 servers | ||
216 | if [ -L ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libdri.so ] | ||
217 | then | ||
218 | rm ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libdri.so | ||
219 | fi | ||
220 | |||
221 | if [ -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libdri.so ] | ||
222 | then | ||
223 | rm ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libdri.so | ||
224 | fi | ||
225 | |||
226 | if [ -L ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libglx.so ] | ||
227 | then | ||
228 | rm ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libglx.so | ||
229 | fi | ||
230 | |||
231 | if [ -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libglx.so ] | ||
232 | then | ||
233 | rm ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libglx.so | ||
234 | fi | ||
235 | } |