1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ocaml-soundtouch |
---|
6 | version 0.1.4 |
---|
7 | categories devel ml |
---|
8 | maintainers toots@rastageeks.org |
---|
9 | description OCaml bindings for the soundtouch library |
---|
10 | homepage http://savonet.sf.net/ |
---|
11 | platforms darwin |
---|
12 | master_sites sourceforge:savonet |
---|
13 | |
---|
14 | checksums md5 b4ee834b79f1d7a2b452fd55f093cf70 \ |
---|
15 | sha1 186dbad0444835a1d3f0db0c00997773a9a3bad5 \ |
---|
16 | rmd160 583c5bdd2e1fbb3dbc60c183e622516bc9d74a79 |
---|
17 | |
---|
18 | depends_lib bin:camlc.opt:ocaml \ |
---|
19 | bin:ocamlfind:caml-findlib \ |
---|
20 | port:pkgconfig port:soundtouch |
---|
21 | |
---|
22 | build.args LIBDIRS=${prefix}/lib |
---|
23 | |
---|
24 | pre-build { |
---|
25 | reinplace "s#ACLIBS = #ACLIBS = -lstdc++ #" ${worksrcpath}/src/Makefile |
---|
26 | } |
---|
27 | |
---|
28 | proc ocamlfind_destdir {} { |
---|
29 | # only bother calculating this darn thing once |
---|
30 | variable ocamlfind_destdir {} |
---|
31 | variable destroot |
---|
32 | variable prefix |
---|
33 | if {![string length $ocamlfind_destdir]} { |
---|
34 | set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir] |
---|
35 | } |
---|
36 | return $ocamlfind_destdir |
---|
37 | } |
---|
38 | |
---|
39 | pre-destroot { |
---|
40 | system "mkdir -p [ocamlfind_destdir]" |
---|
41 | reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/src/OCamlMakefile |
---|
42 | } |
---|
43 | |
---|