Ticket #38343: Portfile

File Portfile, 2.4 KB (added by cjones051073 (Chris Jones), 11 years ago)
Line 
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
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                xrootd
8version             3.2.7
9revision            0
10
11categories          science
12maintainers         hep.phy.cam.ac.uk:jonesc openmaintainer
13
14description         XRootD software framework is a fully generic suite for fast, \
15                    low latency and scalable data access.
16
17license             LGPL-3+
18platforms           darwin
19
20homepage            http://xrootd.slac.stanford.edu
21
22master_sites        http://xrootd.slac.stanford.edu/download/v${version}
23
24checksums           rmd160  014556e1701753e6d21989b6b90a627d77383968 \
25                    sha256  dc8c4d819cd0eac3960dd6478821a9cb5d26089518b44230d8e325c1b6c29d7e
26
27depends_lib         port:zlib port:libevent port:swig
28
29default_variants    +ssl +readline
30
31patchfiles          man.patch
32
33# do a out of place build
34pre-configure {
35    file mkdir ${workpath}/build
36}
37configure.dir       ${workpath}/build
38configure.post_args ${worksrcpath}
39build.dir           ${workpath}/build
40destroot.dir        ${workpath}/build
41
42configure.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
49variant 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
57variant 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
63variant 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
69variant 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}