Ticket #16173: Portfile

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