2006-12-12 22:52:34 +01:00
|
|
|
# $NetBSD: buildlink3.mk,v 1.8 2006/12/12 21:52:35 joerg Exp $
|
2004-10-14 21:03:45 +02:00
|
|
|
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
|
|
LIBLTDL_BUILDLINK3_MK:= ${LIBLTDL_BUILDLINK3_MK}+
|
|
|
|
|
2006-12-12 22:52:34 +01:00
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
2004-10-14 21:03:45 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
. if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
|
|
|
|
_SKIP_LIBLTDL= yes
|
|
|
|
. endif
|
2004-10-14 21:31:57 +02:00
|
|
|
.endif
|
2004-10-14 21:03:45 +02:00
|
|
|
|
|
|
|
.if !defined(_SKIP_LIBLTDL)
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
|
|
BUILDLINK_DEPENDS+= libltdl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibltdl}
|
|
|
|
BUILDLINK_PACKAGES+= libltdl
|
2006-07-09 01:10:35 +02:00
|
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libltdl
|
2004-10-14 21:03:45 +02:00
|
|
|
|
|
|
|
.if !empty(LIBLTDL_BUILDLINK3_MK:M+)
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.libltdl+= libltdl>=1.5.10
|
2004-10-14 21:03:45 +02:00
|
|
|
BUILDLINK_PKGSRCDIR.libltdl?= ../../devel/libltdl
|
|
|
|
.endif # LIBLTDL_BUILDLINK3_MK
|
2004-11-25 23:55:54 +01:00
|
|
|
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
2004-10-14 21:03:45 +02:00
|
|
|
.endif
|
|
|
|
|
2006-04-12 12:26:59 +02:00
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|