Magellan Linux

Contents of /smage/trunk/core/xorg-server/xorg-server-1.8.0-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 592 - (show annotations) (download)
Wed Oct 13 22:04:27 2010 UTC (13 years, 6 months ago) by niro
File size: 7543 byte(s)
auto added: ver bump to 1.8.0-r4
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="r4"
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.1"
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.1
21 >= x11-libs/libXau-1.0.5
22 >= x11-libs/libXext-1.1
23 >= x11-libs/libX11-1.3.1
24 >= x11-libs/libxkbfile-1.0.6
25 >= x11-libs/libXdmcp-1.0.3
26 >= x11-libs/libXmu-1.0.5
27 >= x11-libs/libXrender-0.9.5
28 >= x11-libs/libXi-1.3
29 >= media-libs/freetype-2.3.9
30 >= media-fonts/font-misc-misc-1
31 >= media-fonts/font-cursor-misc-1
32 >= x11-libs/libXpm-3.5.8
33 >= x11-libs/libXinerama-1.1
34 >= sys-fs/udev-151
35 >= x11-libs/pixman-0.16.2
36 >= x11-libs/libpciaccess-0.10.9
37 >= dev-libs/libsha1-0.2
38 == media-libs/mesa-${MESA_PVER}
39 >= x11-base/opengl-update-magellan-2.2.10
40 >= x11-libs/libXxf86misc-1.0.2
41 >= x11-libs/libXxf86vm-1.1.0"
42 # >= x11-misc/xbitmaps-1.1.0
43 # >= x11-misc/xkeyboard-config-1.7
44 # >= x11-apps/iceauth-1.0.3
45 # >= x11-apps/rgb-1.0.3
46 # >= x11-apps/xauth-1.0.4
47 # >= x11-apps/xinit-1.1.1
48 # >= x11-libs/libXaw-1.0.7
49 # >= x11-libs/libdmx-1.1.0
50 # >= x11-libs/libXtst-1.1.0
51 # >= x11-libs/libXres-1.0.4
52 # >= x11-libs/libxkbui-1.0.2
53
54 SDEPEND=">= x11-libs/xtrans-1.2.5
55 >= x11-proto/randrproto-1.3.1
56 >= x11-proto/renderproto-0.11
57 >= x11-proto/fixesproto-4.1.1
58 >= x11-proto/damageproto-1.2.0
59 >= x11-proto/xextproto-7.1.1
60 >= x11-proto/xproto-7.0.16
61 >= x11-proto/xf86dgaproto-2.1
62 >= x11-proto/xf86miscproto-0.9.3
63 >= x11-proto/xf86vidmodeproto-2.3
64 >= x11-proto/xf86bigfontproto-1.2.0
65 >= x11-proto/recordproto-1.14
66 >= x11-proto/resourceproto-1.1.0
67 >= x11-proto/videoproto-2.3.0
68 >= x11-proto/scrnsaverproto-1.2.0
69 >= x11-proto/evieext-1.1.0
70 >= x11-proto/fontsproto-2.1.0
71 >= x11-proto/kbproto-1.0.4
72 >= x11-proto/inputproto-2.0
73 >= x11-proto/bigreqsproto-1.1.0
74 >= x11-proto/xcmiscproto-1.2.0
75 >= x11-apps/mkfontdir-1.0.5
76 >= x11-apps/mkfontscale-1.0.7
77 >= x11-misc/xbitmaps-1.1.0
78 >= x11-proto/compositeproto-0.4.1
79 >= x11-proto/xineramaproto-1.2
80 >= x11-proto/glproto-1.4.10
81 >= x11-proto/xf86driproto-2.1.0
82 >= x11-proto/dri2proto-2.1
83 >= x11-libs/libdrm-2.4.15"
84
85 #??? >= x11-libs/libXv-1.0.5"
86 # >= x11-proto/dmxproto-2.3
87
88 # base files
89 MCORE_ONLY_KEEP="etc/X11
90 usr/bin/Xorg
91 usr/$(mlibdir)/xorg/protocol.txt
92 var/lib/xkb/README.compiled"
93
94 # generic modules
95 MCORE_ONLY_KEEP+=" usr/$(mlibdir)/xorg/modules/libvgahw.so
96 usr/$(mlibdir)/xorg/modules/libvbe.so
97 usr/$(mlibdir)/xorg/modules/libshadow.so
98 usr/$(mlibdir)/xorg/modules/libexa.so
99 usr/$(mlibdir)/xorg/modules/libxaa.so
100 usr/$(mlibdir)/xorg/modules/libint10.so
101 usr/$(mlibdir)/xorg/modules/libfb.so
102 usr/$(mlibdir)/xorg/modules/libshadowfb.so"
103
104 # generic extensions
105 MCORE_ONLY_KEEP+=" usr/$(mlibdir)/xorg/modules/extensions/libextmod.so
106 usr/$(mlibdir)/xorg/modules/extensions/libdbe.so"
107
108 # opengl
109 MCORE_ONLY_KEEP+=" /usr/$(mlibdir)/opengl/xorg/extensions"
110
111 # other drivers
112 MCORE_ONLY_KEEP+=" usr/$(mlibdir)/xorg/modules/drivers
113 usr/$(mlibdir)/xorg/modules/drivers/extensions
114 usr/$(mlibdir)/xorg/modules/drivers/input
115 usr/$(mlibdir)/xorg/modules/drivers/linux
116 usr/$(mlibdir)/xorg/modules/drivers/multimedia"
117
118 sminclude xorg mtools mcore-split
119
120 SRC_URI=( ${SRC_URI[*]}
121 mirror://${PNAME}/${SRCFILE}
122 ftp://ftp.freedesktop.org/pub/mesa/${MESA_PVER}/${MESA_SRCFILE}
123 sourceforge://mesa3d/${MESA_SRCFILE}
124 mirror://mesa/${MESA_SRCFILE}
125 mirror://${PNAME}/${PNAME}-1.4-fpic-libxf86config.patch
126 mirror://${PNAME}/${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch
127 mirror://${PNAME}/${PNAME}-${PVER}-match-only-sane-devices.patch
128 mirror://${PNAME}/${PNAME}-${PVER}-kdrive-default-mode.patch
129 mirror://${PNAME}/${PNAME}-${PVER}-kdrive-evdev-with-valid-mouse-devices.patch
130 )
131
132 UP2SUBDIR="xserver"
133 UP2DATE="updatecmd_xorg ${PNAME}"
134
135 src_prepare()
136 {
137 munpack ${SRCFILE} || die
138 cd ${SRCDIR}
139
140 # fixes fpic issues with libxf86config on 64bit systems
141 mpatch ${PNAME}-1.4-fpic-libxf86config.patch || die
142
143 # adopted from redhat; use a black background
144 mpatch ${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch || die
145
146 # only match sane devices in 10-evdev.conf
147 # having a generic catchall also adds devices like accelerometers. These
148 # devices make X unusable, hence restrict matching to "known sane" devices
149 # like pointers, touchpads, keyboards, tablets and touchscreens.
150 mpatch ${PNAME}-${PVER}-match-only-sane-devices.patch || die
151
152 # fix kdrive default mode -> use 640x480@60hz instead of 800x600@75hz
153 mpatch ${PNAME}-${PVER}-kdrive-default-mode.patch || die
154
155 # fix new evdev event devices (event4 and event5)
156 mpatch ${PNAME}-${PVER}-kdrive-evdev-with-valid-mouse-devices.patch || die
157
158 # fix build issues, some wrapper files which should be generated
159 # at build time exist and the makefile doesn't whipe them. we patch
160 # the makefile to clean them and whipe these wrapper files
161 rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die
162
163 # fix xorg.conf.d location
164 sed -i 's:^\(@CONFIG_UDEV_TRUE@xorgconfddir =\).*:\1 $(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.in || die
165 sed -i 's:^\(xorgconfddir =\).*: \1$(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.am || die
166
167 autoreconf --verbose --install --force || die
168 }
169
170 src_compile()
171 {
172 cd ${SRCDIR}
173
174 xorg_src_configure \
175 --with-mesa-source=${MESA_SRCDIR} \
176 --sysconfdir=/etc \
177 --localstatedir=/var \
178 --with-xkb-output=/var/lib/xkb \
179 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
180 --enable-install-setuid \
181 --disable-ipv6 \
182 --disable-dmx \
183 --disable-xvfb \
184 --disable-xnest \
185 --enable-dri \
186 --enable-dri2 \
187 --enable-xorg \
188 --enable-xtrap \
189 --enable-xevie \
190 --disable-xprint \
191 --enable-glx-tls \
192 --enable-glx \
193 --disable-static \
194 --disable-config-dbus \
195 --disable-config-hal \
196 --enable-config-udev \
197 --enable-composite \
198 --enable-xinerama \
199 --with-sha1=libsha1 \
200 || die
201
202 mmake || die
203 }
204
205 mcore_generic_src_install()
206 {
207 xorg_src_install || die
208
209 # needed directories
210 minstalldir /usr/bin || die
211 minstalldir /usr/$(mlibdir)/opengl/xorg/extensions || die
212
213 # dynamic opengl setup
214 local i
215 for i in ${BINDIR}/usr/$(mlibdir)/xorg/modules/libglx* \
216 ${BINDIR}/usr/$(mlibdir)/xorg/modules/libdri*
217 do
218 if [ -f ${i} -o -L ${i} ]
219 then
220 mv -f ${i} ${BINDIR}/usr/$(mlibdir)/opengl/xorg/extensions || die "${i}"
221 fi
222 done
223
224 # missing symlink
225 mlink Xorg /usr/bin/X || die
226 }
227
228 preinstall()
229 {
230 # fix some deprecated symlinks from ancient xorg-1.5 servers
231 if [ -L ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libdri.so ]
232 then
233 rm ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libdri.so
234 fi
235
236 if [ -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libdri.so ]
237 then
238 rm ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libdri.so
239 fi
240
241 if [ -L ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libglx.so ]
242 then
243 rm ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libglx.so
244 fi
245
246 if [ -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libglx.so ]
247 then
248 rm ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libglx.so
249 fi
250 }
251
252 postinstall()
253 {
254 ${MROOT}/usr/sbin/opengl-update --use-old xorg
255 }
256
257 postremove()
258 {
259 # get rid of module dir to ensure opengl-update works properbly
260 if [ -e ${MROOT}/usr/$(mlibdir)/xorg/modules ]
261 then
262 if [[ -z $(magequery -n xorg-server) ]]
263 then
264 rm -rf ${MROOT}/usr/$(mlibdir)/xorg/modules
265 fi
266 fi
267 }