From: Thorsten Scherer <t.scherer@eckelmann.de>
To: ptxdist@pengutronix.de
Cc: Thorsten Scherer <t.scherer@eckelmann.de>
Subject: [ptxdist] [PATCH] xorg-font-ttf-nanum-gothic: New package
Date: Fri, 24 Jul 2026 08:25:58 +0200 [thread overview]
Message-ID: <20260724062558.57938-1-t.scherer@eckelmann.de> (raw)
Signed-off-by: Thorsten Scherer <t.scherer@eckelmann.de>
---
rules/xorg-font-ttf-nanum-gothic.in | 10 ++++
rules/xorg-font-ttf-nanum-gothic.make | 74 +++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
create mode 100644 rules/xorg-font-ttf-nanum-gothic.in
create mode 100644 rules/xorg-font-ttf-nanum-gothic.make
diff --git a/rules/xorg-font-ttf-nanum-gothic.in b/rules/xorg-font-ttf-nanum-gothic.in
new file mode 100644
index 000000000000..97ccd4fddaab
--- /dev/null
+++ b/rules/xorg-font-ttf-nanum-gothic.in
@@ -0,0 +1,10 @@
+## SECTION=multimedia_xorg_font_ttf
+
+config XORG_FONT_TTF_NANUM_GOTHIC
+ tristate
+ select XORG_FONTS
+ depends on XORG_FONT_TTF
+ prompt "nanum gothic"
+ help
+ NanumGothic is a Korean sans-serif font family created by NAVER,
+ covering Hangul, Hanja and Latin glyphs.
diff --git a/rules/xorg-font-ttf-nanum-gothic.make b/rules/xorg-font-ttf-nanum-gothic.make
new file mode 100644
index 000000000000..c43b5ba54108
--- /dev/null
+++ b/rules/xorg-font-ttf-nanum-gothic.make
@@ -0,0 +1,74 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2026 by Thorsten Scherer <t.scherer@eckelmann.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_XORG_FONT_TTF_NANUM_GOTHIC) += xorg-font-ttf-nanum-gothic
+
+#
+# Paths and names
+#
+XORG_FONT_TTF_NANUM_GOTHIC_VERSION := 20200506
+XORG_FONT_TTF_NANUM_GOTHIC_SHA256 := 157803748198151250a3cf7cb03aef844e408e9c98849dd889e191846aacad4b
+XORG_FONT_TTF_NANUM_GOTHIC := fonts-nanum-$(XORG_FONT_TTF_NANUM_GOTHIC_VERSION)
+XORG_FONT_TTF_NANUM_GOTHIC_SUFFIX := tar.xz
+# upstream (hangeul.naver.com) has no stable URL; use the Debian archived source instead
+XORG_FONT_TTF_NANUM_GOTHIC_URL := https://snapshot.debian.org/archive/debian/20200515T024132Z/pool/main/f/fonts-nanum/fonts-nanum_$(XORG_FONT_TTF_NANUM_GOTHIC_VERSION).orig.$(XORG_FONT_TTF_NANUM_GOTHIC_SUFFIX)
+XORG_FONT_TTF_NANUM_GOTHIC_MD5 := 6b4d390e048d809d4152cea82e5ec6c4
+XORG_FONT_TTF_NANUM_GOTHIC_SOURCE := $(SRCDIR)/$(XORG_FONT_TTF_NANUM_GOTHIC).$(XORG_FONT_TTF_NANUM_GOTHIC_SUFFIX)
+XORG_FONT_TTF_NANUM_GOTHIC_DIR := $(BUILDDIR)/$(XORG_FONT_TTF_NANUM_GOTHIC)
+XORG_FONT_TTF_NANUM_GOTHIC_LICENSE := OFL-1.1
+
+XORG_FONT_TTF_NANUM_GOTHIC_CONF_TOOL := NO
+XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR := $(XORG_FONTDIR)/truetype/nanum
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-nanum-gothic.compile:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+# only the plain Sans-serif weights; the upstream archive also ships
+# Myeongjo/Brush/Pen/BarunGothic/Square variants we don't need here
+$(STATEDIR)/xorg-font-ttf-nanum-gothic.install:
+ @$(call targetinfo)
+ @rm -rf $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)
+ @install -d $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)$(XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR)
+ @install -m 644 \
+ $(XORG_FONT_TTF_NANUM_GOTHIC_DIR)/NanumGothic.ttf \
+ $(XORG_FONT_TTF_NANUM_GOTHIC_DIR)/NanumGothicBold.ttf \
+ $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)$(XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR)
+ @mkfontdir $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)$(XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR)
+ @mkfontscale $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)$(XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-nanum-gothic.targetinstall:
+ @$(call targetinfo)
+ @$(call install_init, xorg-font-ttf-nanum-gothic)
+ @$(call install_fixup, xorg-font-ttf-nanum-gothic,PRIORITY,optional)
+ @$(call install_fixup, xorg-font-ttf-nanum-gothic,SECTION,base)
+ @$(call install_fixup, xorg-font-ttf-nanum-gothic,AUTHOR,"Thorsten Scherer <t.scherer@eckelmann.de>")
+ @$(call install_fixup, xorg-font-ttf-nanum-gothic,DESCRIPTION,missing)
+
+ @$(call install_tree, xorg-font-ttf-nanum-gothic, 0, 0, -, /usr)
+
+ @$(call install_finish, xorg-font-ttf-nanum-gothic)
+ @$(call touch)
+
+# vim: syntax=make
--
2.53.0
reply other threads:[~2026-07-24 6:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260724062558.57938-1-t.scherer@eckelmann.de \
--to=t.scherer@eckelmann.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox