1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ocaml-faac |
---|
6 | version 0.1.1 |
---|
7 | categories devel ml |
---|
8 | maintainers toots@rastageeks.org |
---|
9 | description OCaml bindings for the AAC encoding library |
---|
10 | homepage http://savonet.sf.net/ |
---|
11 | platforms darwin |
---|
12 | master_sites sourceforge:savonet |
---|
13 | |
---|
14 | checksums md5 77ca55b93a90bf672e7a41b50a679f0d \ |
---|
15 | sha1 9d7c17fdd5a186439eef91166a690776fc063192 \ |
---|
16 | rmd160 7a5c426d50ae952c3e35522506ab632e7a57f026 |
---|
17 | |
---|
18 | depends_lib bin:camlc.opt:ocaml \ |
---|
19 | bin:ocamlfind:caml-findlib \ |
---|
20 | bin:pkg-config:pkgconfig \ |
---|
21 | port:faac |
---|
22 | |
---|
23 | configure.pkg_config ${prefix}/bin/pkg-config |
---|
24 | |
---|
25 | build.args LIBDIRS=${prefix}/lib |
---|
26 | |
---|
27 | proc ocamlfind_destdir {} { |
---|
28 | # only bother calculating this darn thing once |
---|
29 | variable ocamlfind_destdir {} |
---|
30 | variable destroot |
---|
31 | variable prefix |
---|
32 | if {![string length $ocamlfind_destdir]} { |
---|
33 | set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir] |
---|
34 | } |
---|
35 | return $ocamlfind_destdir |
---|
36 | } |
---|
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 | |
---|