source: packages/Xorg/font/dejavu-fonts-ttf/Makefile @ 27613

Last change on this file since 27613 was 27613, checked in by jow, 5 years ago

[packages] dejavu-fonts-ttf: make sure that virtual parent package is built

File size: 1.9 KB
Line 
1#
2# Copyright (C) 2008-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=dejavu-fonts-ttf
10PKG_VERSION:=2.23
11PKG_RELEASE:=1
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
15PKG_SOURCE_URL:=@SF/dejavu
16PKG_MD5SUM:=ff871dff0b3e8a11cd5c54478f11073f
17
18include $(INCLUDE_DIR)/package.mk
19
20FILES:= \
21        DejaVuSans-BoldOblique \
22        DejaVuSans-Bold \
23        DejaVuSansCondensed-BoldOblique \
24        DejaVuSansCondensed-Bold \
25        DejaVuSansCondensed-Oblique \
26        DejaVuSansCondensed \
27        DejaVuSans-ExtraLight \
28        DejaVuSansMono-BoldOblique \
29        DejaVuSansMono-Bold \
30        DejaVuSansMono-Oblique \
31        DejaVuSansMono \
32        DejaVuSans-Oblique \
33        DejaVuSans \
34        DejaVuSerif-BoldItalic \
35        DejaVuSerif-Bold \
36        DejaVuSerifCondensed-BoldItalic \
37        DejaVuSerifCondensed-Bold \
38        DejaVuSerifCondensed-Italic \
39        DejaVuSerifCondensed \
40        DejaVuSerif-Italic \
41        DejaVuSerif
42
43define PartGen
44define Package/dejavu-fonts-ttf-$(1)
45  SECTION:=xorg-font
46  CATEGORY:=Xorg
47  SUBMENU:=font
48  TITLE:=$(1)
49  DEPENDS:=dejavu-fonts-ttf
50endef
51endef
52
53define Package/dejavu-fonts-ttf
54  TITLE:=dejavu-fonts-ttf
55  SECTION:=xorg-font
56  SUBMENU:=font
57  CATEGORY:=Xorg
58  URL:=http://dejavu.sourceforge.net/
59  DEPENDS:=@DISPLAY_SUPPORT
60endef
61
62define Package/dejavu-fonts-ttf/install
63        true
64endef
65
66$(foreach file,$(FILES),$(eval $(call PartGen,$(file))))
67
68define Build/Compile
69        true
70endef
71
72define Build/Configure
73        true
74endef
75
76define PartInstall
77define Package/dejavu-fonts-ttf-$(1)/install
78        $(INSTALL_DIR) \
79                $$(1)/usr/share/fonts/ttf-dejavu
80
81        $(INSTALL_DATA) \
82                $(PKG_BUILD_DIR)/ttf/$(1).ttf \
83                $$(1)/usr/share/fonts/ttf-dejavu/
84endef
85endef
86
87$(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
88
89$(eval $(call BuildPackage,dejavu-fonts-ttf))
90$(foreach file,$(FILES),$(eval $(call BuildPackage,dejavu-fonts-ttf-$(file))))
91
Note: See TracBrowser for help on using the repository browser.