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