Ticket #51628: Portfile

File Portfile, 2.5 KB (added by emaros, 8 years ago)
Line 
1# $Id: Portfile 126610 2014-10-12 20:22:46Z ram@macports.org $
2
3PortSystem    1.0
4PortGroup     compiler_blacklist_versions 1.0
5
6name          ldas-tools-framecpp
7version       2.5.1
8categories    science
9platforms     darwin
10maintainers   ligo.org:ed.maros
11
12description   Suite of LDAS tools
13long_description ${description}
14
15homepage      https://wiki.ligo.org/DASWG/LDASTools
16master_sites  http://software.ligo.org/lscsoft/source/
17
18checksums     rmd160 d0e083e0d001279d16478ffac529e37bdd3250e7 \
19              sha256 bb3d6111a567c785947df8fe0e935bfdbc551f0e2565cc2ac964b4fbaf1a6f82
20
21conflicts      port:ldas-tools
22depends_lib    port:ldas-tools-al \
23               port:openssl \
24               port:zlib \
25               port:bzip2
26
27configure.args --disable-silent-rules \
28               --with-optimization=high \
29               --disable-tcl \
30               --disable-python \
31               --without-doxygen \
32               --without-dot \
33               --disable-latex
34
35if {${os.major} < 13} {
36    configure.args-append --disable-cxx11
37}
38
39# requires clang from Xcode5 or higher to build
40compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2
41
42use_parallel_build yes
43
44#variant docs description {build documentation} {
45#  configure.args-delete --disable-latex \
46#                        --disable-dot \
47#                        --disable-ldas-documentation \
48#  configure.args-append --docdir=${prefix}/share/doc/ldas-tools
49#}
50
51#------------------------------------------------------------------------
52# Python variants
53#------------------------------------------------------------------------
54set pythons_suffixes {27 34}
55
56set pythons_ports {}
57foreach s ${pythons_suffixes} {
58    lappend pythons_ports python${s}
59}
60
61foreach s ${pythons_suffixes} {
62    set p python${s}
63    set v [string index ${s} 0].[string index ${s} 1]
64    set i [lsearch -exact ${pythons_ports} ${p}]
65    set c [lreplace ${pythons_ports} ${i} ${i}]
66    set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
67    eval [subst {
68        variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} {
69
70            depends_build-append    port:swig-python
71            depends_lib-append      port:${p} port:py${s}-numpy
72            configure.args-strsed   s/--disable-python/--enable-python/
73            destroot.args-append    pythondir="${d}" pyexecdir="${d}"
74
75        }
76    }]
77}
78
79livecheck.type   regex
80livecheck.url    ${master_sites}
81livecheck.regex  {ldas-tools-(\d+(?:\.\d+)*).tar.gz}