[packages] xorg-server needs xkbcomp
[openwrt/svn-archive/archive.git] / Xorg / xorg / xserver / xorg-server / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xorg-server
11 PKG_RELEASE:=1
12 PKG_VERSION:=1.7.1
13 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/xserver/
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_BUILD_DIR:=$(BUILD_DIR)/Xorg/xserver/$(PKG_NAME)-$(PKG_VERSION)/
16 PKG_BUILD_DEPENDS:=randrproto renderproto fixesproto damageproto xcmiscproto \
17 xextproto xproto scrnsaverproto bigreqsproto resourceproto \
18 fontsproto inputproto kbproto videoproto resourceproto \
19 compositeproto xf86dgaproto xtrans xf86driproto dri2proto
20
21 PKG_INSTALL:=1
22 PKG_FIXUP:=libtool
23
24 include $(INCLUDE_DIR)/package.mk
25
26 X_CONFIG=generic
27 ifeq ($(CONFIG_TARGET_olpc),y)
28 X_CONFIG=olpc
29 endif
30 ifeq ($(CONFIG_TARGET_s3c24xx),y)
31 X_CONFIG=om_gta02
32 endif
33
34 define Package/xorg/Default
35 SECTION:=xorg-server
36 CATEGORY:=Xorg
37 SUBMENU:=server
38 DEPENDS:=@!avr32
39 URL:=http://xorg.freedesktop.org/
40 endef
41
42 define Package/xserver-xorg
43 $(call Package/xorg/Default)
44 PROVIDES:=xserver
45 TITLE:=Xorg xserver
46 DEPENDS:=+xserver-common \
47 +libpthread \
48 +libxkbcomp \
49 +libxkbfile \
50 +libXfont \
51 +libXau \
52 +libXv \
53 +libfontenc \
54 +pixman \
55 +libopenssl \
56 +libpciaccess \
57 +libdrm \
58 +libgl-mesa \
59 @DISPLAY_SUPPORT
60 endef
61
62 define Package/xserver-xorg-config
63 $(call Package/xorg/Default)
64 TITLE:=Xorg server configuration tools
65 DEPENDS:=xserver-xorg
66 endef
67
68 define Package/xserver-common
69 $(call Package/xorg/Default)
70 TITLE:=meta-package
71 endef
72
73 define Build/Configure
74 $(call Build/Configure/Default, \
75 --disable-dependency-tracking \
76 --disable-debug \
77 --disable-unit-tests \
78 --disable-builddocs \
79 --disable-glx-tls \
80 --disable-composite \
81 --disable-shm \
82 --disable-xres \
83 --disable-record \
84 --enable-xv \
85 --enable-xvmc \
86 --disable-dga \
87 --disable-screensaver \
88 --disable-xdmcp \
89 --disable-xdm-auth-1 \
90 --disable-glx \
91 --enable-dri \
92 --enable-dri2 \
93 --disable-xinerama \
94 --disable-xf86vidmode \
95 --disable-xace \
96 --disable-xselinux \
97 --disable-xsecurity \
98 --disable-xcalibrate \
99 --disable-tslib \
100 --disable-multibuffer \
101 --disable-dbe \
102 --disable-xf86bigfont \
103 --enable-dpms \
104 --disable-config-dbus \
105 --disable-config-hal \
106 --disable-xfree86-utils \
107 --disable-xaa \
108 --enable-vgahw \
109 --disable-vbe \
110 --enable-int10-module \
111 --enable-xorg \
112 --disable-dmx \
113 --disable-xvfb \
114 --disable-xnest \
115 --disable-xquartz \
116 --disable-standalone-xpbproxy \
117 --disable-xwin \
118 --disable-kdrive \
119 --disable-xfake \
120 --disable-xfbdev \
121 --disable-installsetuid \
122 --disable-secure-rpc \
123 --enable-silent-rules \
124 --disable-shave \
125 )
126 endef
127
128 define Package/xserver-common/install
129 $(INSTALL_DIR) $(1)/etc/{init.d,config,X11}
130 $(INSTALL_BIN) \
131 ./files/x.init \
132 $(1)/etc/init.d/x11
133 $(INSTALL_DATA) ./files/tmp/x11.uci \
134 $(1)/etc/config/x11
135 test -f ./files/config.xorg/$(X_CONFIG) && \
136 $(INSTALL_DATA) \
137 ./files/config.xorg/$(X_CONFIG) \
138 $(1)/etc/X11/xorg.conf
139 # test -f ./files/config.uci/$(X_CONFIG) && \
140 # $(INSTALL_DATA) \
141 # ./files/config.uci/$(X_CONFIG) \
142 # $(1)/etc/config/x11
143 endef
144
145 define Package/xserver-xorg/install
146 $(INSTALL_DIR) $(1)/usr/bin
147 $(INSTALL_BIN) \
148 $(PKG_INSTALL_DIR)/usr/bin/Xorg \
149 $(1)/usr/bin/
150
151 $(INSTALL_DIR) $(1)/usr/lib/xorg/modules/{extensions,fonts,linux,multimedia}
152 $(INSTALL_DATA) \
153 $(PKG_INSTALL_DIR)/usr/lib/xorg/modules/*.so \
154 $(1)/usr/lib/xorg/modules/
155
156 $(foreach d,extensions fonts linux multimedia, \
157 $(INSTALL_DATA) \
158 $(PKG_INSTALL_DIR)/usr/lib/xorg/modules/$(d)/*.so \
159 $(1)/usr/lib/xorg/modules/$(d)/; \
160 )
161 endef
162
163 define Build/InstallDev
164 $(INSTALL_DIR) $(1)/usr/share/aclocal/
165 $(INSTALL_DATA) \
166 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
167 $(1)/usr/share/aclocal/
168
169 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
170 $(INSTALL_DATA) \
171 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
172 $(1)/usr/lib/pkgconfig/
173
174 $(if $(CONFIG_PACKAGE_xserver-xorg), \
175 $(INSTALL_DIR) $(1)/usr/include/xorg; \
176 $(INSTALL_DATA) \
177 $(PKG_INSTALL_DIR)/usr/include/xorg/*.h \
178 $(1)/usr/include/xorg/; \
179 )
180 $(INSTALL_DIR) $(1)/mk
181 $(INSTALL_DATA) \
182 ./files/xorg-driver.mk \
183 $(1)/mk/
184 $(SED) 's,@VERSION@,$(PKG_VERSION),' $(1)/mk/xorg-driver.mk
185 endef
186
187 $(eval $(call BuildPackage,xserver-common))
188 $(eval $(call BuildPackage,xserver-xorg))