Ticket #16187: Portfile

File Portfile, 1.2 KB (added by toots@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                ocaml-shout
6version             0.2.6
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         OCaml bindings for the libshout broadcasting library
10homepage            http://savonet.sf.net/
11platforms           darwin
12master_sites        sourceforge:savonet
13
14checksums           md5  19c0287260b9c161ab05af16131de9a6 \
15                    sha1  566debea660641679faa154bfaa17820394031f7 \
16                    rmd160  e220599b32260d052c850366ece68d110b3fc1b4
17
18depends_lib         bin:camlc.opt:ocaml \
19  bin:ocamlfind:caml-findlib \
20  port:libshout2
21
22build.args          LIBDIRS=${prefix}/lib
23
24proc ocamlfind_destdir {} {
25    # only bother calculating this darn thing once
26    variable ocamlfind_destdir {}
27    variable destroot
28    variable prefix
29    if {![string length $ocamlfind_destdir]} {
30        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
31    }
32    return $ocamlfind_destdir
33}
34
35pre-destroot {
36  system "mkdir -p [ocamlfind_destdir]"
37  reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/src/OCamlMakefile
38}
39