diff options
author | Luotao Fu <l.fu@pengutronix.de> | 2006-12-15 16:27:44 +0000 |
---|---|---|
committer | Luotao Fu <l.fu@pengutronix.de> | 2006-12-15 16:27:44 +0000 |
commit | 2f651b80847f7aa7d29c552fa6fa9fe14aee5bc9 (patch) | |
tree | f9d5c4f1347d28e1610e3327157aa8c4964013a7 /rules/xorg-font-intl.make | |
parent | 565fad40798172bf3effa9c4eb71f43ce752a94d (diff) | |
download | ptxdist-2f651b80847f7aa7d29c552fa6fa9fe14aee5bc9.tar.gz ptxdist-2f651b80847f7aa7d29c552fa6fa9fe14aee5bc9.tar.xz |
added internalisation fonts
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6505 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/xorg-font-intl.make')
-rw-r--r-- | rules/xorg-font-intl.make | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/rules/xorg-font-intl.make b/rules/xorg-font-intl.make new file mode 100644 index 000000000..2366f8985 --- /dev/null +++ b/rules/xorg-font-intl.make @@ -0,0 +1,160 @@ +# -*-makefile-*- +# $Id: template 6487 2006-12-07 20:55:55Z rsc $ +# +# Copyright (C) 2006 by Luotao Fu <lfu@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_XORG_FONT_INTL) += xorg-font-intl + +# +# Paths and names +# +XORG_FONT_INTL_VERSION := 1.2.1 +XORG_FONT_INTL := intlfonts-$(XORG_FONT_INTL_VERSION) +XORG_FONT_INTL_SUFFIX := tar.gz +XORG_FONT_INTL_URL := http://ftp.gnu.org/pub/gnu/intlfonts/$(XORG_FONT_INTL).$(XORG_FONT_INTL_SUFFIX) +XORG_FONT_INTL_SOURCE := $(SRCDIR)/$(XORG_FONT_INTL).$(XORG_FONT_INTL_SUFFIX) +XORG_FONT_INTL_DIR := $(BUILDDIR)/$(XORG_FONT_INTL) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +xorg-font-intl_get: $(STATEDIR)/xorg-font-intl.get + +$(STATEDIR)/xorg-font-intl.get: $(xorg-font-intl_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(XORG_FONT_INTL_SOURCE): + @$(call targetinfo, $@) + @$(call get, XORG_FONT_INTL) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +xorg-font-intl_extract: $(STATEDIR)/xorg-font-intl.extract + +$(STATEDIR)/xorg-font-intl.extract: $(xorg-font-intl_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(XORG_FONT_INTL_DIR)) + @$(call extract, XORG_FONT_INTL) + @$(call patchin, XORG_FONT_INTL) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +xorg-font-intl_prepare: $(STATEDIR)/xorg-font-intl.prepare + +XORG_FONT_INTL_PATH := PATH=$(CROSS_PATH) +XORG_FONT_INTL_ENV := $(CROSS_ENV) + +# +# autoconf +# +XORG_FONT_INTL_AUTOCONF := $(CROSS_AUTOCONF_USR) + +$(STATEDIR)/xorg-font-intl.prepare: $(xorg-font-intl_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(XORG_FONT_INTL_DIR)/config.cache) + cd $(XORG_FONT_INTL_DIR) && \ + $(XORG_FONT_INTL_PATH) $(XORG_FONT_INTL_ENV) \ + ./configure $(XORG_FONT_INTL_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +xorg-font-intl_compile: $(STATEDIR)/xorg-font-intl.compile +XORG_FONT_INTL_MAKEVARS := \ + fontdir=.\ + COMPRESS=gzip \ + SUBDIRS_X= \ + SUBDIRS_BIG= +ifdef PTXCONF_XORG_FONT_INTL_CHIN + XORG_FONT_INTL_MAKEVARS += SUBDIRS=Chinese SUBDIR+=Chinese.X +endif + +ifdef PTXCONF_XORG_FONT_INTL_CHIN_BIG + XORG_FONT_INTL_MAKEVARS += SUBDIRS=Chinese.BIG +endif + +ifdef PTXCONF_XORG_FONT_INTL_JAP + XORG_FONT_INTL_MAKEVARS += SUBDIRS=Japanese SUBDIR+=Japanese.X +endif + +ifdef PTXCONF_XORG_FONT_INTL_JAP_BIG + XORG_FONT_INTL_MAKEVARS += SUBDIRS=Japanese.BIG +endif + +ifdef PTXCONF_XORG_FONT_INTL_ASIAN + XORG_FONT_INTL_MAKEVARS += SUBDIRS+=Asian +endif + + +$(STATEDIR)/xorg-font-intl.compile: $(xorg-font-intl_compile_deps_default) + @$(call targetinfo, $@) + cd $(XORG_FONT_INTL_DIR) && $(XORG_FONT_INTL_PATH) $(MAKE) $(XORG_FONT_INTL_MAKEVARS) pcf + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +xorg-font-intl_install: $(STATEDIR)/xorg-font-intl.install + +$(STATEDIR)/xorg-font-intl.install: $(xorg-font-intl_install_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +xorg-font-intl_targetinstall: $(STATEDIR)/xorg-font-intl.targetinstall + +$(STATEDIR)/xorg-font-intl.targetinstall: $(xorg-font-intl_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, xorg-font-intl) + @$(call install_fixup, xorg-font-intl,PACKAGE,xorg-font-intl) + @$(call install_fixup, xorg-font-intl,PRIORITY,optional) + @$(call install_fixup, xorg-font-intl,VERSION,$(XORG_FONT_INTL_VERSION)) + @$(call install_fixup, xorg-font-intl,SECTION,base) + @$(call install_fixup, xorg-font-intl,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, xorg-font-intl,DEPENDS,) + @$(call install_fixup, xorg-font-intl,DESCRIPTION,missing) + + @cd $(XORG_FONT_INTL_DIR); \ + for file in *.pcf.gz; do \ + if [ -e $$file ];then \ + $(call install_copy, xorg-font-intl, 0, 0, 0644, $$file, $(XORG_FONT_DIR)/misc/$$file, n); \ + fi; \ + done; + + @$(call install_finish, xorg-font-intl) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +xorg-font-intl_clean: + rm -rf $(STATEDIR)/xorg-font-intl.* + rm -rf $(IMAGEDIR)/xorg-font-intl_* + rm -rf $(XORG_FONT_INTL_DIR) + +# vim: syntax=make |