Ticket #16186: Portfile

File Portfile, 1.2 KB (added by toots@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                ocaml-portaudio
6version             0.1.2
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         OCaml binding for the I/O portable library portaudio
10homepage            http://savonet.sf.net/
11platforms           darwin
12master_sites        sourceforge:savonet
13
14checksums           md5  a6bb1a4799c3312e009b97aaebbeec74 \
15                    sha1  318ac0cfdad3d561cb684ac00959ee9842c35700 \
16                    rmd160  8e20a5d340f959acd0150de36fa0878fc3a604ac
17
18depends_lib         bin:camlc.opt:ocaml \
19  bin:ocamlfind:caml-findlib bin:pkg-config:pkgconfig \
20  port:portaudio
21
22configure.pkg_config    ${prefix}/bin/pkg-config
23
24build.args          LIBDIRS=${prefix}/lib
25
26proc ocamlfind_destdir {} {
27    # only bother calculating this darn thing once
28    variable ocamlfind_destdir {}
29    variable destroot
30    variable prefix
31    if {![string length $ocamlfind_destdir]} {
32        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
33    }
34    return $ocamlfind_destdir
35}
36
37pre-destroot {
38  system "mkdir -p [ocamlfind_destdir]"
39  reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/src/OCamlMakefile
40}
41