Actually, CamlP4 extensions are stored in /usr/lib/ocaml/3.10.0/camlp4/. In order to do something cleaner, The Debian OCaml Task Force proposes to put this files in their own directory, even in their own package. It is not mandatory, but it could ease a lot by avoiding name clashes.
You just have to consider a CamlP4 file just as a standard library, except that you
prefix them with -syntax
. For example: the syntax
extension coming with libokey-ocaml-dev should be stored
in /usr/lib/ocaml/3.10.0/okey-syntax/, the package
containing it should be called libokey-syntax-ocaml-dev.
It is recommended to use META to specify how to handle this extension.
All definition is taken from previous text considering syntax extension as a standalone library.