Annotation of /smage/trunk/core/xorg-server/xorg-server-1.8.0-r2.smage2
Parent Directory | Revision Log
Revision 410 -
(hide annotations)
(download)
Thu May 6 22:28:45 2010 UTC (14 years ago) by niro
File size: 5760 byte(s)
Thu May 6 22:28:45 2010 UTC (14 years ago) by niro
File size: 5760 byte(s)
auto added: ver bump to 1.8.0-r2.smage2
1 | niro | 410 | # $Id$ |
2 | |||
3 | PNAME="xorg-server" | ||
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 | sminclude xorg mtools mcore | ||
14 | |||
15 | # mesa sources are needed to compile opengl extensions | ||
16 | MESA_PVER="7.8.1" | ||
17 | MESA_SRCFILE="MesaLib-${MESA_PVER/_/-}.tar.gz" | ||
18 | MESA_SRCDIR="${BUILDDIR}/MesaLib-${MESA_PVER/_/-}" | ||
19 | |||
20 | PROVIDE="virtual/x11" | ||
21 | |||
22 | DEPEND=">= x11-libs/libXfont-1.4.1 | ||
23 | >= x11-libs/libXau-1.0.5 | ||
24 | >= x11-libs/libXext-1.1 | ||
25 | >= x11-libs/libX11-1.3.1 | ||
26 | >= x11-libs/libxkbfile-1.0.6 | ||
27 | >= x11-libs/libXdmcp-1.0.3 | ||
28 | >= x11-libs/libXmu-1.0.5 | ||
29 | >= x11-libs/libXrender-0.9.5 | ||
30 | >= x11-libs/libXi-1.3 | ||
31 | >= media-libs/freetype-2.3.9 | ||
32 | == media-libs/mesa-${MESA_PVER} | ||
33 | >= media-fonts/font-misc-misc-1 | ||
34 | >= media-fonts/font-cursor-misc-1 | ||
35 | >= x11-misc/xbitmaps-1.1.0 | ||
36 | >= x11-misc/xkeyboard-config-1.7 | ||
37 | >= x11-apps/iceauth-1.0.3 | ||
38 | >= x11-apps/rgb-1.0.3 | ||
39 | >= x11-apps/xauth-1.0.4 | ||
40 | >= x11-apps/xinit-1.1.1 | ||
41 | >= x11-libs/libXaw-1.0.7 | ||
42 | >= x11-libs/libXpm-3.5.8 | ||
43 | >= x11-libs/libXxf86misc-1.0.2 | ||
44 | >= x11-libs/libXxf86vm-1.1.0 | ||
45 | >= x11-libs/libdmx-1.1.0 | ||
46 | >= x11-libs/libXtst-1.1.0 | ||
47 | >= x11-libs/libXres-1.0.4 | ||
48 | >= x11-libs/libxkbui-1.0.2 | ||
49 | >= x11-libs/libXinerama-1.1 | ||
50 | >= x11-base/opengl-update-magellan-2.2.10 | ||
51 | >= sys-fs/udev-151 | ||
52 | >= x11-libs/pixman-0.16.2 | ||
53 | >= x11-libs/libpciaccess-0.10.9 | ||
54 | >= dev-libs/openssl-0.9.8k" | ||
55 | |||
56 | SDEPEND=">= x11-libs/xtrans-1.2.5 | ||
57 | >= x11-proto/randrproto-1.3.1 | ||
58 | >= x11-proto/renderproto-0.11 | ||
59 | >= x11-proto/fixesproto-4.1.1 | ||
60 | >= x11-proto/damageproto-1.2.0 | ||
61 | >= x11-proto/xextproto-7.1.1 | ||
62 | >= x11-proto/xproto-7.0.16 | ||
63 | >= x11-proto/xf86dgaproto-2.1 | ||
64 | >= x11-proto/xf86miscproto-0.9.3 | ||
65 | >= x11-proto/xf86vidmodeproto-2.3 | ||
66 | >= x11-proto/xf86bigfontproto-1.2.0 | ||
67 | >= x11-proto/compositeproto-0.4.1 | ||
68 | >= x11-proto/recordproto-1.14 | ||
69 | >= x11-proto/resourceproto-1.1.0 | ||
70 | >= x11-proto/videoproto-2.3.0 | ||
71 | >= x11-proto/scrnsaverproto-1.2.0 | ||
72 | >= x11-proto/evieext-1.1.0 | ||
73 | >= x11-proto/xineramaproto-1.2 | ||
74 | >= x11-proto/fontsproto-2.1.0 | ||
75 | >= x11-proto/kbproto-1.0.4 | ||
76 | >= x11-proto/inputproto-2.0 | ||
77 | >= x11-proto/bigreqsproto-1.1.0 | ||
78 | >= x11-proto/xcmiscproto-1.2.0 | ||
79 | >= x11-proto/glproto-1.4.10 | ||
80 | >= x11-proto/dmxproto-2.3 | ||
81 | >= x11-proto/xf86driproto-2.1.0 | ||
82 | >= x11-proto/dri2proto-2.1 | ||
83 | >= x11-libs/libdrm-2.4.15 | ||
84 | >= x11-apps/mkfontdir-1.0.5 | ||
85 | >= x11-apps/mkfontscale-1.0.7" | ||
86 | |||
87 | SRC_URI=( ${SRC_URI[*]} | ||
88 | mirror://${PNAME}/${SRCFILE} | ||
89 | ftp://ftp.freedesktop.org/pub/mesa/${MESA_PVER}/${MESA_SRCFILE} | ||
90 | sourceforge://mesa3d/${MESA_SRCFILE} | ||
91 | mirror://mesa/${MESA_SRCFILE} | ||
92 | mirror://${PNAME}/${PNAME}-1.4-fpic-libxf86config.patch | ||
93 | mirror://${PNAME}/${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch | ||
94 | ) | ||
95 | |||
96 | UP2SUBDIR="xserver" | ||
97 | UP2DATE="updatecmd_xorg ${PNAME}" | ||
98 | |||
99 | src_prepare() | ||
100 | { | ||
101 | # must use mesa as opengl-headers! | ||
102 | [[ $(opengl-update --get-implementation) != xorg ]] && | ||
103 | die "please change to xorg opengl-headers: opengl-update xorg" | ||
104 | |||
105 | munpack ${SRCFILE} || die | ||
106 | munpack ${MESA_SRCFILE} || die | ||
107 | cd ${SRCDIR} | ||
108 | |||
109 | # fixes fpic issues with libxf86config on 64bit systems | ||
110 | mpatch ${PNAME}-1.4-fpic-libxf86config.patch || die | ||
111 | |||
112 | # adopted from redhat; use a black background | ||
113 | mpatch ${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch || die | ||
114 | |||
115 | # fix build issues, some wrapper files which should be generated | ||
116 | # at build time exist and the makefile doesn't whipe them. we patch | ||
117 | # the makefile to clean them and whipe these wrapper files | ||
118 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die | ||
119 | |||
120 | # fix xorg.conf.d location | ||
121 | sed -i 's:^\(@CONFIG_UDEV_TRUE@xorgconfddir =\).*:\1 $(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.in || die | ||
122 | sed -i 's:^\(xorgconfddir =\).*: \1$(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.am || die | ||
123 | |||
124 | autoreconf --verbose --install --force || die | ||
125 | } | ||
126 | |||
127 | src_compile() | ||
128 | { | ||
129 | cd ${SRCDIR} | ||
130 | |||
131 | xorg_src_configure \ | ||
132 | --with-mesa-source=${MESA_SRCDIR} \ | ||
133 | --sysconfdir=/etc \ | ||
134 | --localstatedir=/var \ | ||
135 | --with-xkb-output=/var/lib/xkb \ | ||
136 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ | ||
137 | --enable-install-setuid \ | ||
138 | --enable-ipv6 \ | ||
139 | --enable-dmx \ | ||
140 | --enable-xvfb \ | ||
141 | --enable-xnest \ | ||
142 | --enable-dri \ | ||
143 | --enable-dri2 \ | ||
144 | --enable-xorg \ | ||
145 | --enable-xtrap \ | ||
146 | --enable-xevie \ | ||
147 | --disable-xprint \ | ||
148 | --enable-glx-tls \ | ||
149 | --disable-static \ | ||
150 | --disable-config-dbus \ | ||
151 | --disable-config-hal \ | ||
152 | --enable-config-udev \ | ||
153 | || die | ||
154 | |||
155 | mmake || die | ||
156 | } | ||
157 | |||
158 | src_install() | ||
159 | { | ||
160 | xorg_src_install || die | ||
161 | |||
162 | # needed directories | ||
163 | minstalldir /usr/bin || die | ||
164 | minstalldir /usr/$(mlibdir)/opengl/xorg/extensions || die | ||
165 | |||
166 | # dynamic opengl setup | ||
167 | local i | ||
168 | for i in ${BINDIR}/usr/$(mlibdir)/xorg/modules/libglx* \ | ||
169 | ${BINDIR}/usr/$(mlibdir)/xorg/modules/libdri* | ||
170 | do | ||
171 | if [ -f ${i} -o -L ${i} ] | ||
172 | then | ||
173 | mv -f ${i} ${BINDIR}/usr/$(mlibdir)/opengl/xorg/extensions || die "${i}" | ||
174 | fi | ||
175 | done | ||
176 | |||
177 | # missing symlink | ||
178 | mlink Xorg /usr/bin/X || die | ||
179 | } | ||
180 | |||
181 | preinstall() | ||
182 | { | ||
183 | # fix some deprecated symlinks from ancient xorg-1.5 servers | ||
184 | if [ -L ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libdri.so ] | ||
185 | then | ||
186 | rm ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libdri.so | ||
187 | fi | ||
188 | |||
189 | if [ -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libdri.so ] | ||
190 | then | ||
191 | rm ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libdri.so | ||
192 | fi | ||
193 | |||
194 | if [ -L ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libglx.so ] | ||
195 | then | ||
196 | rm ${MROOT}/usr/$(mlibdir)/xorg/modules/extensions/libglx.so | ||
197 | fi | ||
198 | |||
199 | if [ -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libglx.so ] | ||
200 | then | ||
201 | rm ${MROOT}/usr/$(mlibdir)/opengl/xorg/extensions/libglx.so | ||
202 | fi | ||
203 | } | ||
204 | |||
205 | postinstall() | ||
206 | { | ||
207 | ${MROOT}/usr/sbin/opengl-update --use-old xorg | ||
208 | } | ||
209 | |||
210 | postremove() | ||
211 | { | ||
212 | # get rid of module dir to ensure opengl-update works properbly | ||
213 | if [ -e ${MROOT}/usr/$(mlibdir)/xorg/modules ] | ||
214 | then | ||
215 | if [[ -z $(magequery -n xorg-server) ]] | ||
216 | then | ||
217 | rm -rf ${MROOT}/usr/$(mlibdir)/xorg/modules | ||
218 | fi | ||
219 | fi | ||
220 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |