added modified Xfbdev kdrive server with acceleration support for the glamo graphics...
[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_om_gta02),y)
56 X_CONFIG=om_gta02
57 endif
58
59 define Package/xglamo
60 # xineramaproto necessary even when xinerama is disabled due to buggy xglamo
61 TITLE:=xglamo
62 SECTION:=xorg-server
63 SUBMENU:=server
64 CATEGORY:=Xorg
65 URL:=http://git.openmoko.org/?p=xglamo.git
66 DEPENDS:=+tslib \
67 +recordproto \
68 +glproto \
69 +libdrm \
70 +xf86driproto \
71 +xineramaproto \
72 +calibrateproto \
73 +compositeproto \
74 +libpthread \
75 +randrproto \
76 +renderproto \
77 +fixesproto \
78 +damageproto \
79 +xcmiscproto \
80 +xextproto \
81 +xproto \
82 +scrnsaverproto \
83 +bigreqsproto \
84 +resourceproto \
85 +fontsproto \
86 +inputproto \
87 +kbproto \
88 +videoproto \
89 +resourceproto \
90 +xtrans \
91 +libxkbfile \
92 +libXfont \
93 +libXau \
94 +libfontenc \
95 +pixman \
96 +libopenssl \
97 +util-macros \
98 @DISPLAY_SUPPORT
99 endef
100
101 define Package/xglamo/description
102 kdrive server with acceleration support for the graphics chip <glamo> by smedia
103 endef
104
105 define Build/Configure
106 (cd $(PKG_BUILD_DIR) && \
107 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
108 $(CONFIGURE_VARS) \
109 ./autogen.sh \
110 $(CONFIGURE_ARGS_XTRA) \
111 $(CONFIGURE_ARGS) \
112 );
113 endef
114
115 define Build/Compile
116 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
117 endef
118
119 define Package/xglamo/install
120 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/etc/init.d $(1)/etc/config
121 $(CP) $(PKG_INSTALL_DIR)/usr/bin/Xglamo $(1)/usr/bin/
122 $(CP) ./files/x.init $(1)/etc/init.d/x11
123 $(if $(X_CONFIG),$(CP) ./files/config/$(X_CONFIG) $(1)/etc/config/x11)
124 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
125 endef
126
127 define Build/InstallDev
128 $(INSTALL_DIR) $(1)
129 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
130 endef
131
132 $(eval $(call BuildPackage,xglamo))