[packages/dejavu-fonts-ttf] split package - one package each ttf file
git-svn-id: svn://svn.openwrt.org/openwrt/packages@27259 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
eaeb424901
commit
eeeaeca6b2
@ -17,14 +17,49 @@ PKG_MD5SUM:=ff871dff0b3e8a11cd5c54478f11073f
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/dejavu-fonts-ttf
|
FILES:= \
|
||||||
|
DejaVuSans-BoldOblique \
|
||||||
|
DejaVuSans-Bold \
|
||||||
|
DejaVuSansCondensed-BoldOblique \
|
||||||
|
DejaVuSansCondensed-Bold \
|
||||||
|
DejaVuSansCondensed-Oblique \
|
||||||
|
DejaVuSansCondensed \
|
||||||
|
DejaVuSans-ExtraLight \
|
||||||
|
DejaVuSansMono-BoldOblique \
|
||||||
|
DejaVuSansMono-Bold \
|
||||||
|
DejaVuSansMono-Oblique \
|
||||||
|
DejaVuSansMono \
|
||||||
|
DejaVuSans-Oblique \
|
||||||
|
DejaVuSans \
|
||||||
|
DejaVuSerif-BoldItalic \
|
||||||
|
DejaVuSerif-Bold \
|
||||||
|
DejaVuSerifCondensed-BoldItalic \
|
||||||
|
DejaVuSerifCondensed-Bold \
|
||||||
|
DejaVuSerifCondensed-Italic \
|
||||||
|
DejaVuSerifCondensed \
|
||||||
|
DejaVuSerif-Italic \
|
||||||
|
DejaVuSerif
|
||||||
|
|
||||||
|
define PartGen
|
||||||
|
define Package/dejavu-fonts-ttf-$(1)
|
||||||
SECTION:=xorg-font
|
SECTION:=xorg-font
|
||||||
CATEGORY:=Xorg
|
CATEGORY:=Xorg
|
||||||
SUBMENU:=font
|
SUBMENU:=font
|
||||||
DEPENDS:= @DISPLAY_SUPPORT
|
TITLE:=$(1)
|
||||||
TITLE:=dejavu-fonts-ttf
|
DEPENDS:=dejavu-fonts-ttf
|
||||||
URL:=http://dejavu.sourceforge.net/
|
|
||||||
endef
|
endef
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/dejavu-fonts-ttf
|
||||||
|
TITLE:=dejavu-fonts-ttf
|
||||||
|
SECTION:=xorg-font
|
||||||
|
SUBMENU:=font
|
||||||
|
CATEGORY:=Xorg
|
||||||
|
URL:=http://dejavu.sourceforge.net/
|
||||||
|
DEPENDS:=@DISPLAY_SUPPORT
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(foreach file,$(FILES),$(eval $(call PartGen,$(file))))
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
true
|
true
|
||||||
@ -34,10 +69,19 @@ define Build/Configure
|
|||||||
true
|
true
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dejavu-fonts-ttf/install
|
define PartInstall
|
||||||
$(INSTALL_DIR) $(1)/usr/share/fonts/ttf-dejavu
|
define Package/dejavu-fonts-ttf-$(1)/install
|
||||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/ttf/*.ttf $(1)/usr/share/fonts/ttf-dejavu
|
$(INSTALL_DIR) \
|
||||||
|
$$(1)/usr/share/fonts/ttf-dejavu
|
||||||
|
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_BUILD_DIR)/ttf/$(1).ttf \
|
||||||
|
$$(1)/usr/share/fonts/ttf-dejavu/
|
||||||
|
endef
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,dejavu-fonts-ttf))
|
$(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,dejavu-fonts-ttf))
|
||||||
|
$(foreach file,$(FILES),$(eval $(call BuildPackage,dejavu-fonts-ttf-$(file))))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user