summaryrefslogtreecommitdiff
path: root/devel/libelf/buildlink3.mk
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libelf/buildlink3.mk')
-rw-r--r--devel/libelf/buildlink3.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/libelf/buildlink3.mk b/devel/libelf/buildlink3.mk
new file mode 100644
index 00000000000..7dd845e4de8
--- /dev/null
+++ b/devel/libelf/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/08/13 07:09:01 cube Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBELF_BUILDLINK3_MK:= ${LIBELF_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= libelf
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibelf}
+BUILDLINK_PACKAGES+= libelf
+
+.if !empty(LIBELF_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.libelf+= libelf>=0.8.5
+BUILDLINK_PKGSRCDIR.libelf?= ../../devel/libelf
+BUILDLINK_DEPMETHOD.libelf?= build
+.endif # LIBELF_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}