2008-11-20 00:20:30 +00:00
|
|
|
#
|
2008-11-16 19:31:42 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xorg-server
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_VERSION:=1.5.1
|
|
|
|
PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/xserver/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/xserver/xorg-server-$(PKG_VERSION)/
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
EXTRA_CFLAGS+= \
|
|
|
|
-I$(STAGING_DIR)/usr/include/X11/GL \
|
|
|
|
-I$(STAGING_DIR)/usr/include/X11/dri/ \
|
|
|
|
-I$(STAGING_DIR)/usr/include/X11/ \
|
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-aiglx \
|
|
|
|
--disable-glx-tls \
|
|
|
|
--disable-dga \
|
|
|
|
--disable-xdmcp \
|
|
|
|
--disable-xdm-auth-1 \
|
|
|
|
--disable-dri \
|
|
|
|
--disable-config-hal \
|
|
|
|
--disable-xf86misc \
|
|
|
|
--disable-xf86vidmode \
|
|
|
|
--disable-xf86bigfont \
|
|
|
|
--disable-xorgcfg \
|
|
|
|
--disable-xkb \
|
|
|
|
--disable-xnest \
|
|
|
|
--disable-xquartz \
|
|
|
|
--disable-xwin \
|
|
|
|
--disable-x11app \
|
|
|
|
--disable-xsdl \
|
|
|
|
--disable-xfake \
|
|
|
|
--disable-install-setuid \
|
|
|
|
--disable-kbd_mode \
|
|
|
|
--disable-xvfb \
|
|
|
|
--disable-xevie \
|
|
|
|
--disable-xprint \
|
|
|
|
--disable-xtrap \
|
|
|
|
--disable-dmx \
|
|
|
|
--disable-glx \
|
|
|
|
--enable-xorg \
|
|
|
|
--disable-xephyr \
|
|
|
|
--enable-builtin-fonts \
|
|
|
|
--with-default-font-path=built-ins \
|
2008-11-16 19:31:42 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS+=ac_cv_file__usr_share_sgml_X11_defs_ent=yes
|
|
|
|
|
|
|
|
#FIXME: make full blowed xorg-xserver work
|
|
|
|
|
|
|
|
#DEPENDS_SERVER:=+calibrateproto \
|
|
|
|
# +compositeproto \
|
|
|
|
# +damageproto \
|
|
|
|
# +fixesproto \
|
|
|
|
# +recordproto \
|
|
|
|
# +resourceproto \
|
|
|
|
# +scrnsaverproto \
|
|
|
|
# +videoproto \
|
|
|
|
# +xextproto \
|
|
|
|
# +xproto \
|
|
|
|
# +libXext \
|
|
|
|
# +libXdmcp \
|
|
|
|
# +libXfont \
|
|
|
|
# +libXrandr \
|
|
|
|
# +xtrans \
|
|
|
|
# +libX11 \
|
|
|
|
# +glproto \
|
|
|
|
# +xf86driproto \
|
|
|
|
# +applewmproto \
|
|
|
|
# +dmxproto \
|
|
|
|
# +printproto \
|
|
|
|
# +windowswmproto \
|
|
|
|
# +xf86rushproto \
|
|
|
|
# +xproxymanagementprotocol \
|
|
|
|
# +libdrm \
|
|
|
|
# +xf86miscproto \
|
|
|
|
# +xf86vidmodeproto \
|
|
|
|
# +xf86dgaproto \
|
|
|
|
# +trapproto \
|
|
|
|
# +xineramaproto \
|
|
|
|
# +evieext \
|
|
|
|
# +libxkbfile \
|
|
|
|
# +libXt \
|
|
|
|
# +libSM \
|
|
|
|
# +libxkbui \
|
|
|
|
# +libXxf86misc \
|
|
|
|
# +libXxf86vm \
|
|
|
|
# +libXaw \
|
|
|
|
# +libXmu \
|
|
|
|
# +libXpm \
|
|
|
|
# +libnotimpl \
|
|
|
|
# +Mesa \
|
|
|
|
# +pixman \
|
|
|
|
# @DISPLAY_SUPPORT
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
define Package/xserver-common/config
|
2008-11-16 19:31:42 +00:00
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
# TODO: Move config file to indepedndent packages
|
2008-11-16 19:31:42 +00:00
|
|
|
ifeq ($(CONFIG_TARGET_olpc),y)
|
|
|
|
X_CONFIG=olpc
|
2008-11-20 00:20:30 +00:00
|
|
|
else
|
2008-11-16 19:31:42 +00:00
|
|
|
ifeq ($(CONFIG_TARGET_om_gta02),y)
|
|
|
|
X_CONFIG=om_gta02
|
2008-11-20 00:20:30 +00:00
|
|
|
else
|
|
|
|
X_CONFIG=generic
|
|
|
|
endif
|
2008-11-16 19:31:42 +00:00
|
|
|
endif
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
define Package/xorg/Default
|
2008-11-16 19:31:42 +00:00
|
|
|
SECTION:=xorg-server
|
|
|
|
CATEGORY:=Xorg
|
2008-11-20 00:20:30 +00:00
|
|
|
SUBMENU:=server
|
2008-11-16 19:31:42 +00:00
|
|
|
URL:=http://xorg.freedesktop.org/
|
|
|
|
endef
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
define Package/xserver/Default
|
|
|
|
$(call Package/xorg/Default)
|
|
|
|
DEPENDS:=+xserver-common \
|
2008-11-16 19:31:42 +00:00
|
|
|
+libpthread \
|
|
|
|
+randrproto \
|
|
|
|
+renderproto \
|
|
|
|
+fixesproto \
|
|
|
|
+damageproto \
|
|
|
|
+xcmiscproto \
|
|
|
|
+xextproto \
|
|
|
|
+xproto \
|
|
|
|
+scrnsaverproto \
|
|
|
|
+bigreqsproto \
|
|
|
|
+resourceproto \
|
|
|
|
+fontsproto \
|
|
|
|
+inputproto \
|
|
|
|
+kbproto \
|
|
|
|
+videoproto \
|
|
|
|
+resourceproto \
|
|
|
|
+xtrans \
|
|
|
|
+libxkbfile \
|
|
|
|
+libXfont \
|
|
|
|
+libXau \
|
|
|
|
+libfontenc \
|
|
|
|
+pixman \
|
|
|
|
+libopenssl \
|
|
|
|
@DISPLAY_SUPPORT
|
|
|
|
endef
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
define Package/xserver-xorg
|
|
|
|
$(call Package/xserver/Default)
|
|
|
|
PROVIDES:=xserver
|
|
|
|
TITLE:=Xorg xserver
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xserver-kdrive-xvesa
|
|
|
|
$(call Package/xserver/Default)
|
|
|
|
PROVIDES:=xserver
|
|
|
|
TITLE:=Kdrive vesa xserver
|
|
|
|
DEPENDS+=+X_TSLIB:tslib \
|
|
|
|
+X_DRI:xf86driproto \
|
|
|
|
+X_DRI:libdrm \
|
|
|
|
+X_XCALIBRATE:calibrateproto \
|
|
|
|
+X_COMPOSITE:compositeproto \
|
|
|
|
+X_XINERAMA:xineramaproto
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xserver-kdrive-xfbdev
|
|
|
|
$(call Package/xserver/Default)
|
|
|
|
PROVIDES:=xserver
|
|
|
|
TITLE:=Kdrive framebuffer xserver
|
|
|
|
DEPENDS+=+X_TSLIB:tslib \
|
|
|
|
+X_DRI:xf86driproto \
|
|
|
|
+X_DRI:libdrm \
|
|
|
|
+X_XCALIBRATE:calibrateproto \
|
|
|
|
+X_COMPOSITE:compositeproto \
|
|
|
|
+X_XINERAMA:xineramaproto
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xserver-xorg-config
|
|
|
|
$(call Package/xorg/Default)
|
|
|
|
TITLE:=Xorg server configuration tools
|
|
|
|
DEPENDS:=xserver-xorg
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xserver-common
|
|
|
|
$(call Package/xorg/Default)
|
|
|
|
TITLE:=Files shared by the different webservers
|
2008-11-16 19:31:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2008-11-20 00:20:30 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
$(if $(CONFIG_PACKAGE_xserver-xorg),--enable-xorg,--disable-xorg) \
|
|
|
|
$(if $(CONFIG_PACKAGE_xserver-xvesa), \
|
|
|
|
--enable-kdrive-vesa, \
|
|
|
|
--disable-kdrive-vesa) \
|
|
|
|
$(if $(CONFIG_PACKAGE_xserver-xfbdev), \
|
|
|
|
--enable-xfbdev, \
|
|
|
|
--disable-xfbdev) \
|
|
|
|
$(if $(CONFIG_PACKAGE_xserver-xfbdev)$(CONFIG_PACKAGE_xserver-xvesa), \
|
|
|
|
--enable-kdrive, \
|
|
|
|
--disable-kdrive) \
|
|
|
|
$(if $(CONFIG_X_TSLIB),--enable-tslib,--disable-tslib) \
|
|
|
|
$(if $(CONFIG_X_COMPOSITE),--enable-composite,--disable-composite) \
|
|
|
|
$(if $(CONFIG_X_XINERAMA),--enable-xinerama,--disable-xinerama) \
|
|
|
|
$(if $(CONFIG_X_DRI),--enable-dri,--disable-dri) \
|
|
|
|
$(if $(CONFIG_X_XCALIBRATE),--enable-xcalibrate,--disable-xcalibrate) \
|
|
|
|
)
|
2008-11-16 19:31:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
|
|
|
|
endef
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
define Package/xserver-common/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/{init.d,config}
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
./files/x.init \
|
|
|
|
$(1)/etc/init.d/x11
|
|
|
|
$(if $(X_CONFIG), \
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
./files/config/$(X_CONFIG) \
|
|
|
|
$(1)/etc/config/x11 \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/xorg
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/xorg/protocol.txt \
|
|
|
|
$(1)/usr/lib/xorg/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xserver-xfdev/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(1)/usr/bin/Xfbdev \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/Xfbdev
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xserver-xvesa/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(1)/usr/bin/Xvesa \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/Xvesa
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xserver-xorg/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/Xorg \
|
|
|
|
$(1)/usr/bin/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/X11
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/X11/* \
|
|
|
|
$(1)/usr/lib/X11/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/xorg/modules/{extensions,fonts,linux,multimedia}
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/xorg/modules/*.so \
|
|
|
|
$(1)/usr/lib/xorg/modules/
|
|
|
|
|
|
|
|
$(for dir,extensions fonts linux multimedia, \
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/xorg/modules/$(d)/*.so \
|
|
|
|
$(1)/usr/lib/xorg/modules/$(d) \
|
|
|
|
)
|
|
|
|
endef
|
2008-11-16 19:31:42 +00:00
|
|
|
|
|
|
|
define Packages/xorg-server-config/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2008-11-20 00:20:30 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xorgconfig $(1)/usr/bin/
|
2008-11-16 19:31:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-11-20 00:20:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/aclocal/* \
|
|
|
|
$(1)/usr/share/aclocal/
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2008-11-20 00:20:30 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
$(if $(CONFIG_PACKAGE_xserver-xorg), \
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/xorg; \
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/xorg/*.h \
|
|
|
|
$(1)/usr/include/xorg/; \
|
|
|
|
)
|
2008-11-16 19:31:42 +00:00
|
|
|
endef
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
$(eval $(call BuildPackage,xserver-common))
|
|
|
|
$(eval $(call BuildPackage,xserver-xorg))
|
|
|
|
$(eval $(call BuildPackage,xserver-kdrive-xvesa))
|
|
|
|
$(eval $(call BuildPackage,xserver-kdrive-xfbdev))
|
|
|
|
$(eval $(call BuildPackage,xserver-xorg-config))
|