pkgsrc/lang/camlp5/buildlink3.mk
tonio 95ffab1e95 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.
2007-12-01 12:56:04 +00:00

22 lines
608 B
Makefile

# $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/+$//}