a7d877ca6a
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives a value only once due to the multiple inclusion protection in the bulldlink3.mk files. In the case where a package includes several buildlink3.mk files that each want a slightly different version of another dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the strictest <pkg> dependency to be matched.
17 lines
421 B
Makefile
17 lines
421 B
Makefile
# $NetBSD: buildlink3.mk,v 1.2 2004/01/24 03:26:46 jlam Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
GMP_BUILDLINK3_MK:= ${GMP_BUILDLINK3_MK}+
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= gmp
|
|
.endif
|
|
|
|
.if !empty(GMP_BUILDLINK3_MK:M+)
|
|
BUILDLINK_PACKAGES+= gmp
|
|
BUILDLINK_DEPENDS.gmp+= gmp>=4.1.2
|
|
BUILDLINK_PKGSRCDIR.gmp?= ../../devel/gmp
|
|
|
|
.endif # GMP_BUILDLINK3_MK
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|