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
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2013-04-26 11:49:20 +02:00
|
|
|
XSERVER_XORG_SERVER_VERSION = 1.12.4
|
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-07-01 10:02:48 +02:00
|
|
|
XSERVER_XORG_SERVER_MAKE = $(MAKE1) # make install fails with parallel make
|
2010-05-30 20:11:23 +02:00
|
|
|
XSERVER_XORG_SERVER_INSTALL_STAGING = YES
|
2009-03-16 16:47:44 +01:00
|
|
|
XSERVER_XORG_SERVER_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install install-data
|
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 \
|
|
|
|
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 \
|
2009-03-16 16:48:21 +01:00
|
|
|
--with-builder-addr=buildroot@uclibc.org \
|
2010-11-27 21:52:14 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/pixman-1" \
|
2012-04-10 10:24:07 +02:00
|
|
|
--with-fontdir=/usr/share/fonts/X11/ --localstatedir=/var \
|
|
|
|
--$(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
|
|
|
|
|
2010-04-29 22:24:18 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D),y)
|
|
|
|
XSERVER_XORG_SERVER_DEPENDENCIES += mesa3d xproto_xf86driproto
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-dri
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2010-07-21 09:53:51 +02:00
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-dri2
|
|
|
|
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
|
|
|
|
|
2010-11-07 21:02:38 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D),y)
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --enable-glx
|
|
|
|
else
|
|
|
|
XSERVER_XORG_SERVER_CONF_OPT += --disable-glx
|
|
|
|
endif
|
2010-04-14 19:06:40 +02:00
|
|
|
|
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))
|