2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
13 PKG_REV:=3f113f5f4dbaf14dee439eac8d510313fff3aafc
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=git://git.openmoko.org/git/xglamo.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)/
23 include $(INCLUDE_DIR)/package.mk
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
27 CONFIGURE_ARGS += --disable-dga \
30 --disable-xf86vidmode \
31 --disable-xf86bigfont \
50 --enable-builtin-fonts \
51 --with-default-font-path=built-ins \
53 CONFIGURE_VARS+=ac_cv_file__usr_share_sgml_X11_defs_ent=yes
55 ifeq ($(CONFIG_TARGET_s3c24xx),y)
57 TS_POINTERCAL=om_gta02
61 # xineramaproto necessary even when xinerama is disabled due to buggy xglamo
66 URL:=http://git.openmoko.org/?p=xglamo.git
103 define Package/xglamo/description
104 kdrive server with acceleration support for the graphics chip <glamo> by smedia
107 define Build/Configure
108 (cd $(PKG_BUILD_DIR) && \
109 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
112 $(CONFIGURE_ARGS_XTRA) \
118 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
121 define Package/xglamo/install
122 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/etc/init.d $(1)/etc/config $(1)/etc/uci-defaults
123 $(CP) $(PKG_INSTALL_DIR)/usr/bin/Xglamo $(1)/usr/bin/
124 $(CP) ./files/x.init $(1)/etc/init.d/x11
125 $(if $(TS_POINTERCAL),$(CP) ./files/pointercal.$(TS_POINTERCAL) $(1)/etc/pointercal)
126 $(if $(X_CONFIG),$(CP) ./files/config/x11.$(X_CONFIG) $(1)/etc/config/x11)
127 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
130 define Build/InstallDev
132 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
135 $(eval $(call BuildPackage,xglamo))