mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 04:36:33 +00:00
Allow selection of individual Liberation font sets
We don't always want all the font sets on small systems. [Peter: cleanup Config.in, ensure target dir gets created first] Signed-off-by: Charles Manning <cdhmanning@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
b6b9d86a3e
commit
73f7994e53
@ -5,3 +5,18 @@ config BR2_PACKAGE_LIBERATION
|
|||||||
three most commonly used fonts on Microsoft systems:
|
three most commonly used fonts on Microsoft systems:
|
||||||
Times New Roman, Arial, and Courier New.
|
Times New Roman, Arial, and Courier New.
|
||||||
|
|
||||||
|
if BR2_PACKAGE_LIBERATION
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIBERATION_MONO
|
||||||
|
bool "mono fonts"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIBERATION_SANS
|
||||||
|
bool "sans fonts"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIBERATION_SERIF
|
||||||
|
bool "serif fonts"
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif
|
||||||
|
@ -9,9 +9,29 @@ LIBERATION_SOURCE = liberation-fonts-ttf-$(LIBERATION_VERSION).tar.gz
|
|||||||
|
|
||||||
LIBERATION_TARGET_DIR = $(TARGET_DIR)/usr/share/fonts/liberation
|
LIBERATION_TARGET_DIR = $(TARGET_DIR)/usr/share/fonts/liberation
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBERATION_MONO),y)
|
||||||
|
define LIBERATION_INSTALL_MONO
|
||||||
|
$(INSTALL) -m 644 $(@D)/LiberationMono*.ttf $(LIBERATION_TARGET_DIR)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBERATION_SANS),y)
|
||||||
|
define LIBERATION_INSTALL_SANS
|
||||||
|
$(INSTALL) -m 644 $(@D)/LiberationSans*.ttf $(LIBERATION_TARGET_DIR)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBERATION_SERIF),y)
|
||||||
|
define LIBERATION_INSTALL_SERIF
|
||||||
|
$(INSTALL) -m 644 $(@D)/LiberationSerif*.ttf $(LIBERATION_TARGET_DIR)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define LIBERATION_INSTALL_TARGET_CMDS
|
define LIBERATION_INSTALL_TARGET_CMDS
|
||||||
mkdir -p $(LIBERATION_TARGET_DIR)
|
mkdir -p $(LIBERATION_TARGET_DIR)
|
||||||
$(INSTALL) -m 644 $(@D)/*.ttf $(LIBERATION_TARGET_DIR)
|
$(LIBERATION_INSTALL_MONO)
|
||||||
|
$(LIBERATION_INSTALL_SANS)
|
||||||
|
$(LIBERATION_INSTALL_SERIF)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define LIBERATION_CLEAN_CMDS
|
define LIBERATION_CLEAN_CMDS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user