Ticket #16179: Portfile

File Portfile, 1.2 KB (added by toots@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                ocaml-faac
6version             0.1.1
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         OCaml bindings for the AAC encoding library
10homepage            http://savonet.sf.net/
11platforms           darwin
12master_sites        sourceforge:savonet
13
14checksums           md5  77ca55b93a90bf672e7a41b50a679f0d \
15                    sha1  9d7c17fdd5a186439eef91166a690776fc063192 \
16                    rmd160  7a5c426d50ae952c3e35522506ab632e7a57f026
17
18depends_lib         bin:camlc.opt:ocaml \
19  bin:ocamlfind:caml-findlib \
20  bin:pkg-config:pkgconfig \
21  port:faac
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
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