2007-08-10 21:07:51 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# xserver_xorg-server
|
2007-08-10 21:07:51 +02:00
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-04-21 19:04:38 +02:00
|
|
|
XSERVER_XORG_SERVER_VERSION = $(call qstrip,$(BR2_PACKAGE_XSERVER_XORG_SERVER_VERSION))
|
2007-08-10 21:07:51 +02:00
|
|
|
XSERVER_XORG_SERVER_SOURCE = xorg-server-$(XSERVER_XORG_SERVER_VERSION).tar.bz2
|
2017-03-04 20:54:53 +01:00
|
|
|
XSERVER_XORG_SERVER_SITE = https://xorg.freedesktop.org/archive/individual/xserver
|
2013-05-09 07:51:03 +02:00
|
|
|
XSERVER_XORG_SERVER_LICENSE = MIT
|
|
|
|
XSERVER_XORG_SERVER_LICENSE_FILES = COPYING
|
2010-05-30 20:11:23 +02:00
|
|
|
XSERVER_XORG_SERVER_INSTALL_STAGING = YES
|
2015-08-08 13:59:04 +02:00
|
|
|
# xfont_font-util is needed only for autoreconf
|
|
|
|
XSERVER_XORG_SERVER_AUTORECONF = YES
|
2017-03-26 17:05:43 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES = \
|
|
|
|
xfont_font-util \
|
|
|
|
xutil_util-macros \
|
|
|
|
xlib_libX11 \
|
|
|
|
xlib_libXau \
|
|
|
|
xlib_libXdmcp \
|
|
|
|
xlib_libXext \
|
|
|
|
xlib_libXfixes \
|
|
|
|
xlib_libXi \
|
|
|
|
xlib_libXrender \
|
|
|
|
xlib_libXres \
|
|
|
|
xlib_libXft \
|
|
|
|
xlib_libXcursor \
|
|
|
|
xlib_libXinerama \
|
|
|
|
xlib_libXrandr \
|
|
|
|
xlib_libXdamage \
|
|
|
|
xlib_libXxf86vm \
|
|
|
|
xlib_libxkbfile \
|
|
|
|
xlib_xtrans \
|
|
|
|
xdata_xbitmaps \
|
2018-07-21 16:16:43 +02:00
|
|
|
xorgproto \
|
2017-03-26 17:05:43 +02:00
|
|
|
xkeyboard-config \
|
|
|
|
pixman \
|
|
|
|
mcookie \
|
2012-10-22 17:47:52 +02:00
|
|
|
host-pkgconf
|
2009-03-16 16:47:44 +01:00
|
|
|
|
2016-05-06 02:08:27 +02:00
|
|
|
# We force -O2 regardless of the optimization level chosen by the
|
|
|
|
# user, as the X.org server is known to trigger some compiler bugs at
|
|
|
|
# -Os on several architectures.
|
2014-12-24 08:54:24 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS = \
|
|
|
|
--disable-config-hal \
|
2018-07-21 16:16:43 +02:00
|
|
|
--enable-record \
|
2014-12-24 08:54:24 +01:00
|
|
|
--disable-xnest \
|
|
|
|
--disable-xephyr \
|
|
|
|
--disable-dmx \
|
2019-04-09 22:04:48 +02:00
|
|
|
--disable-unit-tests \
|
2014-12-24 08:54:24 +01:00
|
|
|
--with-builder-addr=buildroot@buildroot.org \
|
2016-05-06 02:08:27 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/pixman-1 -O2" \
|
2014-12-24 08:54:24 +01:00
|
|
|
--with-fontrootdir=/usr/share/fonts/X11/ \
|
|
|
|
--$(if $(BR2_PACKAGE_XSERVER_XORG_SERVER_XVFB),en,dis)able-xvfb
|
2008-06-30 14:55:29 +02:00
|
|
|
|
2015-03-31 22:41:02 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
2015-04-09 11:14:32 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += \
|
2015-03-31 22:41:02 +02:00
|
|
|
--with-systemd-daemon \
|
|
|
|
--enable-systemd-logind
|
2016-11-29 15:36:58 +01:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += \
|
2018-07-21 16:16:43 +02:00
|
|
|
systemd
|
2015-03-31 22:41:02 +02:00
|
|
|
else
|
2015-04-09 11:14:32 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += \
|
2015-03-31 22:41:02 +02:00
|
|
|
--without-systemd-daemon \
|
|
|
|
--disable-systemd-logind
|
|
|
|
endif
|
|
|
|
|
2016-05-24 15:04:37 +02:00
|
|
|
# Xwayland support needs libdrm, libepoxy, wayland and libxcomposite
|
2016-12-27 16:00:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM)$(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_WAYLAND_PROTOCOLS)$(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),yyyyy)
|
2016-05-31 08:40:32 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-xwayland
|
2016-12-27 16:00:06 +01:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libdrm libepoxy wayland wayland-protocols xlib_libXcomposite
|
2016-05-24 15:04:37 +02:00
|
|
|
else
|
2016-05-31 08:40:32 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-xwayland
|
2016-05-24 15:04:37 +02:00
|
|
|
endif
|
|
|
|
|
2013-01-06 12:29:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-xorg
|
2015-02-15 14:19:32 +01:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libpciaccess
|
2015-08-08 13:59:05 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libdrm
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-libdrm
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-libdrm
|
|
|
|
endif
|
2008-06-30 14:55:29 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-xorg
|
2008-06-30 14:55:29 +02:00
|
|
|
endif
|
|
|
|
|
2013-01-06 12:29:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE),y)
|
2014-12-24 08:54:24 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += \
|
|
|
|
--enable-kdrive \
|
|
|
|
--enable-xfbdev \
|
|
|
|
--disable-glx \
|
|
|
|
--disable-dri \
|
|
|
|
--disable-xsdl
|
2010-11-04 09:58:33 +01:00
|
|
|
define XSERVER_CREATE_X_SYMLINK
|
2014-10-23 10:43:37 +02:00
|
|
|
ln -f -s Xfbdev $(TARGET_DIR)/usr/bin/X
|
2010-11-04 09:58:33 +01:00
|
|
|
endef
|
|
|
|
XSERVER_XORG_SERVER_POST_INSTALL_TARGET_HOOKS += XSERVER_CREATE_X_SYMLINK
|
2013-01-06 12:29:18 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_EVDEV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-kdrive-evdev
|
2008-06-30 14:55:29 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive-evdev
|
2013-01-06 12:29:18 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_KBD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-kdrive-kbd
|
2013-01-06 12:29:18 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive-kbd
|
2013-01-06 12:29:18 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_MOUSE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-kdrive-mouse
|
2013-01-06 12:29:18 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive-mouse
|
2013-01-06 12:29:18 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
else # modular
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive --disable-xfbdev
|
2008-06-30 14:55:29 +02:00
|
|
|
endif
|
|
|
|
|
2016-03-22 22:29:01 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
|
2015-08-08 13:59:05 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri --enable-glx
|
2018-07-21 16:16:43 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += mesa3d
|
2010-04-29 22:24:18 +02:00
|
|
|
else
|
2015-08-08 13:59:05 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri --disable-glx
|
2010-04-29 22:24:18 +02:00
|
|
|
endif
|
|
|
|
|
2009-03-13 20:46:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_AIGLX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-aiglx
|
2009-03-13 20:46:03 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-aiglx
|
2009-03-13 20:46:03 +01:00
|
|
|
endif
|
|
|
|
|
2008-04-24 15:22:14 +02:00
|
|
|
# Optional packages
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TSLIB),y)
|
2008-04-24 15:22:14 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += tslib
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-tslib LDFLAGS="-lts"
|
2008-04-24 15:22:14 +02:00
|
|
|
endif
|
|
|
|
|
2014-02-07 14:21:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2012-09-23 04:18:20 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += udev
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-udev
|
2015-08-08 13:59:04 +02:00
|
|
|
# udev kms support depends on libdrm and dri2
|
2018-07-21 16:16:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
2015-08-08 13:59:05 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-udev-kms
|
2014-05-17 13:28:38 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-config-udev-kms
|
2014-05-17 13:28:38 +02:00
|
|
|
endif
|
2016-11-14 14:22:38 +01:00
|
|
|
endif
|
|
|
|
|
2009-03-16 16:48:07 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += dbus
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-dbus
|
2009-03-16 16:48:07 +01:00
|
|
|
endif
|
2012-09-22 15:18:27 +02:00
|
|
|
|
2009-03-16 16:48:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += freetype
|
|
|
|
endif
|
|
|
|
|
2015-02-15 19:10:59 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
2014-04-06 23:52:05 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libunwind
|
2014-12-05 12:17:02 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-libunwind
|
2014-04-06 23:52:05 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-libunwind
|
2014-04-06 23:52:05 +02:00
|
|
|
endif
|
|
|
|
|
2016-12-03 12:58:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFONT2),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libXfont2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFONT),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libXfont
|
|
|
|
endif
|
|
|
|
|
2010-04-14 19:06:40 +02:00
|
|
|
ifneq ($(BR2_PACKAGE_XLIB_LIBXVMC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-xvmc
|
2010-04-14 19:06:40 +02:00
|
|
|
endif
|
|
|
|
|
2014-10-08 22:26:35 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libXcomposite
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-composite
|
2010-04-14 19:06:40 +02:00
|
|
|
endif
|
|
|
|
|
2013-01-06 12:29:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri2
|
2018-07-21 16:16:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXSHMFENCE),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libxshmfence
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri3
|
2017-09-23 13:30:18 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGL)$(BR2_PACKAGE_LIBEPOXY),yyy)
|
2015-02-07 21:11:48 +01:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libepoxy
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-glamor
|
2016-12-17 07:34:48 +01:00
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-glamor
|
2015-02-07 21:11:48 +01:00
|
|
|
endif
|
2010-07-21 09:53:51 +02:00
|
|
|
else
|
2015-03-15 15:30:39 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri3 --disable-glamor
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri2 --disable-dri3 --disable-glamor
|
2010-07-21 09:53:51 +02:00
|
|
|
endif
|
2009-03-16 16:48:14 +01:00
|
|
|
|
2010-04-14 19:06:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXSCRNSAVER),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libXScrnSaver
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-screensaver
|
2010-04-14 19:06:40 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-screensaver
|
2010-04-14 19:06:40 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_XLIB_LIBDMX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-dmx
|
2010-04-14 19:06:40 +02:00
|
|
|
endif
|
|
|
|
|
xserver_xorg-server: provide more options for SHA1 library
Until now, the X.org server was forcefully selecting OpenSSL, just to
have a SHA1 implementation. However, in fact, the X.org server is
capable of using a SHA1 implementation from multiple libraries:
OpenSSL, libgcrypt and libsha1 amongst others.
So, this patch changes the X.org server package so that we use the
SHA1 functions from OpenSSL is OpenSSL is already available, or the
SHA1 functions from libgcrypt is libgcrypt is already available, or if
neither OpenSSL nor libgcrypt are enabled in the configuration, we
select the much smaller libsha1, that has been specifically written to
fulfill the X.org server requirements.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-01-06 12:29:24 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libcrypto
|
xserver_xorg-server: provide more options for SHA1 library
Until now, the X.org server was forcefully selecting OpenSSL, just to
have a SHA1 implementation. However, in fact, the X.org server is
capable of using a SHA1 implementation from multiple libraries:
OpenSSL, libgcrypt and libsha1 amongst others.
So, this patch changes the X.org server package so that we use the
SHA1 functions from OpenSSL is OpenSSL is already available, or the
SHA1 functions from libgcrypt is libgcrypt is already available, or if
neither OpenSSL nor libgcrypt are enabled in the configuration, we
select the much smaller libsha1, that has been specifically written to
fulfill the X.org server requirements.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-01-06 12:29:24 +01:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += openssl
|
|
|
|
else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libgcrypt
|
xserver_xorg-server: provide more options for SHA1 library
Until now, the X.org server was forcefully selecting OpenSSL, just to
have a SHA1 implementation. However, in fact, the X.org server is
capable of using a SHA1 implementation from multiple libraries:
OpenSSL, libgcrypt and libsha1 amongst others.
So, this patch changes the X.org server package so that we use the
SHA1 functions from OpenSSL is OpenSSL is already available, or the
SHA1 functions from libgcrypt is libgcrypt is already available, or if
neither OpenSSL nor libgcrypt are enabled in the configuration, we
select the much smaller libsha1, that has been specifically written to
fulfill the X.org server requirements.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-01-06 12:29:24 +01:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libgcrypt
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libsha1
|
xserver_xorg-server: provide more options for SHA1 library
Until now, the X.org server was forcefully selecting OpenSSL, just to
have a SHA1 implementation. However, in fact, the X.org server is
capable of using a SHA1 implementation from multiple libraries:
OpenSSL, libgcrypt and libsha1 amongst others.
So, this patch changes the X.org server package so that we use the
SHA1 functions from OpenSSL is OpenSSL is already available, or the
SHA1 functions from libgcrypt is libgcrypt is already available, or if
neither OpenSSL nor libgcrypt are enabled in the configuration, we
select the much smaller libsha1, that has been specifically written to
fulfill the X.org server requirements.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-01-06 12:29:24 +01:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libsha1
|
|
|
|
endif
|
|
|
|
|
2017-04-29 22:56:43 +02:00
|
|
|
define XSERVER_XORG_SERVER_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 package/x11r7/xserver_xorg-server/S40xorg \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S40xorg
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|