1 ################################################################################
5 ################################################################################
7 XSERVER_XORG_SERVER_VERSION
= $(call qstrip
,$(BR2_PACKAGE_XSERVER_XORG_SERVER_VERSION
))
8 XSERVER_XORG_SERVER_SOURCE
= xorg-server-
$(XSERVER_XORG_SERVER_VERSION
).
tar.bz2
9 XSERVER_XORG_SERVER_SITE
= http
://xorg.freedesktop.org
/releases
/individual
/xserver
10 XSERVER_XORG_SERVER_LICENSE
= MIT
11 XSERVER_XORG_SERVER_LICENSE_FILES
= COPYING
12 XSERVER_XORG_SERVER_INSTALL_STAGING
= YES
13 # xfont_font-util is needed only for autoreconf
14 XSERVER_XORG_SERVER_AUTORECONF
= YES
15 XSERVER_XORG_SERVER_DEPENDENCIES
= \
36 xproto_compositeproto \
45 xproto_resourceproto \
49 xproto_xf86bigfontproto \
51 xproto_xf86vidmodeproto \
58 # We force -O2 regardless of the optimization level chosen by the
59 # user, as the X.org server is known to trigger some compiler bugs at
60 # -Os on several architectures.
61 XSERVER_XORG_SERVER_CONF_OPTS
= \
62 --disable-config-hal \
66 --with-builder-addr
=buildroot@buildroot.org \
67 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/pixman-1 -O2" \
68 --with-fontrootdir
=/usr
/share
/fonts
/X11
/ \
69 --$(if
$(BR2_PACKAGE_XSERVER_XORG_SERVER_XVFB
),en
,dis
)able-xvfb
71 ifeq ($(BR2_PACKAGE_SYSTEMD
),y
)
72 XSERVER_XORG_SERVER_CONF_OPTS
+= \
73 --with-systemd-daemon \
74 --enable-systemd-logind
75 XSERVER_XORG_SERVER_DEPENDENCIES
+= \
79 XSERVER_XORG_SERVER_CONF_OPTS
+= \
80 --without-systemd-daemon \
81 --disable-systemd-logind
84 # Xwayland support needs libdrm, libepoxy, wayland and libxcomposite
85 ifeq ($(BR2_PACKAGE_LIBDRM
)$(BR2_PACKAGE_LIBEPOXY
)$(BR2_PACKAGE_WAYLAND
)$(BR2_PACKAGE_XLIB_LIBXCOMPOSITE
),yyyy
)
86 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-xwayland
87 XSERVER_XORG_SERVER_DEPENDENCIES
+= libdrm libepoxy wayland xlib_libXcomposite
89 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-xwayland
92 # Present protocol only required for xserver 1.15+, but does not matter if
93 # enabled for older versions as they don't use it (not even optionally).
94 ifeq ($(BR2_PACKAGE_XPROTO_PRESENTPROTO
),y
)
95 XSERVER_XORG_SERVER_DEPENDENCIES
+= xproto_presentproto
98 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR
),y
)
99 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-xorg
100 XSERVER_XORG_SERVER_DEPENDENCIES
+= libpciaccess
101 ifeq ($(BR2_PACKAGE_LIBDRM
),y
)
102 XSERVER_XORG_SERVER_DEPENDENCIES
+= libdrm
103 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-libdrm
105 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-libdrm
108 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-xorg
111 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE
),y
)
112 XSERVER_XORG_SERVER_CONF_OPTS
+= \
118 define XSERVER_CREATE_X_SYMLINK
119 ln
-f
-s Xfbdev
$(TARGET_DIR
)/usr
/bin
/X
121 XSERVER_XORG_SERVER_POST_INSTALL_TARGET_HOOKS
+= XSERVER_CREATE_X_SYMLINK
123 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_EVDEV
),y
)
124 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-kdrive-evdev
126 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-kdrive-evdev
129 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_KBD
),y
)
130 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-kdrive-kbd
132 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-kdrive-kbd
135 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_MOUSE
),y
)
136 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-kdrive-mouse
138 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-kdrive-mouse
142 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-kdrive
--disable-xfbdev
145 ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER
),y
)
146 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-dri
--enable-glx
147 XSERVER_XORG_SERVER_DEPENDENCIES
+= mesa3d xproto_xf86driproto
149 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-dri
--disable-glx
152 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_AIGLX
),y
)
153 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-aiglx
155 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-aiglx
159 ifeq ($(BR2_PACKAGE_TSLIB
),y
)
160 XSERVER_XORG_SERVER_DEPENDENCIES
+= tslib
161 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-tslib LDFLAGS
="-lts"
164 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
165 XSERVER_XORG_SERVER_DEPENDENCIES
+= udev
166 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-config-udev
167 # udev kms support depends on libdrm and dri2
168 ifeq ($(BR2_PACKAGE_LIBDRM
)$(BR2_PACKAGE_XPROTO_DRI2PROTO
),yy
)
169 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-config-udev-kms
171 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-config-udev-kms
175 ifeq ($(BR2_PACKAGE_DBUS
),y
)
176 XSERVER_XORG_SERVER_DEPENDENCIES
+= dbus
177 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-config-dbus
180 ifeq ($(BR2_PACKAGE_FREETYPE
),y
)
181 XSERVER_XORG_SERVER_DEPENDENCIES
+= freetype
184 ifeq ($(BR2_PACKAGE_LIBUNWIND
),y
)
185 XSERVER_XORG_SERVER_DEPENDENCIES
+= libunwind
186 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-libunwind
188 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-libunwind
191 ifeq ($(BR2_PACKAGE_XPROTO_RECORDPROTO
),y
)
192 XSERVER_XORG_SERVER_DEPENDENCIES
+= xproto_recordproto
193 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-record
195 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-record
198 ifeq ($(BR2_PACKAGE_XLIB_LIBXFONT2
),y
)
199 XSERVER_XORG_SERVER_DEPENDENCIES
+= xlib_libXfont2
202 ifeq ($(BR2_PACKAGE_XLIB_LIBXFONT
),y
)
203 XSERVER_XORG_SERVER_DEPENDENCIES
+= xlib_libXfont
206 ifneq ($(BR2_PACKAGE_XLIB_LIBXVMC
),y
)
207 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-xvmc
210 ifeq ($(BR2_PACKAGE_XLIB_LIBXCOMPOSITE
),y
)
211 XSERVER_XORG_SERVER_DEPENDENCIES
+= xlib_libXcomposite
213 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-composite
216 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR
),y
)
217 ifeq ($(BR2_PACKAGE_XPROTO_DRI2PROTO
),y
)
218 XSERVER_XORG_SERVER_DEPENDENCIES
+= xproto_dri2proto
219 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-dri2
221 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-dri2
223 ifeq ($(BR2_PACKAGE_XPROTO_DRI3PROTO
),y
)
224 XSERVER_XORG_SERVER_DEPENDENCIES
+= xlib_libxshmfence xproto_dri3proto
225 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-dri3
226 ifeq ($(BR2_PACKAGE_HAS_LIBGL
)$(BR2_PACKAGE_LIBEPOXY
),yy
)
227 XSERVER_XORG_SERVER_DEPENDENCIES
+= libepoxy
228 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-glamor
230 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-glamor
233 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-dri3
--disable-glamor
236 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-dri2
--disable-dri3
--disable-glamor
239 ifeq ($(BR2_PACKAGE_XLIB_LIBXSCRNSAVER
),y
)
240 XSERVER_XORG_SERVER_DEPENDENCIES
+= xlib_libXScrnSaver
241 XSERVER_XORG_SERVER_CONF_OPTS
+= --enable-screensaver
243 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-screensaver
246 ifneq ($(BR2_PACKAGE_XLIB_LIBDMX
),y
)
247 XSERVER_XORG_SERVER_CONF_OPTS
+= --disable-dmx
250 ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
251 XSERVER_XORG_SERVER_CONF_OPTS
+= --with-sha1
=libcrypto
252 XSERVER_XORG_SERVER_DEPENDENCIES
+= openssl
253 else ifeq ($(BR2_PACKAGE_LIBGCRYPT
),y
)
254 XSERVER_XORG_SERVER_CONF_OPTS
+= --with-sha1
=libgcrypt
255 XSERVER_XORG_SERVER_DEPENDENCIES
+= libgcrypt
257 XSERVER_XORG_SERVER_CONF_OPTS
+= --with-sha1
=libsha1
258 XSERVER_XORG_SERVER_DEPENDENCIES
+= libsha1
261 $(eval
$(autotools-package
))