From c7dca5a962dc7ca7fb65d83584d8ea6a576c944d Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Mon, 13 Feb 2017 20:09:40 +0100 Subject: [PATCH] package dejavu fonts Signed-off-by: Mirko Vogt --- fonts/dejavu-fonts-ttf/Makefile | 81 +++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 fonts/dejavu-fonts-ttf/Makefile diff --git a/fonts/dejavu-fonts-ttf/Makefile b/fonts/dejavu-fonts-ttf/Makefile new file mode 100644 index 0000000000..7a0885c91b --- /dev/null +++ b/fonts/dejavu-fonts-ttf/Makefile @@ -0,0 +1,81 @@ +# +# Copyright (C) 2008-2016 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=dejavu-fonts-ttf +PKG_VERSION:=2.37 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=@SF/dejavu +PKG_HASH:=fa9ca4d13871dd122f61258a80d01751d603b4d3ee14095d65453b4e846e17d7 + +include $(INCLUDE_DIR)/package.mk + +FILES:= \ + DejaVuSerif-Italic \ + DejaVuSerifCondensed-Italic \ + DejaVuSerifCondensed-BoldItalic \ + DejaVuSerifCondensed-Bold \ + DejaVuSerifCondensed \ + DejaVuSerif-BoldItalic \ + DejaVuSerif-Bold \ + DejaVuSerif \ + DejaVuSans-Oblique \ + DejaVuSansMono-Oblique \ + DejaVuSansMono-BoldOblique \ + DejaVuSansMono-Bold \ + DejaVuSansMono \ + DejaVuSans-ExtraLight \ + DejaVuSansCondensed-Oblique \ + DejaVuSansCondensed-BoldOblique \ + DejaVuSansCondensed-Bold \ + DejaVuSansCondensed \ + DejaVuSans-BoldOblique \ + DejaVuSans-Bold \ + DejaVuSans \ + DejaVuMathTeXGyre + +define PartGen +define Package/dejavu-fonts-ttf-$(1) +$(call Package/dejavu-fonts-ttf/Default) + TITLE:=$(1) +endef +endef + +define Package/dejavu-fonts-ttf/Default + TITLE:=dejavu-fonts-ttf + SECTION:=fonts + CATEGORY:=Fonts + SUBMENU:=DejaVu + URL:=http://dejavu.sourceforge.net/ +endef + +$(foreach file,$(FILES),$(eval $(call PartGen,$(file)))) + +define Build/Compile + true +endef + +define Build/Configure + true +endef + +define PartInstall +define Package/dejavu-fonts-ttf-$(1)/install + $(INSTALL_DIR) \ + $$(1)/usr/share/fonts/ttf-dejavu + + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/ttf/$(1).ttf \ + $$(1)/usr/share/fonts/ttf-dejavu/ +endef +endef + +$(foreach file,$(FILES),$(eval $(call PartInstall,$(file)))) + +$(foreach file,$(FILES),$(eval $(call BuildPackage,dejavu-fonts-ttf-$(file)))) -- 2.30.2