2019-04-04 12:27:35 +02:00
|
|
|
# $NetBSD: fonts.mk,v 1.13 2019/04/04 10:27:35 maya Exp $
|
2019-04-04 09:34:11 +02:00
|
|
|
#
|
|
|
|
# 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}
|
2019-04-04 12:27:35 +02:00
|
|
|
${FIND} ${WRKSRC} -iname '*.ttf' -print | \
|
|
|
|
${XARGS} -I % ${INSTALL_DATA} % ${DESTDIR}${TTF_FONTS_DIR}
|
|
|
|
${FIND} ${WRKSRC} -iname '*.otf' -print | \
|
|
|
|
${XARGS} -I % ${INSTALL_DATA} % ${DESTDIR}${OTF_FONTS_DIR}
|
2019-04-04 09:34:11 +02:00
|
|
|
|