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