| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.wrapper.mk,v 1.77 2008/10/30 18:56:22 joerg Exp $ | | 1 | # $NetBSD: bsd.wrapper.mk,v 1.78 2008/11/06 21:34:16 joerg 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 |
| @@ -220,32 +220,26 @@ _WRAP_BUILDCMD.${_wrappee_}?= ${_WRAP_B | | | @@ -220,32 +220,26 @@ _WRAP_BUILDCMD.${_wrappee_}?= ${_WRAP_B |
220 | _WRAP_CACHE.${_wrappee_}?= ${_WRAP_CACHE} | | 220 | _WRAP_CACHE.${_wrappee_}?= ${_WRAP_CACHE} |
221 | _WRAP_CACHE_BODY.${_wrappee_}?= ${_WRAP_CACHE_BODY} | | 221 | _WRAP_CACHE_BODY.${_wrappee_}?= ${_WRAP_CACHE_BODY} |
222 | _WRAP_CLEANUP.${_wrappee_}?= ${_WRAP_CLEANUP} | | 222 | _WRAP_CLEANUP.${_wrappee_}?= ${_WRAP_CLEANUP} |
223 | _WRAP_CMD_SINK.${_wrappee_}?= ${_WRAP_CMD_SINK} | | 223 | _WRAP_CMD_SINK.${_wrappee_}?= ${_WRAP_CMD_SINK} |
224 | _WRAP_LOG.${_wrappee_}?= ${_WRAP_LOG} | | 224 | _WRAP_LOG.${_wrappee_}?= ${_WRAP_LOG} |
225 | _WRAP_LOGIC.${_wrappee_}?= ${_WRAP_LOGIC} | | 225 | _WRAP_LOGIC.${_wrappee_}?= ${_WRAP_LOGIC} |
226 | _WRAP_SCAN.${_wrappee_}?= ${_WRAP_SCAN} | | 226 | _WRAP_SCAN.${_wrappee_}?= ${_WRAP_SCAN} |
227 | _WRAP_TRANSFORM.${_wrappee_}?= ${_WRAP_TRANSFORM} | | 227 | _WRAP_TRANSFORM.${_wrappee_}?= ${_WRAP_TRANSFORM} |
228 | _WRAP_TRANSFORM_SED.${_wrappee_}?= ${_WRAP_TRANSFORM_SED} | | 228 | _WRAP_TRANSFORM_SED.${_wrappee_}?= ${_WRAP_TRANSFORM_SED} |
229 | _WRAP_SKIP_TRANSFORM.${_wrappee_}?= ${_WRAP_SKIP_TRANSFORM} | | 229 | _WRAP_SKIP_TRANSFORM.${_wrappee_}?= ${_WRAP_SKIP_TRANSFORM} |
230 | _WRAP_TYPE.${_wrappee_}?= ${_wrappee_} | | 230 | _WRAP_TYPE.${_wrappee_}?= ${_wrappee_} |
231 | .endfor # _WRAPPEES | | 231 | .endfor # _WRAPPEES |
232 | | | 232 | |
233 | .if !empty(PKGSRC_COMPILER:Maix-xlc) | | | |
234 | _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-aix-xlc | | | |
235 | _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} | | | |
236 | _WRAP_CMD_SINK.LD= ${_WRAP_CMD_SINK.CC} | | | |
237 | .endif | | | |
238 | | | | |
239 | .if !empty(PKGSRC_COMPILER:Micc) | | 233 | .if !empty(PKGSRC_COMPILER:Micc) |
240 | . if !empty(CC_VERSION:M8.1) || !empty(CC_VERSION:M9.0) | | 234 | . if !empty(CC_VERSION:M8.1) || !empty(CC_VERSION:M9.0) |
241 | _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-icc81-cc | | 235 | _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-icc81-cc |
242 | _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} | | 236 | _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} |
243 | . else | | 237 | . else |
244 | _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-icc-cc | | 238 | _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-icc-cc |
245 | _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} | | 239 | _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} |
246 | . endif | | 240 | . endif |
247 | _WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-icc-cc | | 241 | _WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-icc-cc |
248 | _WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC} | | 242 | _WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC} |
249 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-icc-cc | | 243 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-icc-cc |
250 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} | | 244 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} |
251 | .endif | | 245 | .endif |
| @@ -277,32 +271,40 @@ _WRAP_EXTRA_ARGS.CC+= -Xcpluscomm -Olimi | | | @@ -277,32 +271,40 @@ _WRAP_EXTRA_ARGS.CC+= -Xcpluscomm -Olimi |
277 | .if !empty(PKGSRC_COMPILER:Msunpro) | | 271 | .if !empty(PKGSRC_COMPILER:Msunpro) |
278 | _WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-sunpro-cc | | 272 | _WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-sunpro-cc |
279 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-sunpro-cc | | 273 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-sunpro-cc |
280 | _WRAP_ARG_PP.CXX= ${WRAPPER_TMPDIR}/arg-pp-sunpro-cxx | | 274 | _WRAP_ARG_PP.CXX= ${WRAPPER_TMPDIR}/arg-pp-sunpro-cxx |
281 | _WRAP_CACHE.CXX= ${WRAPPER_TMPDIR}/cache-sunpro-cxx | | 275 | _WRAP_CACHE.CXX= ${WRAPPER_TMPDIR}/cache-sunpro-cxx |
282 | _WRAP_CACHE_BODY.CXX= ${WRAPPER_TMPDIR}/cache-body-sunpro-cxx | | 276 | _WRAP_CACHE_BODY.CXX= ${WRAPPER_TMPDIR}/cache-body-sunpro-cxx |
283 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} | | 277 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} |
284 | _WRAP_CMD_SINK.CXX= ${WRAPPER_TMPDIR}/cmd-sink-sunpro-cxx | | 278 | _WRAP_CMD_SINK.CXX= ${WRAPPER_TMPDIR}/cmd-sink-sunpro-cxx |
285 | _WRAP_CACHE_BODY.CPP= ${_WRAP_CACHE_BODY.CC} | | 279 | _WRAP_CACHE_BODY.CPP= ${_WRAP_CACHE_BODY.CC} |
286 | _WRAP_TRANSFORM.CPP= ${_WRAP_TRANSFORM.CC} | | 280 | _WRAP_TRANSFORM.CPP= ${_WRAP_TRANSFORM.CC} |
287 | .endif | | 281 | .endif |
288 | | | 282 | |
289 | .if !empty(PKGSRC_COMPILER:Mxlc) | | 283 | .if !empty(PKGSRC_COMPILER:Mxlc) |
| | | 284 | . if ${OPSYS} == "AIX" |
| | | 285 | _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-aix-xlc |
| | | 286 | _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} |
| | | 287 | _WRAP_CMD_SINK.LD= ${_WRAP_CMD_SINK.CC} |
| | | 288 | . elif ${OPSYS} == "Darwin" |
290 | _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-darwin-xlc | | 289 | _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-darwin-xlc |
291 | _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} | | 290 | _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} |
292 | _WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-xlc-cc | | 291 | _WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-xlc-cc |
293 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-xlc-cc | | 292 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-xlc-cc |
294 | _WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC} | | 293 | _WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC} |
295 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} | | 294 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} |
| | | 295 | . else |
| | | 296 | PKG_FAIL_REASON+= "xlc unsupported on ${OPSYS}" |
| | | 297 | . endif |
296 | .endif | | 298 | .endif |
297 | | | 299 | |
298 | .if !empty(PKGSRC_COMPILER:Mccc) | | 300 | .if !empty(PKGSRC_COMPILER:Mccc) |
299 | _WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-ccc-cc | | 301 | _WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-ccc-cc |
300 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-ccc-cc | | 302 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-ccc-cc |
301 | _WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC} | | 303 | _WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC} |
302 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} | | 304 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} |
303 | .endif | | 305 | .endif |
304 | | | 306 | |
305 | .if !empty(PKGSRC_COMPILER:Mgcc) | | 307 | .if !empty(PKGSRC_COMPILER:Mgcc) |
306 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-gcc | | 308 | _WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-gcc |
307 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} | | 309 | _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} |
308 | .endif | | 310 | .endif |