added the initial version of the XOrg support. still lots of cleaning up that needs...
[openwrt/svn-archive/archive.git] / XOrg / font / common.mk
1 #
2 # Copyright (C) 2007 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 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.2/src/font
10
11 _CATEGORY:=fonts
12 _DEPEND+="+xorg-server-X11R7.2 +font-util-X11R7.1"
13 include ../../common.mk
14
15 define Build/Compile
16 UTIL_DIR="$(STAGING_DIR)/usr/lib/X11/fonts/util/" make -e -C $(PKG_BUILD_DIR)
17 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
18 if [ -f "$(find $(PKG_INSTALL_DIR) -name fonts.dir)" ]; then \
19 mv `find $(PKG_INSTALL_DIR) -name fonts.dir` \
20 `find $(PKG_INSTALL_DIR) -name fonts.dir`.$(PKG_NAME);\
21 fi
22 endef
23
24 define Build/Configure
25 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
26 if [ -x $(CONFIGURE_CMD) ]; then \
27 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
28 $(CONFIGURE_VARS) \
29 $(CONFIGURE_CMD) \
30 $(CONFIGURE_ARGS_XTRA) \
31 $(CONFIGURE_ARGS) ;\
32 fi \
33 )
34 endef
35
36 define Package/${PKG_NAME}/install
37 $(INSTALL_DIR) $(1)/usr/lib/
38 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
39 endef