summaryrefslogtreecommitdiff
path: root/packages/x11/xserver/xserver.mk
blob: fe2936a9394038be2963b6bd234db13be5c6ce78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
################################################################################
# Embtoolkit
# Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
#
# \file         xserver.mk
# \brief	xserver.mk of Embtoolkit
# \author       Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date         March 2010
################################################################################

XSERVER_NAME		:= xorg-server
XSERVER_VERSION		:= $(call embtk_get_pkgversion,xserver)
XSERVER_SITE		:= http://ftp.x.org/pub/individual/xserver
XSERVER_SITE_MIRROR3	:= ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
XSERVER_PACKAGE		:= xorg-server-$(XSERVER_VERSION).tar.bz2
XSERVER_SRC_DIR		:= $(PACKAGES_BUILD)/xorg-server-$(XSERVER_VERSION)
XSERVER_BUILD_DIR	:= $(PACKAGES_BUILD)/xorg-server-$(XSERVER_VERSION)

XSERVER_BINS		= Xfbdev X Xorg
XSERVER_SBINS		=
XSERVER_INCLUDES	= xorg
XSERVER_LIBS		= xorg
XSERVER_PKGCONFIGS	= xorg-server.pc

XSERVER_VARIANT := $(if $(CONFIG_EMBTK_HAVE_XSERVER_KDRIVE),			\
			--enable-kdrive --disable-xorg,				\
			--disable-kdrive --enable-xorg)

XSERVER_DEPS := utilmacros_install bigreqsproto_install compositeproto_install	\
		damageproto_install fixesproto_install fontsproto_install	\
		inputproto_install kbproto_install randrproto_install		\
		recordproto_install renderproto_install resourceproto_install	\
		videoproto_install xcbproto_install xcmiscproto_install		\
		xextproto_install xproto_install libxfont_install		\
		libxkbfile_install xtrans_install openssl_install
XSERVER_DEPS += $(if $(CONFIG_EMBTK_HAVE_XSERVER_XORG),libpciaccess_install)

XSERVER_CONFIGURE_OPTS := $(XSERVER_VARIANT) --with-sha1=libcrypto \
		--disable-dga --disable-dri --disable-xvmc --disable-fontserver \
		--disable-xdmcp --disable-xdm-auth-1 --disable-config-hal \
		--disable-xf86vidmode --disable-xf86bigfont --disable-xnest \
		--disable-xquartz --disable-xwin --disable-xfake \
		--disable-install-setuid --disable-xvfb --disable-dmx \
		--disable-glx --disable-aiglx --disable-glx-tls --disable-libdrm \
		--disable-xinerama --disable-xace --disable-dbe --disable-dpms \
		--disable-vgahw --disable-xfree86-utils --disable-vbe \
		--disable-int10-module --disable-xaa --disable-screensaver \
		--disable-tcp-transport --disable-ipv6 --disable-secure-rpc \
		--with-vendor-name="Embedded Systems Toolkit" \
		--with-vendor-name-short="EmbToolkit" \
		--with-vendor-web=$(EMBTK_HOMEURL) \
		--with-builderstring="embtoolkit-$(EMBTK_VERSION)" \
		--with-builder-addr="embtk-dev@embtoolkit.org" \
		--with-os-name=$(STRICT_GNU_TARGET) \
		--with-os-vendor="embtoolkit.org"

XSERVER_CONFIGURE_ENV = XLIB_CFLAGS="$(call embtk_pkgconfig_getcflags,xcb)"
XSERVER_CONFIGURE_ENV += XLIB_LIBS="$(call embtk_pkgconfig_getlibs,xcb)"
XSERVER_CONFIGURE_ENV += TSLIB_CFLAGS="$(call embtk_pkgconfig_getcflags,tslib)"
XSERVER_CONFIGURE_ENV += TSLIB_LIBS="$(call embtk_pkgconfig_getlibs,tslib)"

ifeq ($(CONFIG_EMBTK_HAVE_XSERVER_WITH_TSLIB),y)
XSERVER_DEPS += tslib_install
XSERVER_CONFIGURE_OPTS += --enable-tslib
else
XSERVER_CONFIGURE_OPTS += --disable-tslib
endif

define embtk_postinstall_xserver
	$(Q)-cp -R $(SYSROOT)/usr/$(LIBDIR)/xorg $(ROOTFS)/usr/$(LIBDIR)/
endef