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-02-15 13:13:56 +01:00
|
|
|
XSERVER_XORG_SERVER_VERSION = 1.17.1
|
2007-08-10 21:07:51 +02:00
|
|
|
XSERVER_XORG_SERVER_SOURCE = xorg-server-$(XSERVER_XORG_SERVER_VERSION).tar.bz2
|
|
|
|
XSERVER_XORG_SERVER_SITE = http://xorg.freedesktop.org/releases/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
|
2009-07-17 14:46:19 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES = \
|
|
|
|
xutil_util-macros \
|
|
|
|
xlib_libXfont \
|
|
|
|
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 \
|
|
|
|
xproto_bigreqsproto \
|
|
|
|
xproto_compositeproto \
|
|
|
|
xproto_damageproto \
|
|
|
|
xproto_fixesproto \
|
|
|
|
xproto_fontsproto \
|
|
|
|
xproto_glproto \
|
|
|
|
xproto_inputproto \
|
|
|
|
xproto_kbproto \
|
2014-03-29 21:56:07 +01:00
|
|
|
xproto_presentproto \
|
2009-07-17 14:46:19 +02:00
|
|
|
xproto_randrproto \
|
|
|
|
xproto_renderproto \
|
|
|
|
xproto_resourceproto \
|
|
|
|
xproto_videoproto \
|
|
|
|
xproto_xcmiscproto \
|
|
|
|
xproto_xextproto \
|
|
|
|
xproto_xf86bigfontproto \
|
|
|
|
xproto_xf86dgaproto \
|
|
|
|
xproto_xf86vidmodeproto \
|
|
|
|
xproto_xproto \
|
2010-07-22 16:22:32 +02:00
|
|
|
xkeyboard-config \
|
2009-07-17 14:46:19 +02:00
|
|
|
pixman \
|
2011-07-25 08:44:26 +02:00
|
|
|
mcookie \
|
2012-10-22 17:47:52 +02:00
|
|
|
host-pkgconf
|
2009-03-16 16:47:44 +01:00
|
|
|
|
2014-12-24 08:54:24 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS = \
|
|
|
|
--disable-config-hal \
|
|
|
|
--disable-xnest \
|
|
|
|
--disable-xephyr \
|
|
|
|
--disable-dmx \
|
|
|
|
--with-builder-addr=buildroot@buildroot.org \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/pixman-1" \
|
|
|
|
--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
|
|
|
|
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
|
2014-10-18 19:41:30 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libpciaccess libdrm
|
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
|
|
|
|
|
2014-04-30 06:44:22 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri --enable-glx
|
2010-04-29 22:24:18 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += mesa3d xproto_xf86driproto
|
|
|
|
else
|
2014-09-27 21:32:44 +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
|
2014-05-17 13:28:38 +02:00
|
|
|
# udev kms support depends on libdrm
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libdrm
|
2014-09-27 21:32:44 +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
|
2012-09-23 04:18:20 +02:00
|
|
|
else
|
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
|
|
|
endif
|
|
|
|
|
2009-03-16 16:48:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += freetype
|
|
|
|
endif
|
|
|
|
|
2014-12-05 12:17:02 +01:00
|
|
|
# libunwind support is broken on all MIPS variants with 32-bit pointers
|
2014-11-29 23:10:35 +01:00
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=79939
|
2014-12-05 12:17:02 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUNWIND)-$(BR2_MIPS_OABI32)-$(BR2_MIPS_NABI32),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
|
|
|
|
|
2009-03-16 16:48:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XPROTO_RECORDPROTO),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xproto_recordproto
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-record
|
2012-09-25 14:44:03 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-record
|
2009-03-16 16:48:14 +01:00
|
|
|
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)
|
2010-02-28 10:33:37 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XPROTO_DRI2PROTO),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xproto_dri2proto
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri2
|
2010-02-28 10:33:37 +01:00
|
|
|
endif
|
2014-07-29 23:34:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XPROTO_DRI3PROTO),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libxshmfence xproto_dri3proto
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri3
|
2014-07-29 23:34:15 +02:00
|
|
|
endif
|
2015-02-07 21:11:48 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libepoxy
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --enable-glamor
|
|
|
|
endif
|
2010-07-21 09:53:51 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri2 --disable-dri3
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|