SUMMARY="Preprocessor-pretty-printer of OCaml"
DESCRIPTION="Camlp5 is a preprocessor-pretty-printer of OCaml.
It is compatible with OCaml versions from 1.07 to 4.02.0."
HOMEPAGE="http://camlp5.gforge.inria.fr/"
COPYRIGHT="2007-2013 Institut National de Recherche en Informatique et en Automatique (INRIA)."
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://camlp5.gforge.inria.fr/distrib/src/camlp5-6.12.tgz"
CHECKSUM_SHA256="b716c8b248289205bc76823000bc0b0988517cfcfd9c2eb1a3c43cc2cd7d5c02"
SOURCE_DIR="camlp5-6.12"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	camlp5
	cmd:camlp5
	cmd:camlp5o
	cmd:camlp5o.opt
	cmd:camlp5r
	cmd:camlp5r.opt
	cmd:camlp5sch
	cmd:mkcamlp5
	cmd:mkcamlp5.opt
	cmd:ocpp5
	"
REQUIRES="
	haiku
	cmd:ocaml
	"

BUILD_PREREQUIRES="
	haiku_devel
	ocaml
	cmd:gcc
	cmd:make
	"

BUILD()
{
	./configure --strict --prefix $prefix \
		--mandir $manDir
	make world.opt
}

INSTALL()
{
	make install PREFIX=$prefix \
		MANDIR=$manDir
}
