Ticket #51630: 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-frameAPI
7version       2.5.0
8categories    science
9platforms     darwin
10maintainers   ligo.org:ed.maros
11
12description   Filters library used by ldas-tools
13long_description ${description}
14
15homepage      https://wiki.ligo.org/DASWG/LDASTools
16master_sites  http://software.ligo.org/lscsoft/source/
17
18checksums     rmd160 139f36ec8cf851e6438943ab748b490e294d19cf \
19              sha256 5f16bc86be0a5ade99d4affdd4c1e4a8b829854f0960b3ab285968574042694b
20
21conflicts      port:ldas-tools
22depends_lib    port:ldas-tools-ldasgen \
23               port:ldas-tools-filters \
24               port:ldas-tools-framecpp
25
26configure.args --disable-silent-rules \
27               --with-optimization=high \
28               --disable-tcl \
29               --disable-python \
30               --without-doxygen \
31               --without-dot \
32               --disable-latex
33
34if {${os.major} < 13} {
35    configure.args-append --disable-cxx11
36}
37
38# requires clang from Xcode5 or higher to build
39compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2
40
41use_parallel_build yes
42
43#variant docs description {build documentation} {
44#  configure.args-delete --disable-latex \
45#                        --disable-dot \
46#                        --disable-ldas-documentation \
47#  configure.args-append --docdir=${prefix}/share/doc/ldas-tools
48#}
49
50#------------------------------------------------------------------------
51# Python variants
52#------------------------------------------------------------------------
53set pythons_suffixes {27 34}
54
55set pythons_ports {}
56foreach s ${pythons_suffixes} {
57    lappend pythons_ports python${s}
58}
59
60foreach s ${pythons_suffixes} {
61    set p python${s}
62    set v [string index ${s} 0].[string index ${s} 1]
63    set i [lsearch -exact ${pythons_ports} ${p}]
64    set c [lreplace ${pythons_ports} ${i} ${i}]
65    set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
66    eval [subst {
67        variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} {
68
69            depends_build-append    port:swig-python
70            depends_lib-append      port:${p} port:py${s}-numpy
71            configure.args-strsed   s/--disable-python/--enable-python/
72            destroot.args-append    pythondir="${d}" pyexecdir="${d}"
73
74        }
75    }]
76}
77
78livecheck.type   regex
79livecheck.url    ${master_sites}
80livecheck.regex  {ldas-tools-filters-(\d+(?:\.\d+)*).tar.gz}