c1956dcb9737a06a46aa8886026f30eeac151db3
[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 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
21
22 CONFIGURE_VARS+=ac_cv_file__usr_share_sgml_X11_defs_ent=yes
23
24 define Package/xorg-server-X11R7.2/Default
25 SECTION:=xorg-server
26 CATEGORY:=Xorg
27 URL:=http://xorg.freedesktop.org/
28 endef
29
30 define Package/xorg-server-X11R7.2
31 $(call Package/xorg-server-X11R7.2/Default)
32 TITLE:=Xorg server
33 DEPENDS:=+compositeproto-X11R7.1 \
34 +damageproto-X11R7.0 \
35 +fixesproto-X11R7.1 \
36 +recordproto-X11R7.0 \
37 +resourceproto-X11R7.0 \
38 +scrnsaverproto-X11R7.1 \
39 +videoproto-X11R7.0 \
40 +xextproto-X11R7.0 \
41 +xproto-X11R7.2 \
42 +libXext-X11R7.2 \
43 +libXdmcp-X11R7.2 \
44 +libXfont-X11R7.2 \
45 +libXrandr-X11R7.2 \
46 +xtrans-X11R7.2 \
47 +libX11-X11R7.2 \
48 +glproto-X11R7.2 \
49 +xf86driproto-X11R7.0 \
50 +applewmproto-X11R7.0 \
51 +dmxproto-X11R7.0 \
52 +printproto-X11R7.0 \
53 +windowswmproto-X11R7.0 \
54 +xf86rushproto-X11R7.0 \
55 +xproxymanagementprotocol-X11R7.0 \
56 +libdrm \
57 +xf86miscproto-X11R7.0 \
58 +xf86vidmodeproto-X11R7.0 \
59 +xf86dgaproto-X11R7.0 \
60 +trapproto-X11R7.0 \
61 +xineramaproto-X11R7.0 \
62 +evieext-X11R7.0 \
63 +libxkbfile-X11R7.2 \
64 +libXt-X11R7.2 \
65 +libSM-X11R7.2 \
66 +libxkbui-X11R7.1 \
67 +libXxf86misc-X11R7.1 \
68 +libXxf86vm-X11R7.1 \
69 +libXaw-X11R7.1 \
70 +libXmu-X11R7.2 \
71 +libXpm-X11R7.2 \
72 +libnotimpl \
73 +Mesa \
74 @TARGET_x86
75 MENU:=1
76 endef
77
78 define Package/xorg-server-X11R7.2-config
79 $(call Package/xorg-server-X11R7.2/Default)
80 TITLE:=Xorg server configuration tools
81 DEPENDS:=xorg-server-X11R7.2
82 endef
83
84 define Build/Configure
85 (cd $(PKG_BUILD_DIR) \
86 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
87 $(CONFIGURE_VARS) \
88 $(CONFIGURE_CMD) \
89 $(CONFIGURE_ARGS_XTRA) \
90 $(CONFIGURE_ARGS) \
91 --with-default-font-path=built-ins \
92 );
93 endef
94
95 define Build/Compile
96 $(MAKE) -C $(PKG_BUILD_DIR)
97 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
98
99 endef
100
101 define Package/xorg-server-X11R7.2/install
102 $(INSTALL_DIR) $(1)/usr/bin
103 $(CP) $(PKG_INSTALL_DIR)/usr/bin/Xorg $(1)/usr/bin/
104 cd $(1)/usr/bin; ln -s Xorg X
105 $(INSTALL_DIR) $(1)/usr/share
106 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
107 $(INSTALL_DIR) $(1)/usr/lib/xserver
108 $(CP) $(PKG_INSTALL_DIR)/usr/lib/xserver/* $(1)/usr/lib/xserver
109 $(INSTALL_DIR) $(1)/usr/lib/xorg/
110 $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/xorg/* $(1)/usr/lib/xorg/
111 find $(1)/usr/lib/xorg/ -name *.la | xargs rm -rf
112 $(INSTALL_DIR) $(1)/usr/lib/X11/
113 $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/X11/* $(1)/usr/lib/X11/
114 rm -rf $(1)/usr/share/X11 $(1)/usr/lib/X11/xserver
115 $(INSTALL_DIR) $(1)/var/log/
116 $(INSTALL_DIR) $(1)/etc/X11/
117 $(CP) files/xorg.conf $(1)/etc/X11/
118 endef
119
120 define Packages/xorg-server-X11R7.2-config/install
121 $(INSTALL_DIR) $(1)/usr/bin
122 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xorgconfig $(1)/usr/bin/
123 endef
124
125 define Build/InstallDev
126 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/
127 $(CP) $(PKG_BUILD_DIR)/xorg-server.pc $(STAGING_DIR)/usr/lib/pkgconfig/
128 endef
129
130 $(eval $(call BuildPackage,xorg-server-X11R7.2))
131 $(eval $(call BuildPackage,xorg-server-X11R7.2-config))