summaryrefslogtreecommitdiff
path: root/lang/camlp5/buildlink3.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/camlp5/buildlink3.mk')
-rw-r--r--lang/camlp5/buildlink3.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/camlp5/buildlink3.mk b/lang/camlp5/buildlink3.mk
new file mode 100644
index 00000000000..9412fd22c16
--- /dev/null
+++ b/lang/camlp5/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/12/01 12:56:04 tonio Exp $
+#
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+CAMLP5_BUILDLINK3_MK:= ${CAMLP5_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= camlp5
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ncamlp5}
+BUILDLINK_PACKAGES+= camlp5
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}camlp5
+
+.if ${CAMLP5_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.camlp5+= camlp5>=5.01
+BUILDLINK_PKGSRCDIR.camlp5?= ../../lang/camlp5
+.endif # CAMLP5_BUILDLINK3_MK
+
+.include "../../lang/ocaml/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}