1 | # $Id: Portfile 92002 2012-04-15 21:41:01Z landonf@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ocaml-ocamlnet |
---|
6 | version 3.4 |
---|
7 | revision 1 |
---|
8 | categories devel ml |
---|
9 | maintainers landonf openmaintainer |
---|
10 | license {BSD GPL-2 LGPL-2} |
---|
11 | description Internet protocols and helper data structures for OCaml. |
---|
12 | long_description Internet protocols (http, cgi, email etc.) and helper \ |
---|
13 | data structures (mail messages, character sets, etc.) \ |
---|
14 | Ocamlnet implements a number of Internet protocols (http \ |
---|
15 | client & server, cgi and cgi variants, SunRPC, FTP, POP, \ |
---|
16 | SMTP) and is a strong base for web and Internet \ |
---|
17 | programming. |
---|
18 | |
---|
19 | homepage http://projects.camlcity.org/projects/ocamlnet.html |
---|
20 | platforms darwin |
---|
21 | master_sites http://download.camlcity.org/download/ |
---|
22 | |
---|
23 | distname ocamlnet-${version} |
---|
24 | |
---|
25 | checksums md5 920414f896af983e7458c03a492f7c62 \ |
---|
26 | sha1 2eed08e68175089f6bba4732aa99fc07843c7c92 \ |
---|
27 | rmd160 90baea35fc4ea37db6a3a611408fc676afc216f4 |
---|
28 | |
---|
29 | |
---|
30 | depends_lib port:ocaml \ |
---|
31 | port:ocaml-findlib \ |
---|
32 | port:ocaml-pcre |
---|
33 | |
---|
34 | # ocaml is not universal |
---|
35 | universal_variant no |
---|
36 | |
---|
37 | post-patch { |
---|
38 | set ocaml_site_path [exec ocamlfind printconf destdir] |
---|
39 | reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \ |
---|
40 | ${worksrcpath}/Makefile |
---|
41 | } |
---|
42 | |
---|
43 | configure.pre_args |
---|
44 | |
---|
45 | build.target all opt |
---|
46 | use_parallel_build no |
---|
47 | |
---|
48 | pre-destroot { |
---|
49 | set ocaml_site_path [exec ocamlfind printconf destdir] |
---|
50 | file mkdir ${destroot}${ocaml_site_path}/stublibs |
---|
51 | destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}${ocaml_site_path}" |
---|
52 | } |
---|
53 | |
---|
54 | livecheck.type regex |
---|
55 | livecheck.regex {ocamlnet-(\d+(?:\.\d+)*)\.tar} |
---|
56 | |
---|
57 | variant no_pcre description Disable parts that depend on lablgtk { |
---|
58 | configure.args-append -disable-pcre |
---|
59 | depends_lib-delete port:ocaml-pcre |
---|
60 | } |
---|
61 | |
---|
62 | variant gtk description Enable parts that depend on lablgtk { |
---|
63 | configure.args-append -enable-gtk |
---|
64 | depends_lib-append port:lablgtk |
---|
65 | } |
---|
66 | variant gtk2 description Enable parts that depend on lablgtk2 { |
---|
67 | configure.args-append -enable-gtk2 |
---|
68 | depends_lib-append port:lablgtk2 |
---|
69 | } |
---|
70 | variant tcl description Enable parts that depend on tcltk { |
---|
71 | configure.args-append -enable-tcl |
---|
72 | } |
---|
73 | variant ssl description Enable parts that depend on SSL { |
---|
74 | configure.args-append -enable-ssl |
---|
75 | depends_lib-append port:openssl |
---|
76 | } |
---|
77 | variant zip description Enable parts that depend on camlzip { |
---|
78 | configure.args-append -enable-zip |
---|
79 | depends_lib-append port:ocaml-zip |
---|
80 | } |
---|
81 | variant crypto description Enable parts that depend on cryptokit { |
---|
82 | configure.args-append -enable-crypto |
---|
83 | depends_lib-append port:cryptokit |
---|
84 | } |
---|
85 | variant apache description Enable Apache mod connector (EXPERIMENTAL) { |
---|
86 | configure.args-append -enable-apache |
---|
87 | } |
---|
88 | variant nethttpd description Enable nethttpd web server component (GPL!) { |
---|
89 | configure.args-append -with-nethttpd |
---|
90 | } |
---|
91 | variant rpc_auth_dh description Enable support for SecureRPC (Diffie-Hellman auth) { |
---|
92 | configure.args-append -with-rpc-auth-dh |
---|
93 | } |
---|