a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20875 2006-12-07 05:03:07Z pguyot@kallisys.net $
PortSystem 1.0
name ocaml
version 3.09.3
revision 1
platforms darwin
maintainers pguyot@kallisys.net
categories lang
description Objective Caml is an implementation of the ML language
homepage http://www.ocaml.org/
master_sites http://caml.inria.fr/pub/distrib/ocaml-3.09/
checksums md5 8b3744efd0d51b82d55b61d0e2bf0e2b \
sha1 5d63c6e0d13463f85c0d5147d641d2bceef87d6b \
rmd160 fdc124218c556c62c897ee6720970279e2d5426b
long_description \
Objective Caml is an implementation of the ML language, based on \
the Caml Light dialect extended with a complete class-based object \
system and a powerful module system in the style of Standard ML.
use_bzip2 yes
patchfiles patch-configure
# Configure.
configure.pre_args -prefix ${prefix}
configure.args -no-tk
# Building.
build.target world.opt
# Install.
destroot.target install
destroot.destdir BINDIR=${destroot}${prefix}/bin \
LIBDIR=${destroot}${prefix}/lib/ocaml \
MANDIR=${destroot}${prefix}/share/man
# Change "ld.conf" to remove ${destroot} in paths.
post-destroot {
reinplace "s:${destroot}::g" ${destroot}${prefix}/lib/ocaml/ld.conf
}
# Variants.
variant labltk {
depends_lib lib:tcl8.4:tcl lib:tk8.4:tk
configure.args-delete -no-tk
}