summaryrefslogtreecommitdiff
path: root/lang/camlp5/buildlink3.mk
diff options
context:
space:
mode:
authortonio <tonio>2007-12-01 12:56:04 +0000
committertonio <tonio>2007-12-01 12:56:04 +0000
commit92aa1fd5ed1df1cc701240b9237466d96d3cd635 (patch)
tree3d72e617fb640ad53d6fcbf02c033c8d965d5e47 /lang/camlp5/buildlink3.mk
parentebb15661115e0e54c0e9cad88356038d63a75b6f (diff)
downloadpkgsrc-92aa1fd5ed1df1cc701240b9237466d96d3cd635.tar.gz
Add lang/camlp5 version 5.01
Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also provides parsing and printing tools. As a preprocessor, it allows to: - extend the syntax of OCaml, - redefine the whole syntax of the language. As a pretty printer, it allows to: - display OCaml programs in an elegant way, - convert from one syntax to another, - check the results of syntax extensions. Camlp5 also provides some parsing and pretty printing tools: - extensible grammars - extensible printers - stream parsers and lexers - pretty print module It works as a shell command and can also be used in the OCaml toplevel.
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/+$//}