# $NetBSD: buildlink3.mk,v 1.9 2006/08/08 15:19:15 wiz Exp $

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH}+
LADSPA_BUILDLINK3_MK:=	${LADSPA_BUILDLINK3_MK}+

.if ${BUILDLINK_DEPTH} == "+"
BUILDLINK_DEPENDS+=	ladspa
.endif

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Nladspa}
BUILDLINK_PACKAGES+=	ladspa
BUILDLINK_ORDER:=	${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}ladspa

.if ${LADSPA_BUILDLINK3_MK} == "+"
BUILDLINK_API_DEPENDS.ladspa+=	ladspa>=1.12
BUILDLINK_ABI_DEPENDS.ladspa?=	ladspa>=1.12nb1
BUILDLINK_PKGSRCDIR.ladspa?=	../../audio/ladspa
.endif	# LADSPA_BUILDLINK3_MK

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH:S/+$//}