Sun Oct 30 22:04:40 2011 UTC ()
Check for /usr/var/README.c as well.
>From Brian A Seklecki on pkgsrc-users.


(wiz)
diff -r1.24 -r1.25 pkgsrc/mk/compiler/xlc.mk

cvs diff -r1.24 -r1.25 pkgsrc/mk/compiler/xlc.mk (expand / switch to unified diff)

--- pkgsrc/mk/compiler/xlc.mk 2009/06/02 22:28:52 1.24
+++ pkgsrc/mk/compiler/xlc.mk 2011/10/30 22:04:39 1.25
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: xlc.mk,v 1.24 2009/06/02 22:28:52 joerg Exp $ 1# $NetBSD: xlc.mk,v 1.25 2011/10/30 22:04:39 wiz 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 Grant Beattie. 7# by Grant Beattie.
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
@@ -40,27 +40,27 @@ @@ -40,27 +40,27 @@
40# 40#
41# XLCBASE 41# XLCBASE
42# The base directory where the compiler is installed. 42# The base directory where the compiler is installed.
43# 43#
44 44
45.if !defined(COMPILER_XLC_MK) 45.if !defined(COMPILER_XLC_MK)
46COMPILER_XLC_MK= defined 46COMPILER_XLC_MK= defined
47 47
48.include "../../mk/bsd.prefs.mk" 48.include "../../mk/bsd.prefs.mk"
49 49
50.if !defined(XLCBASE) 50.if !defined(XLCBASE)
51. if exists(/usr/vacpp/README) 51. if exists(/usr/vacpp/README)
52XLCBASE= /usr/vacpp 52XLCBASE= /usr/vacpp
53. elif exists(/usr/vac/README) 53. elif exists(/usr/vac/README) || exists(/usr/vac/README.c)
54XLCBASE= /usr/vac 54XLCBASE= /usr/vac
55. elif exists(/opt/ibmcmp/vacpp/6.0/README) 55. elif exists(/opt/ibmcmp/vacpp/6.0/README)
56XLCBASE= /opt/ibmcmp/vacpp/6.0 56XLCBASE= /opt/ibmcmp/vacpp/6.0
57. else 57. else
58PKG_FAIL_REASON+= "Cannot determine XLCBASE." 58PKG_FAIL_REASON+= "Cannot determine XLCBASE."
59. endif 59. endif
60.endif 60.endif
61 61
62# LANGUAGES.<compiler> is the list of supported languages by the 62# LANGUAGES.<compiler> is the list of supported languages by the
63# compiler. 63# compiler.
64# 64#
65LANGUAGES.xlc= # empty 65LANGUAGES.xlc= # empty
66 66