added the initial version of the XOrg support. still lots of cleaning up that needs...
[openwrt/svn-archive/archive.git] / XOrg / server / xorg-server-X11R7.2 / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xorg-server-X11R7.2
12 PKG_RELEASE:=1
13 PKG_VERSION:=1.2.0
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.2/src/xserver/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/server/xorg-server-X11R7.2-$(PKG_VERSION)/
17
18 include $(INCLUDE_DIR)/package.mk
19
20
21 define Package/xorg-server-X11R7.2
22 SECTION:=xorg-server
23 CATEGORY:=Xorg
24 SUBMENU:=server
25 TITLE:=Xorg server
26 URL:=http://xorg.freedesktop.org/
27 DEPENDS:=+compositeproto-X11R7.1 \
28 +damageproto-X11R7.0 \
29 +fixesproto-X11R7.1 \
30 +recordproto-X11R7.0 \
31 +resourceproto-X11R7.0 \
32 +scrnsaverproto-X11R7.1 \
33 +videoproto-X11R7.0 \
34 +xextproto-X11R7.0 \
35 +xproto-X11R7.2 \
36 +libXext-X11R7.2 \
37 +libXdmcp-X11R7.2 \
38 +libXfont-X11R7.2 \
39 +libXrandr-X11R7.2 \
40 +xtrans-X11R7.2 \
41 +libX11-X11R7.2 \
42 +glproto-X11R7.2 \
43 +xf86driproto-X11R7.0 \
44 +libdrm \
45 +xf86miscproto-X11R7.0 \
46 +xf86vidmodeproto-X11R7.0 \
47 +xf86dgaproto-X11R7.0 \
48 +trapproto-X11R7.0 \
49 +xineramaproto-X11R7.0 \
50 +evieext-X11R7.0 \
51 +libxkbfile-X11R7.2 \
52 +libXt-X11R7.2 \
53 +libSM-X11R7.2 \
54 +libxkbui-X11R7.1 \
55 +libXxf86misc-X11R7.1 \
56 +libXxf86vm-X11R7.1 \
57 +libXaw-X11R7.1 \
58 +libXmu-X11R7.2 \
59 +libXpm-X11R7.2 \
60 +libnotimpl \
61 +Mesa \
62 @TARGET_x86
63 endef
64
65 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
66
67
68 define Build/Configure
69 (cd $(PKG_BUILD_DIR) \
70 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
71 $(CONFIGURE_VARS) \
72 $(CONFIGURE_CMD) \
73 $(CONFIGURE_ARGS_XTRA) \
74 $(CONFIGURE_ARGS) \
75 --with-default-font-path=built-ins \
76 as_ac_File=no \
77 );
78 endef
79
80 define Build/Compile
81 $(MAKE) -C $(PKG_BUILD_DIR)
82 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
83
84 endef
85
86 define Package/xorg-server-X11R7.2/install
87 $(INSTALL_DIR) $(1)/usr/bin
88 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
89 $(INSTALL_DIR) $(1)/usr/share
90 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
91 $(INSTALL_DIR) $(1)/usr/lib/xserver
92 $(CP) $(PKG_INSTALL_DIR)/usr/lib/xserver/* $(1)/usr/lib/xserver
93 $(INSTALL_DIR) $(1)/usr/lib/xorg/
94 $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/xorg/* $(1)/usr/lib/xorg/
95 find $(1)/usr/lib/xorg/ -name *.la | xargs rm -rf
96 $(INSTALL_DIR) $(1)/usr/lib/X11/
97 $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/X11/* $(1)/usr/lib/X11/
98 $(INSTALL_DIR) $(1)/var/log/
99 $(INSTALL_DIR) $(1)/etc/X11/
100 $(CP) files/xorg.conf $(1)/etc/X11/
101 endef
102
103 define Build/InstallDev
104 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/
105 $(CP) $(PKG_BUILD_DIR)/xorg-server.pc $(STAGING_DIR)/usr/lib/pkgconfig/
106 endef
107
108 $(eval $(call BuildPackage,xorg-server-X11R7.2))