# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           ocaml 1.0
PortGroup           github 1.0

github.setup        ocaml ocamlbuild 0.14.2
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                ocaml-ocamlbuild
revision            1
categories          ocaml devel
maintainers         {pmetzger @pmetzger} openmaintainer
license             {LGPL-2.1 OpenSSLException}
description         Caml Preprocessor and Pretty-Printer
long_description    \
    OCamlbuild is a generic build tool that has built-in rules for \
    building OCaml library and programs. \
    OCamlbuild was distributed as part of the OCaml distribution for OCaml \
    versions between 3.10.0 and 4.02.3. Starting from OCaml 4.03, it is \
    released separately.

checksums           rmd160  cd6590286091f735062e5636de1c0afcf7c279c3 \
                    sha256  18fe1a054d43ad8795f3dbce224a493535c3a928423f38e6087a96fba6495143 \
                    size    199341

configure.pre_args
configure.args      OCAMLBUILD_PREFIX=${prefix} \
                    OCAMLBUILD_BINDIR=${prefix}/bin \
                    OCAMLBUILD_LIBDIR=${prefix}/lib/ocaml/site-lib \
                    OCAMLBUILD_MANDIR=${prefix}/share/man \
                    OCAML_NATIVE=true

platform darwin powerpc {
    configure.args-replace OCAML_NATIVE=true OCAML_NATIVE=false
}

configure.cmd       make configure

destroot.args       CHECK_IF_PREINSTALLED=false

use_parallel_build  no
universal_variant   no
