From 92aa1fd5ed1df1cc701240b9237466d96d3cd635 Mon Sep 17 00:00:00 2001 From: tonio Date: Sat, 1 Dec 2007 12:56:04 +0000 Subject: 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. --- lang/camlp5/buildlink3.mk | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lang/camlp5/buildlink3.mk (limited to 'lang/camlp5/buildlink3.mk') 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/+$//} -- cgit v1.2.3