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
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-07-19 15:53:23 +02:00
|
|
|
XSERVER_XORG_SERVER_VERSION = 1.16.0
|
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
|
|
|
|
2009-03-16 16:48:14 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT = --disable-config-hal \
|
2012-04-10 10:24:07 +02:00
|
|
|
--disable-xnest --disable-xephyr --disable-dmx \
|
2014-02-12 17:54:57 +01:00
|
|
|
--with-builder-addr=buildroot@buildroot.org \
|
2010-11-27 21:52:14 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/pixman-1" \
|
2014-05-13 15:59:49 +02:00
|
|
|
--with-fontrootdir=/usr/share/fonts/X11/ --localstatedir=/var \
|
2012-04-10 10:24:07 +02:00
|
|
|
--$(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)
|
2010-11-07 21:02:38 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-xorg
|
2010-07-20 23:29:42 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libpciaccess libdrm
|
2008-06-30 14:55:29 +02:00
|
|
|
else
|
2009-03-16 16:47:44 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --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)
|
2010-07-24 20:34:03 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-kdrive --enable-xfbdev \
|
|
|
|
--disable-glx --disable-dri --disable-xsdl
|
2010-11-04 09:58:33 +01:00
|
|
|
define XSERVER_CREATE_X_SYMLINK
|
|
|
|
ln -f -s Xfbdev $(TARGET_DIR)/usr/bin/X
|
|
|
|
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)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-kdrive-evdev
|
2008-06-30 14:55:29 +02:00
|
|
|
else
|
2013-01-06 12:29:18 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-kdrive-evdev
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_KBD),y)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-kdrive-kbd
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-kdrive-kbd
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_MOUSE),y)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-kdrive-mouse
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-kdrive-mouse
|
|
|
|
endif
|
|
|
|
|
|
|
|
else # modular
|
2009-03-16 16:47:44 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --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)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-dri --enable-glx
|
2010-04-29 22:24:18 +02:00
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += mesa3d xproto_xf86driproto
|
|
|
|
else
|
2014-04-30 06:44:22 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-dri --disable-glx
|
2010-04-29 22:24:18 +02:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_NULL_CURSOR),y)
|
2009-03-16 16:47:44 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-null-root-cursor
|
2008-09-10 15:16:23 +02:00
|
|
|
else
|
2009-03-16 16:47:44 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-null-root-cursor
|
2008-09-10 15:16:23 +02:00
|
|
|
endif
|
|
|
|
|
2009-03-13 20:46:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_AIGLX),y)
|
2009-03-16 16:47:44 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-aiglx
|
2009-03-13 20:46:03 +01:00
|
|
|
else
|
2009-03-16 16:47:44 +01:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --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
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-tslib LDFLAGS="-lts"
|
|
|
|
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
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --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
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-config-udev-kms
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-config-udev-kms
|
|
|
|
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
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-config-dbus
|
|
|
|
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-04-06 23:52:05 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libunwind
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-libunwind
|
|
|
|
endif
|
|
|
|
|
2009-03-16 16:48:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XPROTO_RECORDPROTO),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xproto_recordproto
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-record
|
2012-09-25 14:44:03 +02:00
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --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)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-xvmc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),y)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-composite
|
|
|
|
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
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-dri2
|
|
|
|
endif
|
2014-07-29 23:34:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XPROTO_DRI3PROTO),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libxshmfence xproto_dri3proto
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-dri3
|
|
|
|
endif
|
2010-07-21 09:53:51 +02:00
|
|
|
else
|
2014-07-29 23:34:15 +02:00
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --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
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-screensaver
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-screensaver
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_XLIB_LIBDMX),y)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-dmx
|
|
|
|
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)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --with-sha1=libcrypto
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += openssl
|
|
|
|
else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --with-sha1=libgcrypt
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libgcrypt
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --with-sha1=libsha1
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += libsha1
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|