Ticket #16181: Portfile

File Portfile, 1.2 KB (added by toots@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                ocaml-lame
6version             0.2.2
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         OCaml bindings for the lame MPEG encoding library
10homepage            http://savonet.sf.net/
11platforms           darwin
12master_sites        sourceforge:savonet
13
14checksums           md5  144d0d85ed951d9808cabf6c19f4b760 \
15                    sha1  8d74a3d487e519570100cba625acfd68c1cc60c2 \
16                    rmd160  e067da327586d2183f0aa5ed9be518618533b3e4
17
18depends_lib         bin:camlp4:ocaml \
19  bin:ocamlfind:caml-findlib \
20  port:lame
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