[package] ruby: fix path to libiconv
[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),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 +util-macros \
99 @DISPLAY_SUPPORT \
100 @arm||armeb \
101 @TARGET_s3c24xx
102 endef
103
104 define Package/xglamo/description
105 kdrive server with acceleration support for the graphics chip <glamo> by smedia
106 endef
107
108 define Build/Configure
109 (cd $(PKG_BUILD_DIR) && \
110 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
111 $(CONFIGURE_VARS) \
112 ./autogen.sh \
113 $(CONFIGURE_ARGS_XTRA) \
114 $(CONFIGURE_ARGS) \
115 );
116 endef
117
118 define Build/Compile
119 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
120 endef
121
122 define Package/xglamo/install
123 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/etc/init.d $(1)/etc/config $(1)/etc/uci-defaults
124 $(CP) $(PKG_INSTALL_DIR)/usr/bin/Xglamo $(1)/usr/bin/
125 $(CP) ./files/x.init $(1)/etc/init.d/x11
126 $(if $(TS_POINTERCAL),$(CP) ./files/pointercal.$(TS_POINTERCAL) $(1)/etc/pointercal)
127 $(if $(X_CONFIG),$(CP) ./files/config/x11.$(X_CONFIG) $(1)/etc/config/x11)
128 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
129 endef
130
131 define Build/InstallDev
132 $(INSTALL_DIR) $(1)
133 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
134 endef
135
136 $(eval $(call BuildPackage,xglamo))