Annotation of /smage/trunk/core/xorg-server/xorg-server-1.20.9-r1.smage2
Parent Directory | Revision Log
Revision 15376 -
(hide annotations)
(download)
Fri Aug 28 08:28:49 2020 UTC (4 years ago) by niro
File size: 6540 byte(s)
Fri Aug 28 08:28:49 2020 UTC (4 years ago) by niro
File size: 6540 byte(s)
auto added: ver bump to 1.20.9-r1
1 | niro | 15376 | # $Id$ |
2 | |||
3 | PNAME="xorg-server" | ||
4 | PVER="1.20.9" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | SPLIT_PACKAGES="xorg-server xvfb xorg-server-dev" | ||
8 | |||
9 | PCAT="x11-base" | ||
10 | |||
11 | DESCRIPTION="Modular X.Org X Server." | ||
12 | HOMEPAGE="http://xorg.freedesktop.org" | ||
13 | |||
14 | # mesa sources are needed to compile opengl extensions | ||
15 | MESA_PVER="20.1.6" | ||
16 | MESA_SRCFILE="mesa-${MESA_PVER/_/-}.tar.xz" | ||
17 | MESA_SRCDIR="${BUILDDIR}/mesa-${MESA_PVER/_/-}" | ||
18 | |||
19 | PROVIDE="virtual/x11" | ||
20 | |||
21 | # see hw/xfree86/common/xf86Module.h for ABI versions | ||
22 | # or installed pkg-config file | ||
23 | PROVIDE+="virtual/X-ABI-VIDEODRV-24.0 virtual/X-ABI-XINPUT-24.1 virtual/X-ABI-EXTENSION-10.0" | ||
24 | |||
25 | DEPEND=">= x11-libs/libXfont2-2.0 | ||
26 | >= x11-libs/libXau-1.0.9 | ||
27 | >= x11-libs/libXdmcp-1.1 | ||
28 | >= x11-libs/pixman-0.40 | ||
29 | >= media-libs/freetype-2.6 | ||
30 | >= media-fonts/font-misc-misc-1 | ||
31 | >= app-crypt/libgcrypt-1.8 | ||
32 | >= app-crypt/libgpg-error-1.38 | ||
33 | >= sys-libs/libsystemd-242 | ||
34 | >= sys-fs/udev-242 | ||
35 | >= sys-apps/dbus-x11-1.12 | ||
36 | >= x11-libs/libXext-1.3 | ||
37 | >= x11-libs/libX11-1.6 | ||
38 | >= x11-libs/libXi-1.7 | ||
39 | == media-libs/mesa-${MESA_PVER} | ||
40 | >= media-libs/libepoxy-1.5 | ||
41 | >= sys-libs/libunwind-1.4 | ||
42 | >= x11-libs/libxshmfence-1.3 | ||
43 | >= x11-misc/xkeyboard-config-2.30 | ||
44 | >= x11-apps/iceauth-1.0.8 | ||
45 | >= x11-apps/rgb-1.0.6 | ||
46 | >= x11-apps/xauth-1.1 | ||
47 | >= x11-libs/libpciaccess-0.16" | ||
48 | #>= media-fonts/font-cursor-misc-1 | ||
49 | # >= x11-apps/xinit-1.3 | ||
50 | |||
51 | XVFB_DEPEND="${DEPEND}" | ||
52 | |||
53 | ALX_DEV_DEPEND="== x11-proto/xorg-protos-7.7.${PVER} | ||
54 | >= x11-libs/pixman-dev-0.40 | ||
55 | >= x11-libs/libpciaccess-dev-0.16 | ||
56 | >= x11-libs/libdrm-dev-2.4.102 | ||
57 | == media-libs/mesa-dev-${MESA_PVER} | ||
58 | >= x11-libs/libglvnd-dev-1.3 | ||
59 | >= x11-libs/libxkbfile-dev-1 | ||
60 | >= x11-libs/libXfont2-dev-2.0 | ||
61 | >= sys-libs/libunwind-dev-1.4 | ||
62 | >= app-crypt/libgcrypt-dev-1.8 | ||
63 | >= app-crypt/libgpg-error-dev-1.38 | ||
64 | >= x11-apps/rgb-dev-1.0.6" | ||
65 | |||
66 | SDEPEND=">= media-fonts/font-util-1.3 | ||
67 | >= x11-libs/libdrm-2.4.102 | ||
68 | >= x11-libs/libXtst-1.2 | ||
69 | >= x11-libs/libXres-1.0.7 | ||
70 | >= x11-libs/xcb-util-image-0.4 | ||
71 | >= x11-libs/xcb-util-keysyms-0.4 | ||
72 | >= x11-libs/xcb-util-wm-0.3.9 | ||
73 | >= x11-libs/libxkbfile-1 | ||
74 | ${ALX_DEV_DEPEND} | ||
75 | >= x11-libs/libXau-dev-1.0.8 | ||
76 | >= x11-libs/libXdmcp-dev-1.1 | ||
77 | >= media-libs/freetype-dev-2.6 | ||
78 | >= sys-apps/systemd-dev-242 | ||
79 | >= sys-fs/udev-dev-242 | ||
80 | >= sys-apps/dbus-dev-1.12 | ||
81 | >= x11-libs/libXext-dev-1.3 | ||
82 | >= x11-libs/libX11-dev-1.6 | ||
83 | >= x11-libs/libXi-dev-1.7 | ||
84 | >= media-libs/libepoxy-dev-1.5 | ||
85 | >= x11-libs/libxshmfence-dev-1.3 | ||
86 | >= x11-libs/libXtst-dev-1.2 | ||
87 | >= x11-libs/libXres-dev-1.0.7 | ||
88 | >= x11-libs/xcb-util-image-dev-0.4 | ||
89 | >= x11-libs/xcb-util-keysyms-dev-0.4 | ||
90 | >= x11-libs/xcb-util-wm-dev-0.3.9" | ||
91 | |||
92 | # base files | ||
93 | ALX_PKG_KEEP="etc/X11 | ||
94 | usr/bin/X | ||
95 | usr/bin/Xorg* | ||
96 | usr/$(mlibdir)/${PNAME} | ||
97 | usr/$(mlibdir)/xorg/protocol.txt | ||
98 | var/lib/xkb/README.compiled" | ||
99 | |||
100 | # generic modules | ||
101 | ALX_PKG_KEEP+=" | ||
102 | usr/$(mlibdir)/xorg/modules/libvgahw.so | ||
103 | usr/$(mlibdir)/xorg/modules/libvbe.so | ||
104 | usr/$(mlibdir)/xorg/modules/libshadow.so | ||
105 | usr/$(mlibdir)/xorg/modules/libexa.so | ||
106 | usr/$(mlibdir)/xorg/modules/libint10.so | ||
107 | usr/$(mlibdir)/xorg/modules/libfb.so | ||
108 | usr/$(mlibdir)/xorg/modules/libshadowfb.so | ||
109 | usr/$(mlibdir)/xorg/modules/libglamoregl.so | ||
110 | usr/$(mlibdir)/xorg/modules/libfbdevhw.so" | ||
111 | |||
112 | # generic extensions | ||
113 | ALX_PKG_KEEP+=" usr/$(mlibdir)/xorg/modules/extensions/libextmod.so | ||
114 | usr/$(mlibdir)/xorg/modules/extensions/libdbe.so | ||
115 | usr/$(mlibdir)/xorg/modules/extensions/libglx.so | ||
116 | usr/$(mlibdir)/xorg/modules/extensions/libdri.so | ||
117 | usr/$(mlibdir)/xorg/modules/extensions/libdri2.so | ||
118 | usr/$(mlibdir)/xorg/modules/extensions/librecord.so" | ||
119 | |||
120 | # other drivers | ||
121 | ALX_PKG_KEEP+=" usr/$(mlibdir)/xorg/modules/drivers | ||
122 | usr/$(mlibdir)/xorg/modules/drivers/extensions | ||
123 | usr/$(mlibdir)/xorg/modules/drivers/input | ||
124 | usr/$(mlibdir)/xorg/modules/drivers/linux | ||
125 | usr/$(mlibdir)/xorg/modules/drivers/multimedia" | ||
126 | |||
127 | # libwfb module is needed by the proprietary nvidia-drivers | ||
128 | ALX_PKG_KEEP+=" usr/$(mlibdir)/xorg/modules/libwfb.so" | ||
129 | |||
130 | # keep cvt and gtf for modline calculating | ||
131 | ALX_PKG_KEEP+=" usr/bin/cvt usr/bin/gtf" | ||
132 | |||
133 | UP2SUBDIR="xserver" | ||
134 | sminclude xorg mtools alx-split | ||
135 | |||
136 | SRC_URI=( ${SRC_URI[*]} | ||
137 | mirror://${PNAME}/${SRCFILE} | ||
138 | ftp://ftp.freedesktop.org/pub/mesa/${MESA_PVER}/${MESA_SRCFILE} | ||
139 | ftp://ftp.freedesktop.org/pub/mesa/${MESA_SRCFILE} | ||
140 | #sourceforge://mesa3d/${MESA_SRCFILE} | ||
141 | mirror://mesa/${MESA_SRCFILE} | ||
142 | mirror://${PNAME}/xvfb-run | ||
143 | mirror://${PNAME}/${PNAME}-1.12.3-die-ugly-pattern-die-die-die.patch | ||
144 | ) | ||
145 | |||
146 | split_info_xvfb() | ||
147 | { | ||
148 | DESCRIPTION="A virtual framebuffer X11 server." | ||
149 | DEPEND="${XVFB_DEPEND}" | ||
150 | } | ||
151 | |||
152 | src_prepare() | ||
153 | { | ||
154 | munpack ${SRCFILE} || die | ||
155 | munpack ${MESA_SRCFILE} || die | ||
156 | cd ${SRCDIR} | ||
157 | |||
158 | # adopted from redhat; use a black background | ||
159 | mpatch ${PNAME}-1.12.3-die-ugly-pattern-die-die-die.patch || die | ||
160 | |||
161 | # fix build issues, some wrapper files which should be generated | ||
162 | # at build time exist and the makefile doesn't whipe them. we patch | ||
163 | # the makefile to clean them and whipe these wrapper files | ||
164 | rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die | ||
165 | |||
166 | # fix xorg.conf.d location | ||
167 | sed -i 's:^\(@CONFIG_UDEV_TRUE@xorgconfddir =\).*:\1 $(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.in || die | ||
168 | sed -i 's:^\(xorgconfddir =\).*: \1$(sysconfdir)/X11/$(XF86CONFIGDIR):' config/Makefile.am || die | ||
169 | |||
170 | mautoreconf || die | ||
171 | } | ||
172 | |||
173 | src_compile() | ||
174 | { | ||
175 | cd ${SRCDIR} | ||
176 | |||
177 | xorg_src_configure \ | ||
178 | --with-mesa-source=${MESA_SRCDIR} \ | ||
179 | --sysconfdir=/etc \ | ||
180 | --localstatedir=/var \ | ||
181 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ | ||
182 | --with-xkb-output=/var/lib/xkb \ | ||
183 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ | ||
184 | --disable-install-setuid \ | ||
185 | --enable-suid-wrapper \ | ||
186 | --enable-ipv6 \ | ||
187 | --enable-xorg \ | ||
188 | --disable-dmx \ | ||
189 | --enable-xvfb \ | ||
190 | --disable-xnest \ | ||
191 | --enable-dri \ | ||
192 | --enable-dri2 \ | ||
193 | --enable-dri3 \ | ||
194 | --enable-glamor \ | ||
195 | --enable-xtrap \ | ||
196 | --enable-xevie \ | ||
197 | --enable-xcsecurity \ | ||
198 | --enable-libunwind \ | ||
199 | --disable-xprint \ | ||
200 | --enable-glx-tls \ | ||
201 | --enable-glx \ | ||
202 | --disable-static \ | ||
203 | --disable-config-dbus \ | ||
204 | --disable-config-hal \ | ||
205 | --enable-config-udev \ | ||
206 | --enable-composite \ | ||
207 | --enable-xinerama \ | ||
208 | --enable-systemd-logind \ | ||
209 | --with-sha1=libgcrypt \ | ||
210 | || die | ||
211 | |||
212 | mmake || die | ||
213 | } | ||
214 | |||
215 | alx_generic_src_install() | ||
216 | { | ||
217 | xorg_src_install || die | ||
218 | |||
219 | # needed directories | ||
220 | minstalldir /usr/bin || die | ||
221 | |||
222 | # missing symlink | ||
223 | mlink Xorg /usr/bin/X || die | ||
224 | |||
225 | # xvfb | ||
226 | mdelete /usr/bin/Xvfb || die | ||
227 | } | ||
228 | |||
229 | src_install_xvfb() | ||
230 | { | ||
231 | cd ${SRCDIR} | ||
232 | |||
233 | minstallexec hw/vfb/Xvfb || die | ||
234 | |||
235 | # xvfb-run script to ease things | ||
236 | minstallexec -s xvfb-run || die | ||
237 | |||
238 | # needed directory | ||
239 | mkeepdir /usr/share/X11/xkb/compiled || die | ||
240 | } | ||
241 | |||
242 | postinstall_xorg-server() | ||
243 | { | ||
244 | # provided by xf86-input-evdev now | ||
245 | if [ -f ${MROOT}/etc/X11/xorg.conf.d/10-evdev.conf ] | ||
246 | then | ||
247 | rm ${MROOT}/etc/X11/xorg.conf.d/10-evdev.conf | ||
248 | fi | ||
249 | } |