| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: replace.mk,v 1.259 2013/06/05 13:26:35 obache Exp $ | | 1 | # $NetBSD: replace.mk,v 1.260 2013/06/06 02:17:17 obache Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 2005 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 |
| @@ -1090,137 +1090,155 @@ TOOLS_CREATE+= ${_t_} | | | @@ -1090,137 +1090,155 @@ TOOLS_CREATE+= ${_t_} |
1090 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=${TOOLS_DEPENDS.ghostscript:C/:.*//} | | 1090 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=${TOOLS_DEPENDS.ghostscript:C/:.*//} |
1091 | TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_} | | 1091 | TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_} |
1092 | . endif | | 1092 | . endif |
1093 | . endif | | 1093 | . endif |
1094 | .endfor | | 1094 | .endfor |
1095 | | | 1095 | |
1096 | ###################################################################### | | 1096 | ###################################################################### |
1097 | | | 1097 | |
1098 | # For modular Xorg, these are individual packages. | | 1098 | # For modular Xorg, these are individual packages. |
1099 | # | | 1099 | # |
1100 | .if !defined(TOOLS_IGNORE.iceauth) && !empty(_USE_TOOLS:Miceauth) | | 1100 | .if !defined(TOOLS_IGNORE.iceauth) && !empty(_USE_TOOLS:Miceauth) |
1101 | . if !empty(PKGPATH:Mx11/iceauth) | | 1101 | . if !empty(PKGPATH:Mx11/iceauth) |
1102 | MAKEFLAGS+= TOOLS_IGNORE.iceauth= | | 1102 | MAKEFLAGS+= TOOLS_IGNORE.iceauth= |
1103 | . elif !empty(X11_TYPE:Mnative) | | 1103 | . elif !empty(_TOOLS_USE_PKGSRC.iceauth:M[yY][eE][sS]) |
| | | 1104 | TOOLS_CREATE+= iceauth |
| | | 1105 | . if !empty(X11_TYPE:Mnative) |
1104 | TOOLS_PATH.iceauth= ${X11BASE}/bin/iceauth | | 1106 | TOOLS_PATH.iceauth= ${X11BASE}/bin/iceauth |
1105 | . else | | 1107 | . else |
1106 | TOOLS_DEPENDS.iceauth?= iceauth-[0-9]*:../../x11/iceauth | | 1108 | TOOLS_DEPENDS.iceauth?= iceauth-[0-9]*:../../x11/iceauth |
1107 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.iceauth=iceauth | | 1109 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.iceauth=iceauth |
1108 | TOOLS_PATH.iceauth= ${TOOLS_PREFIX.iceauth}/bin/iceauth | | 1110 | TOOLS_PATH.iceauth= ${TOOLS_PREFIX.iceauth}/bin/iceauth |
1109 | TOOLS_CREATE+= iceauth | | 1111 | . endif |
1110 | . endif | | 1112 | . endif |
1111 | .endif | | 1113 | .endif |
1112 | | | 1114 | |
1113 | .if !defined(TOOLS_IGNORE.mkfontdir) && !empty(_USE_TOOLS:Mmkfontdir) | | 1115 | .if !defined(TOOLS_IGNORE.mkfontdir) && !empty(_USE_TOOLS:Mmkfontdir) |
1114 | . if !empty(PKGPATH:Mfonts/mkfontdir) | | 1116 | . if !empty(PKGPATH:Mfonts/mkfontdir) |
1115 | MAKEFLAGS+= TOOLS_IGNORE.mkfontdir= | | 1117 | MAKEFLAGS+= TOOLS_IGNORE.mkfontdir= |
1116 | . elif !empty(X11_TYPE:Mnative) | | 1118 | . elif !empty(_TOOLS_USE_PKGSRC.mkfontdir:M[yY][eE][sS]) |
| | | 1119 | TOOLS_CREATE+= mkfontdir |
| | | 1120 | . if !empty(X11_TYPE:Mnative) |
1117 | TOOLS_PATH.mkfontdir= ${X11BASE}/bin/mkfontdir | | 1121 | TOOLS_PATH.mkfontdir= ${X11BASE}/bin/mkfontdir |
1118 | . else | | 1122 | . else |
1119 | TOOLS_DEPENDS.mkfontdir?= mkfontdir-[0-9]*:../../fonts/mkfontdir | | 1123 | TOOLS_DEPENDS.mkfontdir?= mkfontdir-[0-9]*:../../fonts/mkfontdir |
1120 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mkfontdir=mkfontdir | | 1124 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mkfontdir=mkfontdir |
1121 | TOOLS_PATH.mkfontdir= ${TOOLS_PREFIX.mkfontdir}/bin/mkfontdir | | 1125 | TOOLS_PATH.mkfontdir= ${TOOLS_PREFIX.mkfontdir}/bin/mkfontdir |
1122 | TOOLS_CREATE+= mkfontdir | | 1126 | . endif |
1123 | . endif | | 1127 | . endif |
1124 | .endif | | 1128 | .endif |
1125 | | | 1129 | |
1126 | .if !defined(TOOLS_IGNORE.mkfontscale) && !empty(_USE_TOOLS:Mmkfontscale) | | 1130 | .if !defined(TOOLS_IGNORE.mkfontscale) && !empty(_USE_TOOLS:Mmkfontscale) |
1127 | . if !empty(PKGPATH:Mfonts/mkfontscale) | | 1131 | . if !empty(PKGPATH:Mfonts/mkfontscale) |
1128 | MAKEFLAGS+= TOOLS_IGNORE.mkfontscale= | | 1132 | MAKEFLAGS+= TOOLS_IGNORE.mkfontscale= |
1129 | . elif !empty(X11_TYPE:Mnative) | | 1133 | . elif !empty(_TOOLS_USE_PKGSRC.mkfontscale:M[yY][eE][sS]) |
| | | 1134 | TOOLS_CREATE+= mkfontscale |
| | | 1135 | . if !empty(X11_TYPE:Mnative) |
1130 | TOOLS_PATH.mkfontscale= ${X11BASE}/bin/mkfontscale | | 1136 | TOOLS_PATH.mkfontscale= ${X11BASE}/bin/mkfontscale |
1131 | . else | | 1137 | . else |
1132 | TOOLS_DEPENDS.mkfontscale?= mkfontscale-[0-9]*:../../fonts/mkfontscale | | 1138 | TOOLS_DEPENDS.mkfontscale?= mkfontscale-[0-9]*:../../fonts/mkfontscale |
1133 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mkfontscale=mkfontscale | | 1139 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mkfontscale=mkfontscale |
1134 | TOOLS_PATH.mkfontscale= ${TOOLS_PREFIX.mkfontscale}/bin/mkfontscale | | 1140 | TOOLS_PATH.mkfontscale= ${TOOLS_PREFIX.mkfontscale}/bin/mkfontscale |
1135 | TOOLS_CREATE+= mkfontscale | | 1141 | . endif |
1136 | . endif | | 1142 | . endif |
1137 | .endif | | 1143 | .endif |
1138 | | | 1144 | |
1139 | .if !defined(TOOLS_IGNORE.bdftopcf) && !empty(_USE_TOOLS:Mbdftopcf) | | 1145 | .if !defined(TOOLS_IGNORE.bdftopcf) && !empty(_USE_TOOLS:Mbdftopcf) |
1140 | . if !empty(PKGPATH:Mfonts/bdftopcf) | | 1146 | . if !empty(PKGPATH:Mfonts/bdftopcf) |
1141 | MAKEFLAGS+= TOOLS_IGNORE.bdftopcf= | | 1147 | MAKEFLAGS+= TOOLS_IGNORE.bdftopcf= |
1142 | . elif !empty(X11_TYPE:Mnative) | | 1148 | . elif !empty(_TOOLS_USE_PKGSRC.bdftopcf:M[yY][eE][sS]) |
| | | 1149 | TOOLS_CREATE+= bdftopcf |
| | | 1150 | . if !empty(X11_TYPE:Mnative) |
1143 | TOOLS_PATH.bdftopcf= ${X11BASE}/bin/bdftopcf | | 1151 | TOOLS_PATH.bdftopcf= ${X11BASE}/bin/bdftopcf |
1144 | . else | | 1152 | . else |
1145 | TOOLS_DEPENDS.bdftopcf?= bdftopcf-[0-9]*:../../fonts/bdftopcf | | 1153 | TOOLS_DEPENDS.bdftopcf?= bdftopcf-[0-9]*:../../fonts/bdftopcf |
1146 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bdftopcf=bdftopcf | | 1154 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bdftopcf=bdftopcf |
1147 | TOOLS_PATH.bdftopcf= ${TOOLS_PREFIX.bdftopcf}/bin/bdftopcf | | 1155 | TOOLS_PATH.bdftopcf= ${TOOLS_PREFIX.bdftopcf}/bin/bdftopcf |
1148 | TOOLS_CREATE+= bdftopcf | | 1156 | . endif |
1149 | . endif | | 1157 | . endif |
1150 | .endif | | 1158 | .endif |
1151 | | | 1159 | |
1152 | .if !defined(TOOLS_IGNORE.ucs2any) && !empty(_USE_TOOLS:Mucs2any) | | 1160 | .if !defined(TOOLS_IGNORE.ucs2any) && !empty(_USE_TOOLS:Mucs2any) |
1153 | . if !empty(PKGPATH:Mfonts/font-util) | | 1161 | . if !empty(PKGPATH:Mfonts/font-util) |
1154 | MAKEFLAGS+= TOOLS_IGNORE.ucs2any= | | 1162 | MAKEFLAGS+= TOOLS_IGNORE.ucs2any= |
1155 | . elif !empty(X11_TYPE:Mnative) | | 1163 | . elif !empty(_TOOLS_USE_PKGSRC.ucs2any:M[yY][eE][sS]) |
| | | 1164 | TOOLS_CREATE+= ucs2any |
| | | 1165 | . if !empty(X11_TYPE:Mnative) |
1156 | TOOLS_PATH.ucs2any= ${X11BASE}/bin/ucs2any | | 1166 | TOOLS_PATH.ucs2any= ${X11BASE}/bin/ucs2any |
1157 | . else | | 1167 | . else |
1158 | TOOLS_DEPENDS.ucs2any?= font-util-[0-9]*:../../fonts/font-util | | 1168 | TOOLS_DEPENDS.ucs2any?= font-util-[0-9]*:../../fonts/font-util |
1159 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.ucs2any=ucs2any | | 1169 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.ucs2any=ucs2any |
1160 | TOOLS_PATH.ucs2any= ${TOOLS_PREFIX.ucs2any}/bin/ucs2any | | 1170 | TOOLS_PATH.ucs2any= ${TOOLS_PREFIX.ucs2any}/bin/ucs2any |
1161 | TOOLS_CREATE+= ucs2any | | 1171 | . endif |
1162 | . endif | | 1172 | . endif |
1163 | .endif | | 1173 | .endif |
1164 | | | 1174 | |
1165 | .if !defined(TOOLS_IGNORE.bdftruncate) && !empty(_USE_TOOLS:Mbdftruncate) | | 1175 | .if !defined(TOOLS_IGNORE.bdftruncate) && !empty(_USE_TOOLS:Mbdftruncate) |
1166 | . if !empty(PKGPATH:Mfonts/font-util) | | 1176 | . if !empty(PKGPATH:Mfonts/font-util) |
1167 | MAKEFLAGS+= TOOLS_IGNORE.bdftruncate= | | 1177 | MAKEFLAGS+= TOOLS_IGNORE.bdftruncate= |
1168 | . elif !empty(X11_TYPE:Mnative) | | 1178 | . elif !empty(_TOOLS_USE_PKGSRC.bdftruncate:M[yY][eE][sS]) |
| | | 1179 | TOOLS_CREATE+= bdftruncate |
| | | 1180 | . if !empty(X11_TYPE:Mnative) |
1169 | TOOLS_PATH.bdftruncate= ${X11BASE}/bin/bdftruncate | | 1181 | TOOLS_PATH.bdftruncate= ${X11BASE}/bin/bdftruncate |
1170 | . else | | 1182 | . else |
1171 | TOOLS_DEPENDS.bdftruncate?= font-util-[0-9]*:../../fonts/font-util | | 1183 | TOOLS_DEPENDS.bdftruncate?= font-util-[0-9]*:../../fonts/font-util |
1172 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bdftruncate=bdftruncate | | 1184 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bdftruncate=bdftruncate |
1173 | TOOLS_PATH.bdftruncate= ${TOOLS_PREFIX.bdftruncate}/bin/bdftruncate | | 1185 | TOOLS_PATH.bdftruncate= ${TOOLS_PREFIX.bdftruncate}/bin/bdftruncate |
1174 | TOOLS_CREATE+= bdftruncate | | 1186 | . endif |
1175 | . endif | | 1187 | . endif |
1176 | .endif | | 1188 | .endif |
1177 | | | 1189 | |
1178 | .if !defined(TOOLS_IGNORE.xauth) && !empty(_USE_TOOLS:Mxauth) | | 1190 | .if !defined(TOOLS_IGNORE.xauth) && !empty(_USE_TOOLS:Mxauth) |
1179 | . if !empty(PKGPATH:Mx11/xauth) | | 1191 | . if !empty(PKGPATH:Mx11/xauth) |
1180 | MAKEFLAGS+= TOOLS_IGNORE.xauth= | | 1192 | MAKEFLAGS+= TOOLS_IGNORE.xauth= |
1181 | . elif !empty(X11_TYPE:Mnative) | | 1193 | . elif !empty(_TOOLS_USE_PKGSRC.xauth:M[yY][eE][sS]) |
| | | 1194 | TOOLS_CREATE+= xauth |
| | | 1195 | . if !empty(X11_TYPE:Mnative) |
1182 | TOOLS_PATH.xauth= ${X11BASE}/bin/xauth | | 1196 | TOOLS_PATH.xauth= ${X11BASE}/bin/xauth |
1183 | . else | | 1197 | . else |
1184 | TOOLS_DEPENDS.xauth?= xauth-[0-9]*:../../x11/xauth | | 1198 | TOOLS_DEPENDS.xauth?= xauth-[0-9]*:../../x11/xauth |
1185 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xauth=xauth | | 1199 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xauth=xauth |
1186 | TOOLS_PATH.xauth= ${TOOLS_PREFIX.xauth}/bin/xauth | | 1200 | TOOLS_PATH.xauth= ${TOOLS_PREFIX.xauth}/bin/xauth |
1187 | TOOLS_CREATE+= xauth | | 1201 | . endif |
1188 | . endif | | 1202 | . endif |
1189 | .endif | | 1203 | .endif |
1190 | | | 1204 | |
1191 | .if !defined(TOOLS_IGNORE.xinit) && !empty(_USE_TOOLS:Mxinit) | | 1205 | .if !defined(TOOLS_IGNORE.xinit) && !empty(_USE_TOOLS:Mxinit) |
1192 | . if !empty(PKGPATH:Mx11/xinit) | | 1206 | . if !empty(PKGPATH:Mx11/xinit) |
1193 | MAKEFLAGS+= TOOLS_IGNORE.xinit= | | 1207 | MAKEFLAGS+= TOOLS_IGNORE.xinit= |
1194 | . elif !empty(X11_TYPE:Mnative) | | 1208 | . elif !empty(_TOOLS_USE_PKGSRC.xinit:M[yY][eE][sS]) |
| | | 1209 | TOOLS_CREATE+= xinit |
| | | 1210 | . if !empty(X11_TYPE:Mnative) |
1195 | TOOLS_PATH.xinit= ${X11BASE}/bin/xinit | | 1211 | TOOLS_PATH.xinit= ${X11BASE}/bin/xinit |
1196 | . else | | 1212 | . else |
1197 | TOOLS_DEPENDS.xinit?= xinit-[0-9]*:../../x11/xinit | | 1213 | TOOLS_DEPENDS.xinit?= xinit-[0-9]*:../../x11/xinit |
1198 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xinit=xinit | | 1214 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xinit=xinit |
1199 | TOOLS_PATH.xinit= ${TOOLS_PREFIX.xinit}/bin/xinit | | 1215 | TOOLS_PATH.xinit= ${TOOLS_PREFIX.xinit}/bin/xinit |
1200 | TOOLS_CREATE+= xinit | | 1216 | . endif |
1201 | . endif | | 1217 | . endif |
1202 | .endif | | 1218 | .endif |
1203 | | | 1219 | |
1204 | .if !defined(TOOLS_IGNORE.xmessage) && !empty(_USE_TOOLS:Mxmessage) | | 1220 | .if !defined(TOOLS_IGNORE.xmessage) && !empty(_USE_TOOLS:Mxmessage) |
1205 | . if !empty(PKGPATH:Mx11/xmessage) | | 1221 | . if !empty(PKGPATH:Mx11/xmessage) |
1206 | MAKEFLAGS+= TOOLS_IGNORE.xmessage= | | 1222 | MAKEFLAGS+= TOOLS_IGNORE.xmessage= |
1207 | . elif !empty(X11_TYPE:Mnative) | | 1223 | . elif !empty(_TOOLS_USE_PKGSRC.xmessage:M[yY][eE][sS]) |
| | | 1224 | TOOLS_CREATE+= xmessage |
| | | 1225 | . if !empty(X11_TYPE:Mnative) |
1208 | TOOLS_PATH.xmessage= ${X11BASE}/bin/xmessage | | 1226 | TOOLS_PATH.xmessage= ${X11BASE}/bin/xmessage |
1209 | . else | | 1227 | . else |
1210 | TOOLS_DEPENDS.xmessage?= xmessage-[0-9]*:../../x11/xmessage | | 1228 | TOOLS_DEPENDS.xmessage?= xmessage-[0-9]*:../../x11/xmessage |
1211 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xmessage=xmessage | | 1229 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xmessage=xmessage |
1212 | TOOLS_PATH.xmessage= ${TOOLS_PREFIX.xmessage}/bin/xmessage | | 1230 | TOOLS_PATH.xmessage= ${TOOLS_PREFIX.xmessage}/bin/xmessage |
1213 | TOOLS_CREATE+= xmessage | | 1231 | . endif |
1214 | . endif | | 1232 | . endif |
1215 | .endif | | 1233 | .endif |
1216 | | | 1234 | |
1217 | ###################################################################### | | 1235 | ###################################################################### |
1218 | | | 1236 | |
1219 | # These tools are all supplied by an X11 imake package if there is no | | 1237 | # These tools are all supplied by an X11 imake package if there is no |
1220 | # native tool available. | | 1238 | # native tool available. |
1221 | # | | 1239 | # |
1222 | _TOOLS.x11-imake= imake mkdirhier xmkmf | | 1240 | _TOOLS.x11-imake= imake mkdirhier xmkmf |
1223 | | | 1241 | |
1224 | .for _t_ in ${_TOOLS.x11-imake} | | 1242 | .for _t_ in ${_TOOLS.x11-imake} |
1225 | . if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) | | 1243 | . if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) |
1226 | . if !empty(PKGPATH:Mdevel/nbitools) || \ | | 1244 | . if !empty(PKGPATH:Mdevel/nbitools) || \ |