1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 103535 2013-02-28 15:00:02Z michaelld@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | name xrootd |
---|
8 | version 3.2.7 |
---|
9 | revision 0 |
---|
10 | |
---|
11 | categories science |
---|
12 | maintainers hep.phy.cam.ac.uk:jonesc openmaintainer |
---|
13 | |
---|
14 | description XRootD software framework is a fully generic suite for fast, \ |
---|
15 | low latency and scalable data access. |
---|
16 | |
---|
17 | license LGPL-3+ |
---|
18 | platforms darwin |
---|
19 | |
---|
20 | homepage http://xrootd.slac.stanford.edu |
---|
21 | |
---|
22 | master_sites http://xrootd.slac.stanford.edu/download/v${version} |
---|
23 | |
---|
24 | checksums rmd160 014556e1701753e6d21989b6b90a627d77383968 \ |
---|
25 | sha256 dc8c4d819cd0eac3960dd6478821a9cb5d26089518b44230d8e325c1b6c29d7e |
---|
26 | |
---|
27 | depends_lib port:zlib port:libevent port:swig |
---|
28 | |
---|
29 | default_variants +ssl +readline |
---|
30 | |
---|
31 | patchfiles man.patch |
---|
32 | |
---|
33 | # do a out of place build |
---|
34 | pre-configure { |
---|
35 | file mkdir ${workpath}/build |
---|
36 | } |
---|
37 | configure.dir ${workpath}/build |
---|
38 | configure.post_args ${worksrcpath} |
---|
39 | build.dir ${workpath}/build |
---|
40 | destroot.dir ${workpath}/build |
---|
41 | |
---|
42 | configure.args-append -DCMAKE_INSTALL_MANDIR="share/man" \ |
---|
43 | -DCMAKE_BUILD_TYPE=Release \ |
---|
44 | -DENABLE_CRYPTO=False \ |
---|
45 | -DENABLE_READLINE=False \ |
---|
46 | -DENABLE_KRB5=False \ |
---|
47 | -DENABLE_PERL=False |
---|
48 | |
---|
49 | variant perl description {Build with Perl Support} { |
---|
50 | configure.args-delete -DENABLE_PERL=False |
---|
51 | configure.args-append -DENABLE_PERL=True |
---|
52 | |
---|
53 | depends_lib-append port:perl5 |
---|
54 | depends_build-append port:swig-perl |
---|
55 | } |
---|
56 | |
---|
57 | variant readline description {Build with Readline Support} { |
---|
58 | configure.args-delete -DENABLE_READLINE=False |
---|
59 | configure.args-append -DENABLE_READLINE=True -DREADLINE_ROOT_DIR="${prefix}" |
---|
60 | depends_lib-append port:readline |
---|
61 | } |
---|
62 | |
---|
63 | variant ssl description {Build with OpenSSL Support} { |
---|
64 | configure.args-delete -DENABLE_CRYPTO=False |
---|
65 | configure.args-append -DENABLE_CRYPTO=True -DOPENSSL_ROOT_DIR="${prefix}" |
---|
66 | depends_lib-append port:openssl |
---|
67 | } |
---|
68 | |
---|
69 | variant kerberos description {Build with Kerberos 5 Support} { |
---|
70 | configure.args-delete -DENABLE_KRB5=False |
---|
71 | configure.args-append -DENABLE_KRB5=True -DKERBEROS5_ROOT_DIR="${prefix}" |
---|
72 | depends_lib-append port:kerberos5 |
---|
73 | } |
---|