summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/flex/buildlink3.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/flex/buildlink3.mk b/devel/flex/buildlink3.mk
new file mode 100644
index 00000000000..12eac561bb8
--- /dev/null
+++ b/devel/flex/buildlink3.mk
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/27 21:00:14 dmcmahill Exp $
+#
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+FLEX_BUILDLINK3_MK:= ${FLEX_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= flex
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nflex}
+BUILDLINK_PACKAGES+= flex
+
+.if !empty(FLEX_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.flex+= flex>=2.5.4a
+BUILDLINK_PKGSRCDIR.flex?= ../../devel/flex
+BUILDLINK_DEPMETHOD.flex?= build
+.endif # FLEX_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}