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