added the initial version of the XOrg support. still lots of cleaning up that needs...
[openwrt/svn-archive/archive.git] / XOrg / server / xorg-kdrive-X11R7.2 / 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 # $Id: Makefile 8299 2007-08-01 12:32:53Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11
12 PKG_NAME:=xorg-kdrive-X11R7.2
13 PKG_RELEASE:=1
14 PKG_VERSION:=1.2.0
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.2/src/xserver/
16 PKG_SOURCE:=xorg-server-X11R7.2-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/server/kdrive/xorg-server-X11R7.2-$(PKG_VERSION)/
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/xorg-kdrive-X11R7.2
22 SECTION:=xorg-server
23 CATEGORY:=Xorg
24 SUBMENU:=server
25 TITLE:=Xorg kdrive server
26 URL:=http://xorg.freedesktop.org/
27 DEPENDS:=+compositeproto-X11R7.1 +damageproto-X11R7.0 +fixesproto-X11R7.1 +recordproto-X11R7.0 +resourceproto-X11R7.0 +scrnsaverproto-X11R7.1 +videoproto-X11R7.0 +xextproto-X11R7.0 +xproto-X11R7.2 +libXext-X11R7.2 +libXdmcp-X11R7.2 +libXfont-X11R7.2 +libXrandr-X11R7.2 +xtrans-X11R7.2 +libX11-X11R7.2 @TARGET_x86
28 endef
29
30 define Build/Configure
31 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
32 if [ -x $(CONFIGURE_CMD) ]; then \
33 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
34 $(CONFIGURE_VARS) \
35 $(CONFIGURE_CMD) \
36 $(CONFIGURE_ARGS_XTRA) \
37 $(CONFIGURE_ARGS) \
38 --enable-composite --enable-kdrive \
39 --disable-dga --disable-dri --disable-xinerama \
40 --disable-xf86misc --disable-xf86vidmode \
41 --disable-xorg --disable-xorgcfg \
42 --disable-xkb --disable-xnest --disable-xvfb \
43 --disable-xevie --disable-xprint --disable-xtrap \
44 --disable-dmx --disable-w100 \
45 --with-default-font-path=built-ins \
46 --enable-tslib --enable-xcalibrate \
47 ac_cv_file__usr_share_X11_sgml_defs_ent=no
48 fi;\
49 )
50 endef
51
52 define Build/Compile
53 $(MAKE) -C $(PKG_BUILD_DIR)
54 endef
55
56 define Package/xorg-kdrive-X11R7.2/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libfreetype.so* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,xorg-kdrive-X11R7.2))