diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-10-21 11:09:43 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-10-27 11:10:51 +0100 |
commit | 15a0111d608ea31c4adff2e96f7a2f97e69f5b8c (patch) | |
tree | 51f0257e9795e2bb130a49f23765ae71dd058c0e /rules | |
parent | 09aa391d578f6c46d2a9c835aac634e6a2386b56 (diff) | |
download | ptxdist-15a0111d608ea31c4adff2e96f7a2f97e69f5b8c.tar.gz ptxdist-15a0111d608ea31c4adff2e96f7a2f97e69f5b8c.tar.xz |
xorg-font-ttf-android: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/xorg-font-ttf-android.in | 9 | ||||
-rw-r--r-- | rules/xorg-font-ttf-android.make | 78 |
2 files changed, 87 insertions, 0 deletions
diff --git a/rules/xorg-font-ttf-android.in b/rules/xorg-font-ttf-android.in new file mode 100644 index 000000000..f9736bc57 --- /dev/null +++ b/rules/xorg-font-ttf-android.in @@ -0,0 +1,9 @@ +## SECTION=multimedia_xorg_font_ttf + +config XORG_FONT_TTF_ANDROID + bool + select XORG_FONTS + depends on XORG_FONT_TTF + prompt "Android" + help + Fonts from the Debian android-fonts package. diff --git a/rules/xorg-font-ttf-android.make b/rules/xorg-font-ttf-android.make new file mode 100644 index 000000000..443f855aa --- /dev/null +++ b/rules/xorg-font-ttf-android.make @@ -0,0 +1,78 @@ +# -*-makefile-*- +# +# Copyright (C) 2015 by Michael Olbrich <m.olbrich@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_TTF_ANDROID) += xorg-font-ttf-android + +# +# Paths and names +# +XORG_FONT_TTF_ANDROID_VERSION := 4.4.4r2 +XORG_FONT_TTF_ANDROID_MD5 := 351432aab0853958b28daebf28f8a988 +XORG_FONT_TTF_ANDROID := fonts-android_$(XORG_FONT_TTF_ANDROID_VERSION) +XORG_FONT_TTF_ANDROID_SUFFIX := orig.tar.xz +XORG_FONT_TTF_ANDROID_URL := http://snapshot.debian.org/archive/debian/20140920T101110Z/pool/main/f/fonts-android/$(XORG_FONT_TTF_ANDROID).$(XORG_FONT_TTF_ANDROID_SUFFIX) +XORG_FONT_TTF_ANDROID_SOURCE := $(SRCDIR)/$(XORG_FONT_TTF_ANDROID).$(XORG_FONT_TTF_ANDROID_SUFFIX) +XORG_FONT_TTF_ANDROID_DIR := $(BUILDDIR)/$(XORG_FONT_TTF_ANDROID) +XORG_FONT_TTF_ANDROID_STRIP_LEVEL := 0 +XORG_FONT_TTF_ANDROID_LICENSE := Apache-2.0 +XORG_FONT_TTF_ANDROID_LICENSE_FILES := \ + file://NOTICE;md5=9645f39e9db895a4aa6e02cb57294595 + +ifdef PTXCONF_XORG_FONT_TTF_ANDROID +$(STATEDIR)/xorg-fonts.targetinstall.post: $(STATEDIR)/xorg-font-ttf-android.targetinstall +endif + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +XORG_FONT_TTF_ANDROID_CONF_TOOL := NO + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-ttf-android.compile: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-ttf-android.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-ttf-android.targetinstall: + @$(call targetinfo) + + @mkdir -p $(XORG_FONTS_DIR_INSTALL)/truetype + + @find $(XORG_FONT_TTF_ANDROID_DIR) \ + -name "*.ttf" \ + | \ + while read file; do \ + install -m 644 $${file} $(XORG_FONTS_DIR_INSTALL)/truetype; \ + done + + @$(call touch) + +# vim: syntax=make |