Ticket #16188: Portfile

File Portfile, 1.3 KB (added by toots@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                ocaml-soundtouch
6version             0.1.4
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         OCaml bindings for the soundtouch library
10homepage            http://savonet.sf.net/
11platforms           darwin
12master_sites        sourceforge:savonet
13
14checksums           md5  b4ee834b79f1d7a2b452fd55f093cf70 \
15                    sha1  186dbad0444835a1d3f0db0c00997773a9a3bad5 \
16                    rmd160  583c5bdd2e1fbb3dbc60c183e622516bc9d74a79
17
18depends_lib         bin:camlc.opt:ocaml \
19  bin:ocamlfind:caml-findlib \
20  port:pkgconfig port:soundtouch
21
22build.args          LIBDIRS=${prefix}/lib
23
24pre-build {
25  reinplace "s#ACLIBS = #ACLIBS = -lstdc++ #" ${worksrcpath}/src/Makefile
26}
27
28proc 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
39pre-destroot {
40  system "mkdir -p [ocamlfind_destdir]"
41  reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/src/OCamlMakefile
42}
43