XOrg fonts now only generate codepages, that we actually need
[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 #CONFIGURE_ARGS_XTRA+=--disable-iso8859-2 --disable-iso8859-3 --disable-iso8859-4 --disable-iso8859-5 --disable-iso8859-7 --disable-iso8859-8 --disable-iso8859-9 --disable-iso8859-10 --disable-iso8859-11 --disable-iso8859-13 --disable-iso8859-14 --disable-iso8859-16 --disable-koi8-r --disable-jisx0201
16
17 define Build/Compile
18 UTIL_DIR="$(STAGING_DIR)/usr/lib/X11/fonts/util/" make -e -C $(PKG_BUILD_DIR)
19 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
20 if [ -f "$(find $(PKG_INSTALL_DIR) -name fonts.dir)" ]; then \
21 mv `find $(PKG_INSTALL_DIR) -name fonts.dir` \
22 `find $(PKG_INSTALL_DIR) -name fonts.dir`.$(PKG_NAME);\
23 fi
24 endef
25
26 define Build/Configure
27 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
28 if [ -x $(CONFIGURE_CMD) ]; then \
29 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
30 $(CONFIGURE_VARS) \
31 $(CONFIGURE_CMD) \
32 --disable-iso8859-2 --disable-iso8859-3 --disable-iso8859-4 --disable-iso8859-5 --disable-iso8859-7 --disable-iso8859-8 --disable-iso8859-9 --disable-iso8859-10 --disable-iso8859-11 --disable-iso8859-13 --disable-iso8859-14 --disable-iso8859-16 --disable-koi8-r --disable-jisx0201 \
33 $(CONFIGURE_ARGS_XTRA) \
34 $(CONFIGURE_ARGS) ;\
35 fi \
36 )
37 endef
38
39 define Package/${PKG_NAME}/install
40 $(INSTALL_DIR) $(1)/usr/lib/
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
42 endef