pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Experimental attempt to standardize where fonts are installed.



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <cfkoch%edgebsd.org@localhost>
Pushed By:	cfkoch
Date:		Mon Sep 24 18:12:24 2018 -0700
Changeset:	cb5db3bf4c3c9d68e9adc83d89d7b6946b9216eb

Modified Files:
	mk/DESC
Added Files:
	mk/fonts.mk

Log Message:
Experimental attempt to standardize where fonts are installed.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cb5db3bf4c3c9d68e9adc83d89d7b6946b9216eb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mk/DESC     |  3 +++
 mk/fonts.mk | 18 ++++++++++++++++++
 2 files changed, 21 insertions(+)

diffs:
diff --git a/mk/DESC b/mk/DESC
index 3266e50eb1..9529473b5c 100644
--- a/mk/DESC
+++ b/mk/DESC
@@ -49,3 +49,6 @@ yesno.mk - Standardizes how to specify boolean values in Makefiles, both
    universal and actual first-class words (there's nothing special about
    them otherwise).  Eliminates subtle inconsistencies (does this variable
    support "YES" uppercase or not?) and significantly DRYs up code.
+
+fonts.mk - Standardizes where fonts are installed. Avoids needless
+duplication across all the Makefiles for font packages.
diff --git a/mk/fonts.mk b/mk/fonts.mk
new file mode 100644
index 0000000000..a47a29f025
--- /dev/null
+++ b/mk/fonts.mk
@@ -0,0 +1,18 @@
+# $NetBSD$
+#
+# This Makefile fragment standardizes where fonts are installed.
+#
+# It exposes the following variables:
+#
+#     FONTDIR -- where fonts are installed.
+#
+#     TTF_FONTDIR -- where TTF fonts in particular are installed.
+#
+
+.ifndef FONTS_MK
+FONTS_MK=	# defined
+
+FONTDIR?=	${PREFIX}/share/fonts/X11
+TTF_FONTDIR?=	${FONTDIR}/TTF
+
+.endif # FONTS_MK


Home | Main Index | Thread Index | Old Index