22 | | patchfiles patch-libraries-ldastoolsal-src-AtExit.cc.diff \ |
23 | | patch-libraries-ldastoolsal-src-TaskThread.cc.diff |
24 | | |
25 | | configure.args --disable-silent-rules \ |
26 | | --with-optimization=high \ |
27 | | --disable-tcl \ |
28 | | --disable-python \ |
29 | | --without-doxygen \ |
30 | | --without-dot \ |
31 | | --disable-latex |
32 | | |
33 | | if {${os.major} < 13} { |
34 | | configure.args-append --disable-cxx11 |
35 | | } |
36 | | |
37 | | depends_lib path:lib/libssl.dylib:openssl \ |
38 | | port:zlib \ |
39 | | port:bzip2 \ |
40 | | port:flex |
41 | | |
42 | | # requires clang from Xcode5 or higher to build |
43 | | compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2 |
44 | | |
45 | | use_parallel_build yes |
46 | | |
47 | | #variant docs description {build documentation} { |
48 | | # configure.args-delete --disable-latex \ |
49 | | # --disable-dot \ |
50 | | # --disable-ldas-documentation \ |
51 | | # configure.args-append --docdir=${prefix}/share/doc/ldas-tools |
52 | | #} |
53 | | |
54 | | #------------------------------------------------------------------------ |
55 | | # Python variants |
56 | | #------------------------------------------------------------------------ |
57 | | set pythons_versions { 27 34 } |
58 | | |
59 | | set pythons_ports {} |
60 | | foreach s ${pythons_versions} { |
61 | | lappend pythons_ports python${s} |
62 | | } |
63 | | |
64 | | foreach s ${pythons_versions} { |
65 | | set p python${s} |
66 | | set v [string index ${s} 0].[string index ${s} 1] |
67 | | set i [lsearch -exact ${pythons_ports} ${p}] |
68 | | set c [lreplace ${pythons_ports} ${i} ${i}] |
69 | | set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v} |
70 | | eval [subst { |
71 | | variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} { |
72 | | |
73 | | depends_build-append port:swig-python |
74 | | depends_lib-append port:${p} port:py${s}-numpy |
75 | | configure.python ${prefix}/bin/python${v} |
76 | | configure.args-replace --disable-python --enable-python |
77 | | destroot.args-append pythondir="${d}" pyexecdir="${d}" |
78 | | |
79 | | } |
80 | | }] |
81 | | } |
82 | | |
83 | | if {![variant_isset python34]} { |
84 | | default_variants +python27 |
| 20 | depends_run port:ldas-tools-al \ |
| 21 | port:ldas-tools-filters \ |
| 22 | port:ldas-tools-framecpp \ |
| 23 | port:ldas-tools-ldasgen \ |
| 24 | port:ldas-tools-diskcacheAPI \ |
| 25 | port:ldas-tools-frameAPI \ |
| 26 | port:ldas-tools-utilities |
| 27 | |
| 28 | build {} |
| 29 | destroot { |
| 30 | xinstall -d ${destroot}${prefix}/share/doc/${name}-${version} |
| 31 | system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}-${version}/README.txt" |