pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add a generic fonts.mk makefile fragment.
details: https://anonhg.NetBSD.org/pkgsrc/rev/4fa5b9f60a9d
branches: trunk
changeset: 394128:4fa5b9f60a9d
user: maya <maya%pkgsrc.org@localhost>
date: Thu Apr 04 07:34:11 2019 +0000
description:
Add a generic fonts.mk makefile fragment.
Reviewed by rillig in
http://mail-index.netbsd.org/tech-pkg/2019/03/05/msg020895.html
I am only adding TTF and OTF handling because I don't know enough about
the other font formats. :)
diffstat:
mk/fonts.mk | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diffs (31 lines):
diff -r a71a14fad9b3 -r 4fa5b9f60a9d mk/fonts.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/fonts.mk Thu Apr 04 07:34:11 2019 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: fonts.mk,v 1.12 2019/04/04 07:34:11 maya Exp $
+#
+# Install .otf and .ttf font files.
+#
+# The following variables may be used to tweak the installation path:
+#
+# TTF_FONTS_DIR is the install directory for .ttf files
+#
+# OTF_FONTS_DIR is the install directory for .otf files
+
+NO_CONFIGURE?= yes
+NO_BUILD?= yes
+
+TTF_FONTS_DIR?= ${PREFIX}/share/fonts/X11/TTF
+OTF_FONTS_DIR?= ${PREFIX}/share/fonts/X11/OTF
+
+INSTALLATION_DIRS+= ${TTF_FONTS_DIR} ${OTF_FONTS_DIR}
+
+do-install: install-fonts
+
+install-fonts:
+ ${STEP_MSG} "Installing all .otf and .ttf files from " ${WRKSRC}
+ find ${WRKSRC} -name '*.ttf' \
+ -exec ${INSTALL_DATA} "{}" ${DESTDIR}${TTF_FONTS_DIR} ";"
+ find ${WRKSRC} -name '*.otf' \
+ -exec ${INSTALL_DATA} "{}" ${DESTDIR}${OTF_FONTS_DIR} ";"
+
Home |
Main Index |
Thread Index |
Old Index