diff --git a/buildroot/Config.in b/buildroot/Config.in index 433d8374..500cc47a 100644 --- a/buildroot/Config.in +++ b/buildroot/Config.in @@ -68,8 +68,7 @@ source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/enable-vc4kms/Config.in" source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/hifiberry-psplash/Config.in" source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/hifiberry-weston/Config.in" source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/hifiberry-localbrowser/Config.in" - - +source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/nanumfont/Config.in" comment "Libraries" #source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/caps/Config.in" diff --git a/buildroot/package/hifiberry-localbrowser/Config.in b/buildroot/package/hifiberry-localbrowser/Config.in index 39980d0a..674f6a61 100644 --- a/buildroot/package/hifiberry-localbrowser/Config.in +++ b/buildroot/package/hifiberry-localbrowser/Config.in @@ -22,5 +22,6 @@ config BR2_PACKAGE_HIFIBERRY_LOCALBROWSER select BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND select BR2_PACKAGE_WAFFLE_SUPPORTS_GBM select BR2_PACKAGE_WEBP_DEMUX + select BR2_PACKAGE_NANUMFONT diff --git a/buildroot/package/nanumfont/Config.in b/buildroot/package/nanumfont/Config.in new file mode 100644 index 00000000..e80c9b80 --- /dev/null +++ b/buildroot/package/nanumfont/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_NANUMFONT + bool "nanumfont" + help + NanumGothicCoding font package + + This package downloads the NanumGothicCoding font from GitHub + and installs it + diff --git a/buildroot/package/nanumfont/nanumfont.mk b/buildroot/package/nanumfont/nanumfont.mk new file mode 100644 index 00000000..37a6e4b0 --- /dev/null +++ b/buildroot/package/nanumfont/nanumfont.mk @@ -0,0 +1,23 @@ +NANUMFONT_VERSION = 2.5 +NANUMFONT_SITE = https://github.com/naver/nanumfont/releases/download/VER$(NANUMFONT_VERSION) +NANUMFONT_SOURCE = NanumGothicCoding-$(NANUMFONT_VERSION).zip +NANUMFONT_SITE_METHOD = wget + +# Define extraction directory +NANUMFONT_EXTRACT_DIR = $(BUILD_DIR)/nanumfont-$(NANUMFONT_VERSION) + +define NANUMFONT_EXTRACT_CMDS + unzip $(DL_DIR)/nanumfont/$(NANUMFONT_SOURCE) -d $(@D) +endef + +define NANUMFONT_BUILD_CMDS + # No build commands required +endef + +define NANUMFONT_INSTALL_TARGET_CMDS + $(INSTALL) -d $(TARGET_DIR)/usr/share/fonts/NanumFont + cp -r $(NANUMFONT_EXTRACT_DIR)/* $(TARGET_DIR)/usr/share/fonts/NanumFont + ls -lR $(TARGET_DIR)/usr/share/fonts/NanumFont +endef + +$(eval $(generic-package))