To ease compilation of their packages, it is better to know:
Prerequisites and their Debian package in sid (if any):
# aptitude install ocaml
# aptitude install ocaml-findlib
# aptitude install libfileutils-ocaml-dev
# aptitude install gettext
# aptitude install libounit-ocaml-dev
# aptitude install docbook
# aptitude install xsltproc
Actually the place is: http://svn.debian.org/wsvn/pkg-ocaml-maint
These packages were, up to now, built with opkg-buildpackage. To build opkg-buildpackage:
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/tools/opkg-buildpackage $ cd opkg-buildpackage ; dpkg-buildpackage -rfakeroot ; cd - $ sudo dpkg -i opkg-buildpackage_0.1.3_all.deb
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-ast-analyze/upstream ocaml-ast-analyze $ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-ast-analyze/trunk/debian ocaml-ast-analyze/debian $ cd ocaml-ast-analyze ; opkg-buildpackage $ sudo dpkg -i libast-analyze-ocaml-dev_0.1.1-2_all.deb
From sources (the library is installed through ocaml-find) :
$ wget http://www.gallu.homelinux.org/download/ocaml-ast-analyze-0.1.1.tar.gz $ tar zxvf ocaml-ast-analyze-0.1.1.tar.gz $ ocaml-ast-analyze-0.1.1/ $ ./configure --libdir=/usr/local/lib/ocaml/3.08.3 $ make $ make install
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/camomile/upstream camomile $ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/camomile/trunk/debian camomile/debian $ cd camomile ; opkg-buildpackage $ sudo dpkg -i libcamomile-ocaml-data_0.6.1-2_all.deb $ sudo dpkg -i libcamomile-ocaml-dev_0.6.1-2_i386.deb
From sources (on debian stable, camomile 0.6.2, OCaml 3.08.3. Installation is made through ocamlfind):
$ tar jxvf ~/pub/expdem/external-sources/camomile-0.6.2.tar.bz2 $ cd camomile-0.6.2/ $ ./configure $ make $ make install
Only if you want to build benchmarking tool,
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-benchmark/upstream ocaml-benchmark $ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-benchmark/trunk/debian ocaml-benchmark/debian $ cd ocaml-benchmark ; opkg-buildpackage $ sudo dpkg -i libbenchmark-ocaml-dev_0.6-2_i386.deb
This package has highly non-free dependency.
$ sudo aptitude install java-packageDownload (as an example that works) j2re-1_4_2_02-linux-i586.bin from http://java.sun.com/products/archive/index.html
$ make-jpkg j2re-1_4_2_02-linux-i586.bin $ sudo dpkg -i sun-j2re1.4_1.4.2+02_i386.deb
$ sudo aptitude install fop
Thanks to Sylvain Le Gall, all packages outside Debian may be found in this repository.
If needed, you can use ./configure –help to have a complete help on every option you can use to tweak the installation of ocaml-gettext. To enable documentation generation, use –enable-doc. To enable benchmark executable, use –enable-bench. To enable test executable, use –enable-test.
# aptitude install chrpath
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-gettext/upstream ocaml-gettext $ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-gettext/trunk/debian ocaml-gettext/debian $ cd ocaml-gettext ; opkg-buildpackage $ sudo dpkg -i libgettext-ocaml-data_0.2.0-2_all.deb $ sudo dpkg -i libgettext-ocaml_0.2.0-2_i386.deb $ sudo dpkg -i libgettext-ocaml-dev_0.2.0-2_i386.deb
Compilation done on Debian sarge, OCaml 3.08.3:
$ ./configure --disable-doc --disable-bench --libdir=/usr/local/lib/ocaml/3.08.3 $ make $ make install