1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name camomile |
---|
6 | version 0.7.1 |
---|
7 | categories devel ml |
---|
8 | maintainers toots@rastageeks.org |
---|
9 | description OCaml module to convert strings to and from various encodings |
---|
10 | homepage http://savonet.sf.net/ |
---|
11 | platforms darwin |
---|
12 | master_sites http://rastageeks.org/~toots/macports \ |
---|
13 | http://ftp.de.debian.org/debian/pool/main/c/camomile/ |
---|
14 | distfiles camomile_${version}.orig.tar.gz |
---|
15 | |
---|
16 | checksums md5 10bb9c0ad374f351a75dbc921c12f3d8 \ |
---|
17 | sha1 c5e922e9f0bdeeb273d05d26ef4fb69d7309aadc \ |
---|
18 | rmd160 4a1c785413139312ab99584aa025f1e52339ee99 |
---|
19 | |
---|
20 | depends_lib bin:camlc.opt:ocaml \ |
---|
21 | bin:ocamlfind:caml-findlib |
---|
22 | |
---|
23 | configure.cflags {} |
---|
24 | configure.cxxflags {} |
---|
25 | configure.cppflags {} |
---|
26 | configure.ldflags {} |
---|
27 | configure.cxx {} |
---|
28 | configure.objc {} |
---|
29 | configure.cpp {} |
---|
30 | configure.cc {} |
---|
31 | |
---|
32 | build.args LIBDIRS=${prefix}/lib |
---|
33 | |
---|
34 | proc ocamlfind_destdir {} { |
---|
35 | # only bother calculating this darn thing once |
---|
36 | variable ocamlfind_destdir {} |
---|
37 | variable destroot |
---|
38 | variable prefix |
---|
39 | if {![string length $ocamlfind_destdir]} { |
---|
40 | set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir] |
---|
41 | } |
---|
42 | return $ocamlfind_destdir |
---|
43 | } |
---|
44 | |
---|
45 | pre-destroot { |
---|
46 | system "mkdir -p [ocamlfind_destdir]" |
---|
47 | reinplace "s#ocamlfind install#ocamlfind install -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/Makefile |
---|
48 | reinplace "s#\$(DATADIR)#${destroot}\$(DATADIR)#g" ${worksrcpath}/Makefile |
---|
49 | reinplace "s#\$(BINDIR)#${destroot}\$(BINDIR)#g" ${worksrcpath}/Makefile |
---|
50 | } |
---|
51 | |
---|
52 | |
---|
53 | |
---|