source: trunk/dports/science/lalapps/Portfile

Last change on this file was 151366, checked in by ram@…, 13 months ago

science/*lal*: latest science run release

switch python bindings to subports
support multiple python versions
compile using an OpenMP enabled compiler
add aronnax as co-maintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 151366 2016-08-13 15:36:28Z ryandesign@macports.org $
2
3PortSystem    1.0
4
5name          lalapps
6version       6.19.0
7categories    science
8platforms     darwin
9maintainers   ram aronnax
10license       GPL-2+
11
12description   LSC Algorithm Library Applications
13long_description \
14  LALApps is a set of codes for gravitational wave data analysis, \
15  against the LSC Algorithm Library.
16
17homepage      https://wiki.ligo.org/DASWG/LALSuite
18master_sites  http://software.ligo.org/lscsoft/source/lalsuite/
19use_xz        yes
20
21checksums     rmd160 0c679757a72314f0f66a1b77f6dadfc4f0bd4bbf \
22              sha256 03200dbcf4e51187bbbe045eca967d5185499b28b966bab8ff7003cb17cff485
23
24depends_build port:pkgconfig
25
26depends_lib   port:gsl \
27              port:libomp \
28              port:fftw-3 \
29              port:fftw-3-single \
30              port:libframe \
31              port:metaio \
32              port:libxml2 \
33              port:lal \
34              port:lalframe \
35              port:lalmetaio \
36              port:lalxml \
37              port:lalsimulation \
38              port:lalburst \
39              port:lalinspiral \
40              port:lalpulsar \
41              port:lalinference \
42              port:lalstochastic \
43              port:glue
44
45# Choose a compiler that supports OpenMP.
46compiler.whitelist macports-clang-3.8 macports-clang-3.7 macports-clang-3.9
47compiler.fallback  macports-clang-3.8
48
49configure.args   --mandir=${prefix}/share/man \
50                 --disable-silent-rules \
51                 --disable-gcc-flags \
52                 --disable-debug \
53                 --enable-openmp \
54                 PYTHON=false
55
56use_parallel_build yes
57
58# lalxml is currently enabled by default but may change in the future
59#variant lalxml description {Build with LALXML support} {
60#  require_active_variants lalpulsar lalxml
61#  require_active_variants lalinference lalxml
62#  depends_lib-append    port:libxml2 \
63#                        port:lalxml
64#  configure.args-append --enable-lalxml
65#}
66#default_variants +lalxml
67
68livecheck.type   regex
69livecheck.url    ${master_sites}
70livecheck.regex  {lalapps-(\d+(?:\.\d+)*).tar.xz}
71
72set v                 27
73set pythonversion     [string range ${v} 0 end-1].[string index ${v} end]
74set pythonhome \
75  "${frameworks_dir}/Python.framework/Versions/${pythonversion}"
76set pythondir "${pythonhome}/lib/python${pythonversion}/site-packages"
77
78categories-prepend    python
79description           Python ${pythonversion} bindings for ${description}
80long_description      ${long_description} This package provides Python \
81                      ${pythonversion} bindings, modules, and scripts.
82
83depends_build-append  port:swig-python
84depends_lib-strsed    g/port:lal/port:py${v}-lal/
85depends_lib-prepend   port:python${v} port:py${v}-numpy
86
87configure.args-delete PYTHON=false
88configure.args-append PYTHON=${pythonhome}/bin/python${pythonversion} --enable-swig-python
89configure.args-append SWIG_CPPFLAGS="-I${pythonhome}/include"
90
91destroot.args-append  pythondir="${pythondir}" \
92                      pyexecdir="${pythondir}" \
93                      pkgpythondir="${pythondir}/${name}" \
94                      pkgpyexecdir="${pythondir}/${name}"
Note: See TracBrowser for help on using the repository browser.