source: trunk/dports/lang/ocaml3/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name                ocaml3
6version             3.12.1
7revision            1
8# When updating ocaml, also update camlp5 to a compatible version (c.f. #26769, #20219, #18292)
9set major_vers      [join [lrange [split ${version} .] 0 1] .]
10platforms           darwin
11categories          lang ml
12license             {QPL LGPL}
13description         Objective Caml is an implementation of the ML language
14maintainers         mww openmaintainer
15long_description \
16            Objective Caml is an implementation of the ML language, based on \
17            the Caml Light dialect extended with a complete class-based object \
18            system    and a powerful module system in the style of Standard ML.
19homepage            http://www.ocaml.org/
20master_sites        http://caml.inria.fr/pub/distrib/ocaml-${major_vers}/ \
21                    ftp://ftp.inria.fr/INRIA/Projects/cristal/ocaml/ocaml-${major_vers}
22checksums           md5     227a3daaedb150bf5037a3db01f5bf42 \
23                    sha1    29b44117b116b1a5bc54a8b4514af483793a769f \
24                    rmd160  61d38c0785491c8790ac02ab78fb2f26ea490fc1
25
26distname            ocaml-${version}
27use_bzip2           yes
28
29depends_lib         port:ncurses port:xorg-libX11
30
31patchfiles          patch-otherlibs-bigarray.diff patch-configure.diff
32
33use_parallel_build  no
34universal_variant   no
35
36set docdir          ${prefix}/share/doc/${name}
37
38# Configure.
39configure.pre_args  -prefix ${prefix}
40configure.args      -no-tk -cc ${configure.cc} -aspp \"${configure.cc} -c\" \
41                    -x11include \"${prefix}/include\" -x11lib \"${prefix}/lib\" \
42                    -bindir ${prefix}/libexec/${name} -libdir ${prefix}/lib/${name}
43
44# Building.
45build.target        world.opt
46build.cmd           "unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && ${build.cmd}"
47
48# Install.
49destroot.target     install
50destroot.destdir    BINDIR=${destroot}${prefix}/libexec/${name} \
51                    LIBDIR=${destroot}${prefix}/lib/${name} \
52                    MANDIR=${destroot}${prefix}/share/man
53
54post-destroot {
55    # Change "ld.conf" to remove ${destroot} in paths.
56    reinplace "s:${destroot}::g" ${destroot}${prefix}/lib/${name}/ld.conf
57    xinstall -d ${destroot}${docdir}
58    xinstall -m 0644 -W ${worksrcpath} Changes LICENSE README ${destroot}${docdir}
59    delete ${destroot}${prefix}/share/man
60}
61
62# Variants.
63variant profile description {Enable profiling} {
64    configure.env-append CC="gcc -pg"
65}
66
67variant labltk description {Include TK bindings and ocamlbrowser} {
68    depends_lib-append    port:tcl port:tk
69    configure.args-delete     -no-tk
70}
71
72livecheck.type      regex
73livecheck.url       http://caml.inria.fr/pub/distrib/ocaml-3.12/
74livecheck.regex     "ocaml-(3\[0-9\.\]+).tar"
Note: See TracBrowser for help on using the repository browser.