# -*- 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.16.1
github.tarball_from archive
name                ocaml-ocamlbuild
revision            0
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  d757c02c14b91caada157cdc3f9b9ec9872ac136 \
                    sha256  2ba6857f2991b7f69368e8db818b163d31cf5a367f15f5953bf8f01a77b3d4fc \
                    size    202416

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
