summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorshannonjr <shannonjr>2004-07-01 01:35:55 +0000
committershannonjr <shannonjr>2004-07-01 01:35:55 +0000
commite997e8f48eee926179aee87493c1b398a2e8beba (patch)
treed26a19bc53a29765c337f1c057f65a9c9766084c /lang
parent7bce398677d0c43fc09a9d952350896925fd7db5 (diff)
downloadpkgsrc-e997e8f48eee926179aee87493c1b398a2e8beba.tar.gz
Modified buildlink3.mk file to perform existance test on
${BUILDLINK_PREFIX.gcc34-ada}/bin/gcc before calling it.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc34-ada/buildlink3.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/gcc34-ada/buildlink3.mk b/lang/gcc34-ada/buildlink3.mk
index c1f690b9022..3280fd8f15d 100644
--- a/lang/gcc34-ada/buildlink3.mk
+++ b/lang/gcc34-ada/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/06/29 18:00:17 shannonjr Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2004/07/01 01:35:55 shannonjr Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
GCCADA_BUILDLINK3_MK:= ${GCCADA_BUILDLINK3_MK}+
@@ -15,11 +15,13 @@ BUILDLINK_PACKAGES+= gcc34-ada
BUILDLINK_DEPENDS.gcc34-ada+= gcc34-ada>=3.4.1
BUILDLINK_PKGSRCDIR.gcc34-ada?= ../../lang/gcc34-ada
BUILDLINK_ENV+= ADAC=${BUILDLINK_PREFIX.gcc34-ada}/bin/gcc
+. if exists(${BUILDLINK_PREFIX.gcc34-ada}/bin/gcc)
_GCC_ARCHDIR!= ${DIRNAME} `${BUILDLINK_PREFIX.gcc34-ada}/bin/gcc --print-libgcc-file-name`
-. if empty(_GCC_ARCHDIR:M*not_found*)
+. if empty(_GCC_ARCHDIR:M*not_found*)
BUILDLINK_LIBDIRS.gcc34-ada+= lib ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34-ada}\///}
BUILDLINK_LIBDIRS.gcc34-ada+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34-ada}\///}/adalib
BUILDLINK_INCDIRS.gcc34-ada+= include ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34-ada}\///}/adainclude
+. endif
. endif
.endif # GCCADA_BUILDLINK3_MK