# $Id: Portfile 61984 2009-12-27 02:48:05Z ryandesign@macports.org $

PortSystem          1.0

name                caml-ocamlmakefile
version             6.29.3
categories          devel ml
maintainers         mww openmaintainer
platforms           darwin
description         Automated compilation of complex OCaml-projects
long_description    ${description}

homepage            http://ocaml.info/home/ocaml_sources.html
master_sites        http://hg.ocaml.info/release/ocaml-make/archive/

distname            release-${version}
use_bzip2           yes

checksums           md5     e794ab58cd1a8b37581d0ff762cb953d \
                    sha1    fde94fd9b7318e4b52f48f43953f7a95cd98fe15 \
                    rmd160  82da4321f661ec5687c72ad801865836740c900a

depends_lib         port:ocaml \
                    port:caml-findlib

worksrcdir          ocaml-make-${distname}

use_configure       no

build               {}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/ \
        ${destroot}${prefix}/share/doc/${name} \
        ${destroot}${prefix}/share/examples/${name}
    xinstall -m 644 -W ${worksrcpath} OCamlMakefile \
        ${destroot}${prefix}/share/${name}
    foreach d {calc camlp4 gtk idl threads} {
        file copy ${worksrcpath}/${d} ${destroot}${prefix}/share/examples/${name}
    }
    xinstall -m 644 -W ${worksrcpath} README.txt LICENSE Changelog \
        ${destroot}${prefix}/share/doc/${name}
}

