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.

84 lines
1.9 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. PKG_LICENSE:=Bitstream-Vera-Fonts-Copyright Arev-Fonts-Copyright Public-Domain
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Mirko Vogt <mirko-dev@nanl.de>
  17. include $(INCLUDE_DIR)/package.mk
  18. FILES:= \
  19. DejaVuSerif-Italic \
  20. DejaVuSerifCondensed-Italic \
  21. DejaVuSerifCondensed-BoldItalic \
  22. DejaVuSerifCondensed-Bold \
  23. DejaVuSerifCondensed \
  24. DejaVuSerif-BoldItalic \
  25. DejaVuSerif-Bold \
  26. DejaVuSerif \
  27. DejaVuSans-Oblique \
  28. DejaVuSansMono-Oblique \
  29. DejaVuSansMono-BoldOblique \
  30. DejaVuSansMono-Bold \
  31. DejaVuSansMono \
  32. DejaVuSans-ExtraLight \
  33. DejaVuSansCondensed-Oblique \
  34. DejaVuSansCondensed-BoldOblique \
  35. DejaVuSansCondensed-Bold \
  36. DejaVuSansCondensed \
  37. DejaVuSans-BoldOblique \
  38. DejaVuSans-Bold \
  39. DejaVuSans \
  40. DejaVuMathTeXGyre
  41. define PartGen
  42. define Package/dejavu-fonts-ttf-$(1)
  43. $(call Package/dejavu-fonts-ttf/Default)
  44. TITLE:=$(1)
  45. endef
  46. endef
  47. define Package/dejavu-fonts-ttf/Default
  48. TITLE:=dejavu-fonts-ttf
  49. SECTION:=fonts
  50. CATEGORY:=Fonts
  51. SUBMENU:=DejaVu
  52. URL:=http://dejavu.sourceforge.net/
  53. endef
  54. $(foreach file,$(FILES),$(eval $(call PartGen,$(file))))
  55. define Build/Compile
  56. true
  57. endef
  58. define Build/Configure
  59. true
  60. endef
  61. define PartInstall
  62. define Package/dejavu-fonts-ttf-$(1)/install
  63. $(INSTALL_DIR) \
  64. $$(1)/usr/share/fonts/ttf-dejavu
  65. $(INSTALL_DATA) \
  66. $(PKG_BUILD_DIR)/ttf/$(1).ttf \
  67. $$(1)/usr/share/fonts/ttf-dejavu/
  68. endef
  69. endef
  70. $(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
  71. $(foreach file,$(FILES),$(eval $(call BuildPackage,dejavu-fonts-ttf-$(file))))