source: trunk/dports/lang/ocaml/Portfile @ 4520

Last change on this file since 4520 was 4520, checked in by pguyot (Paul Guyot), 16 years ago

Fixed the labltk variant. This fixes problems with lablgtk.
Bug: #1394
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.12 2004/01/08 05:42:57 pguyot Exp $
2
3PortSystem 1.0
4name            ocaml
5version         3.07pl2
6revision        1
7categories      lang
8maintainers     jpm@opendarwin.org
9description     Latest implementation of the Caml dialect of ML
10long_description        \
11        The main novelties compared with its ancestor, Caml Light, are: \
12        1) Full support for objects and classes -- here combined for the \
13        first time with ML-style type reconstruction. \
14        2) A powerful module calculus in the style of Standard ML (but \
15        retaining separate compilation). \
16        3) A high-performance native code compiler (in addition to a Caml \
17        Light-style bytecode compiler).
18homepage        http://caml.inria.fr/ocaml
19platforms       darwin freebsd
20master_sites    http://caml.inria.fr/distrib/${name}-3.07/
21checksums       md5 e58057f1ecca2da3fee035c846ac7db2
22
23set worksrcpath ${workpath}/${name}-3.07/
24
25configure.env   CFLAGS=-no-cpp-precomp
26configure.pre_args      --prefix ${prefix}
27configure.args  --no-tk \
28                --tk-no-x11 \
29                --bindir ${prefix}/bin \
30                --libdir ${prefix}/lib/ocaml \
31                --mandir ${prefix}/share/man
32
33build.type      gnu
34build.dir       ${worksrcpath}
35build.target    world opt
36
37destroot.args   BINDIR=${destroot}/${prefix}/bin \
38                LIBDIR=${destroot}/${prefix}/lib/ocaml \
39                MANDIR=${destroot}/${prefix}/share/man
40
41# Variant with LablTk (tcl & tk bindings)
42variant labltk  {
43        depends_lib             lib:tcl8.4:tcl \
44                                lib:tk8.4:tk
45        configure.args-delete   --no-tk \
46                                --tk-no-x11
47        patchfiles              patch-configure
48        post-patch {
49                reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/configure
50        }
51}
Note: See TracBrowser for help on using the repository browser.