| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: fonts.mk,v 1.1 2017/06/01 02:06:04 jlam Exp $ | | 1 | # $NetBSD: fonts.mk,v 1.2 2017/06/07 20:24:27 jlam Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 2017 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 2017 The NetBSD Foundation, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # This code is derived from software contributed to The NetBSD Foundation | | 6 | # This code is derived from software contributed to The NetBSD Foundation |
7 | # by Johnny C. Lam. | | 7 | # by Johnny C. Lam. |
8 | # | | 8 | # |
9 | # Redistribution and use in source and binary forms, with or without | | 9 | # Redistribution and use in source and binary forms, with or without |
10 | # modification, are permitted provided that the following conditions | | 10 | # modification, are permitted provided that the following conditions |
11 | # are met: | | 11 | # are met: |
12 | # 1. Redistributions of source code must retain the above copyright | | 12 | # 1. Redistributions of source code must retain the above copyright |
13 | # notice, this list of conditions and the following disclaimer. | | 13 | # notice, this list of conditions and the following disclaimer. |
14 | # 2. Redistributions in binary form must reproduce the above copyright | | 14 | # 2. Redistributions in binary form must reproduce the above copyright |
| @@ -67,27 +67,27 @@ USE_TOOLS+= mkfontscale:run | | | @@ -67,27 +67,27 @@ USE_TOOLS+= mkfontscale:run |
67 | FILES_SUBST+= MKFONTSCALE=${TOOLS_PATH.mkfontscale:Q} | | 67 | FILES_SUBST+= MKFONTSCALE=${TOOLS_PATH.mkfontscale:Q} |
68 | . else | | 68 | . else |
69 | USE_TOOLS+= ttmkfdir:run | | 69 | USE_TOOLS+= ttmkfdir:run |
70 | FILES_SUBST+= TTMKFDIR=${TOOLS_PATH.ttmkfdir:Q} | | 70 | FILES_SUBST+= TTMKFDIR=${TOOLS_PATH.ttmkfdir:Q} |
71 | . endif | | 71 | . endif |
72 | _FONTS_DIRS.x11+= ${FONTS_DIRS.ttf} | | 72 | _FONTS_DIRS.x11+= ${FONTS_DIRS.ttf} |
73 | .endif | | 73 | .endif |
74 | .if !empty(FONTS_DIRS.type1:M*) | | 74 | .if !empty(FONTS_DIRS.type1:M*) |
75 | . if ${X11_TYPE} == "modular" | | 75 | . if ${X11_TYPE} == "modular" |
76 | USE_TOOLS+= mkfontscale:run | | 76 | USE_TOOLS+= mkfontscale:run |
77 | FILES_SUBST+= MKFONTSCALE=${TOOLS_PATH.mkfontscale:Q} | | 77 | FILES_SUBST+= MKFONTSCALE=${TOOLS_PATH.mkfontscale:Q} |
78 | . else | | 78 | . else |
79 | USE_TOOLS+= type1inst:run | | 79 | USE_TOOLS+= type1inst:run |
80 | FILES_SUBST+= TTMKFDIR=${TOOLS_PATH.type1inst:Q} | | 80 | FILES_SUBST+= TYPE1INST=${TOOLS_PATH.type1inst:Q} |
81 | . endif | | 81 | . endif |
82 | _FONTS_DIRS.x11+= ${FONTS_DIRS.type1} | | 82 | _FONTS_DIRS.x11+= ${FONTS_DIRS.type1} |
83 | .endif | | 83 | .endif |
84 | _FONTS_DIRS.x11+= ${FONTS_DIRS.x11} | | 84 | _FONTS_DIRS.x11+= ${FONTS_DIRS.x11} |
85 | .if !empty(_FONTS_DIRS.x11:M*) | | 85 | .if !empty(_FONTS_DIRS.x11:M*) |
86 | USE_TOOLS+= mkfontdir:run | | 86 | USE_TOOLS+= mkfontdir:run |
87 | FILES_SUBST+= MKFONTDIR=${TOOLS_PATH:mkfontdir:Q} | | 87 | FILES_SUBST+= MKFONTDIR=${TOOLS_PATH:mkfontdir:Q} |
88 | . if ${X11_TYPE} == "modular" | | 88 | . if ${X11_TYPE} == "modular" |
89 | DEPENDS+= encodings-[0-9]*:../../fonts/encodings | | 89 | DEPENDS+= encodings-[0-9]*:../../fonts/encodings |
90 | X11_ENCODINGSDIR?= ${X11BASE}/share/fonts/X11/encodings | | 90 | X11_ENCODINGSDIR?= ${X11BASE}/share/fonts/X11/encodings |
91 | . else | | 91 | . else |
92 | X11_ENCODINGSDIR?= ${X11BASE}/lib/fonts/X11/encodings | | 92 | X11_ENCODINGSDIR?= ${X11BASE}/lib/fonts/X11/encodings |
93 | . endif | | 93 | . endif |