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