| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name ocaml-ao |
|---|
| 6 | version 0.1.9 |
|---|
| 7 | categories devel ml |
|---|
| 8 | maintainers toots@rastageeks.org |
|---|
| 9 | description OCaml bindings for the libao audio output library |
|---|
| 10 | homepage http://savonet.sf.net/ |
|---|
| 11 | platforms darwin |
|---|
| 12 | master_sites sourceforge:savonet |
|---|
| 13 | |
|---|
| 14 | checksums md5 1ed967e98df567d628d539d1dfb53744 \ |
|---|
| 15 | sha1 9b5b113449dd7bf027b1078ef9339c376c2f8a1c \ |
|---|
| 16 | rmd160 7e00cb46fa290050f81fa333d79a7b562c271d48 |
|---|
| 17 | |
|---|
| 18 | depends_lib port:libao \ |
|---|
| 19 | bin:camlc.opt:ocaml \ |
|---|
| 20 | bin:ocamlfind:caml-findlib \ |
|---|
| 21 | bin:pkg-config:pkgconfig |
|---|
| 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 | pre-destroot { |
|---|
| 39 | system "mkdir -p [ocamlfind_destdir]" |
|---|
| 40 | reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/src/OCamlMakefile |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | |
|---|