Ticket #1217: ocaml.diff

File ocaml.diff, 925 bytes (added by pguyot (Paul Guyot), 21 years ago)

Portfile patch to add a new variant, labltk, for Tcl & Tk support in ocaml

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/lang/ocaml/Portfile,v
    retrieving revision 1.10
    diff -u -r1.10 Portfile
     
    2727                --tk-no-x11 \
    2828                --bindir ${prefix}/bin \
    2929                --libdir ${prefix}/lib/ocaml \
    30                 --mandir ${prefix}/share/man \
     30                --mandir ${prefix}/share/man
    3131
    3232build.type      gnu
    3333build.dir       ${worksrcpath}
    34 build.target    world opt
     34build.target    world.opt
    3535
    3636destroot.args   BINDIR=${destroot}/${prefix}/bin \
    3737                LIBDIR=${destroot}/${prefix}/lib/ocaml \
    3838                MANDIR=${destroot}/${prefix}/share/man
     39
     40# Variant with LablTk (tcl & tk bindings)
     41variant labltk {
     42        depends_build                   lib:libtcl.a:tcl lib:libtk.a:tk
     43        configure.args                  --bindir ${prefix}/bin \
     44                                                        --libdir ${prefix}/lib/ocaml \
     45                                                        --mandir ${prefix}/share/man
     46}