[package] Update xf86-video-glamo to a recent version and enable engine ioctls.
[openwrt/svn-archive/archive.git] / Xorg / driver / xf86-video-glamo / Makefile
1 #
2 # Copyright (C) 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:=xf86-video-glamo
11 PKG_VERSION:=20090705
12 PKG_REV:=b45d78c927715b8814404fc2a34ae0aa1d003c29
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=git://git.openmoko.org/git/xf86-video-glamo.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20
21 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(PKG_NAME)-$(PKG_VERSION)/
22 PKG_BUILD_DEPENDS:=xproto fontsproto randrproto renderproto videoproto \
23 util-macros
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/xf86-video-glamo
29 TITLE:=xf86-video-glamo
30 SECTION:=xorg-driver
31 CATEGORY:=Xorg
32 SUBMENU:=driver
33 URL:=http://git.openmoko.org/?p=xf86-video-glamo.git
34 DEPENDS:=@DISPLAY_SUPPORT @arm||armeb +xserver-xorg
35 endef
36
37 define Package/xf86-video-glamo/description
38 xorg video driver for the smedia glamo 3362 chip.
39 endef
40
41 define Build/Configure
42 (cd $(PKG_BUILD_DIR) && autoreconf --force --install)
43 $(call Build/Configure/Default, \
44 --disable-jbt6k74-set-state \
45 --enable-engine-ioctls \
46 )
47 endef
48
49 define Package/xf86-video-glamo/install
50 $(INSTALL_DIR) $(1)/usr/lib/xorg/modules/drivers
51 $(CP) \
52 $(PKG_INSTALL_DIR)/usr/lib/xorg/modules/drivers/glamo_drv.so \
53 $(1)/usr/lib/xorg/modules/drivers/
54 endef
55
56 $(eval $(call BuildPackage,xf86-video-glamo))