2008-11-20 00:20:30 +00:00
|
|
|
#
|
2009-02-01 02:09:48 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2008-11-16 19:31:42 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2009-02-01 02:09:48 +00:00
|
|
|
# $Id$
|
2008-11-16 19:31:42 +00:00
|
|
|
|
|
|
|
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
|
2009-02-01 02:09:48 +00:00
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/xserver/$(PKG_NAME)-$(PKG_VERSION)/
|
2008-12-01 23:07:01 +00:00
|
|
|
PKG_BUILD_DEPENDS:=randrproto renderproto fixesproto damageproto xcmiscproto \
|
2009-02-01 02:09:48 +00:00
|
|
|
xextproto xproto scrnsaverproto bigreqsproto resourceproto \
|
|
|
|
fontsproto inputproto kbproto videoproto resourceproto \
|
|
|
|
xf86dgaproto xtrans xf86driproto
|
2008-11-16 19:31:42 +00:00
|
|
|
|
2009-02-01 02:09:48 +00:00
|
|
|
PKG_INSTALL:=1
|
2008-11-16 19:31:42 +00:00
|
|
|
|
2009-02-01 02:09:48 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2008-11-16 19:31:42 +00:00
|
|
|
|
2008-11-21 13:51:10 +00:00
|
|
|
X_CONFIG=generic
|
2008-11-16 19:31:42 +00:00
|
|
|
ifeq ($(CONFIG_TARGET_olpc),y)
|
|
|
|
X_CONFIG=olpc
|
2008-11-21 13:51:10 +00:00
|
|
|
endif
|
2008-11-16 19:31:42 +00:00
|
|
|
ifeq ($(CONFIG_TARGET_om_gta02),y)
|
|
|
|
X_CONFIG=om_gta02
|
|
|
|
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
|
2009-01-06 16:39:45 +00:00
|
|
|
DEPENDS:=@!avr32
|
2008-11-16 19:31:42 +00:00
|
|
|
URL:=http://xorg.freedesktop.org/
|
|
|
|
endef
|
|
|
|
|
2009-02-01 02:09:48 +00:00
|
|
|
define Package/xserver-xorg
|
2008-11-20 00:20:30 +00:00
|
|
|
$(call Package/xorg/Default)
|
2009-02-01 02:09:48 +00:00
|
|
|
PROVIDES:=xserver
|
|
|
|
TITLE:=Xorg xserver
|
2008-11-20 00:20:30 +00:00
|
|
|
DEPENDS:=+xserver-common \
|
2008-11-16 19:31:42 +00:00
|
|
|
+libpthread \
|
|
|
|
+libxkbfile \
|
|
|
|
+libXfont \
|
|
|
|
+libXau \
|
2008-12-11 21:01:53 +00:00
|
|
|
+libXv \
|
2008-11-16 19:31:42 +00:00
|
|
|
+libfontenc \
|
|
|
|
+pixman \
|
|
|
|
+libopenssl \
|
2008-11-24 21:38:02 +00:00
|
|
|
+libpciaccess \
|
2009-02-01 02:09:48 +00:00
|
|
|
+libdrm \
|
2008-12-21 13:16:33 +00:00
|
|
|
+libgl-mesa \
|
2009-02-01 02:09:48 +00:00
|
|
|
@DISPLAY_SUPPORT
|
2008-11-21 13:51:10 +00:00
|
|
|
endef
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
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)
|
2008-11-21 13:51:10 +00:00
|
|
|
TITLE:=meta-package
|
2008-11-16 19:31:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2008-11-20 00:20:30 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2009-02-01 02:09:48 +00:00
|
|
|
--enable-xorg \
|
|
|
|
--enable-dri \
|
|
|
|
--disable-kdrive \
|
|
|
|
--disable-cfb \
|
|
|
|
--disable-afb \
|
|
|
|
--disable-mfb \
|
|
|
|
--disable-aiglx \
|
|
|
|
--disable-glx-tls \
|
|
|
|
--disable-dga \
|
|
|
|
--disable-xdmcp \
|
|
|
|
--disable-xdm-auth-1 \
|
|
|
|
--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-xprint \
|
|
|
|
--disable-xtrap \
|
|
|
|
--disable-dmx \
|
|
|
|
--disable-glx \
|
|
|
|
--disable-xinerama \
|
|
|
|
--disable-xfree86-utils \
|
|
|
|
--disable-cup \
|
|
|
|
--disable-xevie \
|
|
|
|
--disable-evi \
|
|
|
|
--disable-screensaver \
|
|
|
|
--enable-builtin-fonts \
|
2008-11-20 00:20:30 +00:00
|
|
|
)
|
2008-11-16 19:31:42 +00:00
|
|
|
endef
|
|
|
|
|
2008-11-20 00:20:30 +00:00
|
|
|
define Package/xserver-common/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/{init.d,config}
|
2008-11-30 01:16:25 +00:00
|
|
|
$(INSTALL_BIN) \
|
2008-11-20 00:20:30 +00:00
|
|
|
./files/x.init \
|
|
|
|
$(1)/etc/init.d/x11
|
|
|
|
$(if $(X_CONFIG), \
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
./files/config/$(X_CONFIG) \
|
|
|
|
$(1)/etc/config/x11 \
|
|
|
|
)
|
|
|
|
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/xorg/modules/{extensions,fonts,linux,multimedia}
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/xorg/modules/*.so \
|
|
|
|
$(1)/usr/lib/xorg/modules/
|
|
|
|
|
2009-02-01 02:09:48 +00:00
|
|
|
$(foreach d,extensions fonts linux multimedia, \
|
2008-11-20 00:20:30 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/xorg/modules/$(d)/*.so \
|
2009-02-01 02:09:48 +00:00
|
|
|
$(1)/usr/lib/xorg/modules/$(d)/; \
|
2008-11-20 00:20:30 +00:00
|
|
|
)
|
|
|
|
endef
|
2008-11-16 19:31:42 +00:00
|
|
|
|
|
|
|
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))
|