pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/binutils A binutils installation that doesn't ev...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f104fc5e7bb
branches:  trunk
changeset: 532188:2f104fc5e7bb
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Aug 13 12:55:22 2007 +0000

description:
A binutils installation that doesn't even provide the basic header files
can be considered incomplete and therefore unusable.

diffstat:

 devel/binutils/builtin.mk |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 64b2061eff9e -r 2f104fc5e7bb devel/binutils/builtin.mk
--- a/devel/binutils/builtin.mk Mon Aug 13 12:42:06 2007 +0000
+++ b/devel/binutils/builtin.mk Mon Aug 13 12:55:22 2007 +0000
@@ -1,14 +1,21 @@
-# $NetBSD: builtin.mk,v 1.5 2007/05/29 12:25:03 martti Exp $
+# $NetBSD: builtin.mk,v 1.6 2007/08/13 12:55:22 rillig Exp $
+
+BINUTILS_PREFIX?=      /usr
 
 BUILTIN_PKG:=  binutils
+BUILTIN_FIND_FILES_VAR := BINUTILS_FILES
+BUILTIN_FIND_FILES.BINUTILS_FILES := ${BINUTILS_PREFIX}/include/bfd.h
 .include "../../mk/buildlink3/bsd.builtin.mk"
 
 ###
 ### Determine if there is a built-in implementation of the package and
 ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
 ###
-# XXX Assume that the base OS always provides a built-in binutils.
+.if !empty(BINUTILS_FILES:N__nonexistent__)
 IS_BUILTIN.binutils?=  yes
+.else
+IS_BUILTIN.binutils?=  no
+.endif
 
 ###
 ### Determine whether we should use the built-in implementation if it



Home | Main Index | Thread Index | Old Index