summaryrefslogtreecommitdiff
path: root/lang/gcc3-java
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-13 00:27:28 +0000
committerjlam <jlam@pkgsrc.org>2004-02-13 00:27:28 +0000
commitf73778c65dcd4a67cb137b1254601f8c9806df51 (patch)
tree36df603cadf66d5fd0a77d2a49c77c3904e3ef55 /lang/gcc3-java
parent5f93ce14403168fc524a0586718e06d5af8bdda3 (diff)
downloadpkgsrc-f73778c65dcd4a67cb137b1254601f8c9806df51.tar.gz
Check if a variable is defined before checking its value.
Diffstat (limited to 'lang/gcc3-java')
-rw-r--r--lang/gcc3-java/buildlink3.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/gcc3-java/buildlink3.mk b/lang/gcc3-java/buildlink3.mk
index f2c89bcd6f6..d09fdcf927b 100644
--- a/lang/gcc3-java/buildlink3.mk
+++ b/lang/gcc3-java/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2004/02/13 00:16:00 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2004/02/13 00:27:28 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
GCC3JAVA_BUILDLINK3_MK:= ${GCC3JAVA_BUILDLINK3_MK}+
@@ -10,8 +10,10 @@ BUILDLINK_DEPENDS+= gcc3java
.endif
.if !empty(GCC3JAVA_BUILDLINK3_MK:M+)
-. if ${GCC3_INSTALLTO_SUBPREFIX} != "gcc3"
+. if defined(GCC3_INSTALLTO_SUBPREFIX)
+. if ${GCC3_INSTALLTO_SUBPREFIX} != "gcc3"
GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
+. endif
. endif
BUILDLINK_PACKAGES+= gcc3java
BUILDLINK_DEPENDS.gcc3java+= gcc3${GCC3_PKGMODIF}-java>=${_GCC_REQD}