Ticket #16183: Portfile

File Portfile, 1.2 KB (added by toots@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                ocaml-mad
6version             0.3.4
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         OCaml bindings for libmad MPEG audio decoding library
10homepage            http://savonet.sf.net/
11platforms           darwin
12master_sites        sourceforge:savonet
13
14checksums           md5  b3f638b6894a1d606d9972e1c5f92fac \
15                    sha1  090d71e8551572ce2562bac86e3efd8b79f42355 \
16                    rmd160 75bf5b5946c29a5cb7e9689be4ef5fa00e66e9b7
17
18depends_lib         bin:camlc.opt:ocaml \
19  bin:ocamlfind:caml-findlib \
20  port:libmad \
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