You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2008-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=dejavu-fonts-ttf
  9. PKG_VERSION:=2.37
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/dejavu
  13. PKG_HASH:=fa9ca4d13871dd122f61258a80d01751d603b4d3ee14095d65453b4e846e17d7
  14. include $(INCLUDE_DIR)/package.mk
  15. FILES:= \
  16. DejaVuSerif-Italic \
  17. DejaVuSerifCondensed-Italic \
  18. DejaVuSerifCondensed-BoldItalic \
  19. DejaVuSerifCondensed-Bold \
  20. DejaVuSerifCondensed \
  21. DejaVuSerif-BoldItalic \
  22. DejaVuSerif-Bold \
  23. DejaVuSerif \
  24. DejaVuSans-Oblique \
  25. DejaVuSansMono-Oblique \
  26. DejaVuSansMono-BoldOblique \
  27. DejaVuSansMono-Bold \
  28. DejaVuSansMono \
  29. DejaVuSans-ExtraLight \
  30. DejaVuSansCondensed-Oblique \
  31. DejaVuSansCondensed-BoldOblique \
  32. DejaVuSansCondensed-Bold \
  33. DejaVuSansCondensed \
  34. DejaVuSans-BoldOblique \
  35. DejaVuSans-Bold \
  36. DejaVuSans \
  37. DejaVuMathTeXGyre
  38. define PartGen
  39. define Package/dejavu-fonts-ttf-$(1)
  40. $(call Package/dejavu-fonts-ttf/Default)
  41. TITLE:=$(1)
  42. endef
  43. endef
  44. define Package/dejavu-fonts-ttf/Default
  45. TITLE:=dejavu-fonts-ttf
  46. SECTION:=fonts
  47. CATEGORY:=Fonts
  48. SUBMENU:=DejaVu
  49. URL:=http://dejavu.sourceforge.net/
  50. endef
  51. $(foreach file,$(FILES),$(eval $(call PartGen,$(file))))
  52. define Build/Compile
  53. true
  54. endef
  55. define Build/Configure
  56. true
  57. endef
  58. define PartInstall
  59. define Package/dejavu-fonts-ttf-$(1)/install
  60. $(INSTALL_DIR) \
  61. $$(1)/usr/share/fonts/ttf-dejavu
  62. $(INSTALL_DATA) \
  63. $(PKG_BUILD_DIR)/ttf/$(1).ttf \
  64. $$(1)/usr/share/fonts/ttf-dejavu/
  65. endef
  66. endef
  67. $(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
  68. $(foreach file,$(FILES),$(eval $(call BuildPackage,dejavu-fonts-ttf-$(file))))