introduce new uci option "autostart" and modify xserver init scripts and window manag...
[openwrt/svn-archive/archive.git] / Xorg / xserver / xglamo / 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:=xglamo
12 PKG_VERSION:=20081205
13 PKG_REV:=3f113f5f4dbaf14dee439eac8d510313fff3aafc
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=git://git.openmoko.org/git/xglamo.git
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=$(PKG_REV)
21 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/xserver/$(PKG_NAME)-$(PKG_VERSION)/
22
23 include $(INCLUDE_DIR)/package.mk
24
25 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
26
27 CONFIGURE_ARGS += --disable-dga \
28 --disable-xinerama \
29 --disable-xf86misc \
30 --disable-xf86vidmode \
31 --disable-xf86bigfont \
32 --disable-xorgcfg \
33 --disable-xkb \
34 --disable-xnest \
35 --disable-xvfb \
36 --disable-xevie \
37 --disable-xprint \
38 --disable-xtrap \
39 --disable-dmx \
40 --disable-w100 \
41 --disable-glx \
42 --disable-xv \
43 --disable-record \
44 --disable-xephyr \
45 --disable-xorg \
46 --enable-kdrive \
47 --enable-tslib \
48 --enable-dri \
49 --enable-drm \
50 --enable-builtin-fonts \
51 --with-default-font-path=built-ins \
52
53 CONFIGURE_VARS+=ac_cv_file__usr_share_sgml_X11_defs_ent=yes
54
55 ifeq ($(CONFIG_TARGET_s3c24xx_openmoko-gta02-graphical),y)
56 X_CONFIG=om_gta02
57 TS_POINTERCAL=om_gta02
58 endif
59 ifeq ($(CONFIG_TARGET_s3c24xx_openmoko-gta02-minimal),y)
60 X_CONFIG=om_gta02
61 TS_POINTERCAL=om_gta02
62 endif
63
64 define Package/xglamo
65 # xineramaproto necessary even when xinerama is disabled due to buggy xglamo
66 TITLE:=xglamo
67 SECTION:=xorg-server
68 SUBMENU:=server
69 CATEGORY:=Xorg
70 URL:=http://git.openmoko.org/?p=xglamo.git
71 DEPENDS:=+tslib \
72 +recordproto \
73 +glproto \
74 +libdrm \
75 +xf86driproto \
76 +xineramaproto \
77 +calibrateproto \
78 +compositeproto \
79 +libpthread \
80 +randrproto \
81 +renderproto \
82 +fixesproto \
83 +damageproto \
84 +xcmiscproto \
85 +xextproto \
86 +xproto \
87 +scrnsaverproto \
88 +bigreqsproto \
89 +resourceproto \
90 +fontsproto \
91 +inputproto \
92 +kbproto \
93 +videoproto \
94 +resourceproto \
95 +xtrans \
96 +libxkbfile \
97 +libXfont \
98 +libXau \
99 +libfontenc \
100 +pixman \
101 +libopenssl \
102 +util-macros \
103 @DISPLAY_SUPPORT \
104 @arm||armeb
105 endef
106
107 define Package/xglamo/description
108 kdrive server with acceleration support for the graphics chip <glamo> by smedia
109 endef
110
111 define Build/Configure
112 (cd $(PKG_BUILD_DIR) && \
113 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
114 $(CONFIGURE_VARS) \
115 ./autogen.sh \
116 $(CONFIGURE_ARGS_XTRA) \
117 $(CONFIGURE_ARGS) \
118 );
119 endef
120
121 define Build/Compile
122 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
123 endef
124
125 define Package/xglamo/install
126 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/etc/init.d $(1)/etc/config $(1)/etc/uci-defaults
127 $(CP) $(PKG_INSTALL_DIR)/usr/bin/Xglamo $(1)/usr/bin/
128 $(CP) ./files/x.init $(1)/etc/init.d/x11
129 $(if $(TS_POINTERCAL),$(CP) ./files/pointercal.$(TS_POINTERCAL) $(1)/etc/pointercal)
130 $(if $(X_CONFIG),$(CP) ./files/config/x11.$(X_CONFIG) $(1)/etc/config/x11)
131 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
132 endef
133
134 define Build/InstallDev
135 $(INSTALL_DIR) $(1)
136 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
137 endef
138
139 $(eval $(call BuildPackage,xglamo))