# -*- 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
description LSC Algorithm Library
LIGO Scientific Collaboration Algorithm Library containing core \
routines for gravitational wave data analysis.
checksums rmd160 423c095afc6090aab7d3bf708f710652c87274de \
sha256 464601c529f5607c251a54843e749bc9bd962055cc04ba21fdf6150e392a0ba2
###############################################################################
### Everything below this line is common to all LALSuite ports. ###############
###############################################################################
maintainers {ram @skymoo} {aronnax @lpsinger}
# The GPL and OpenSSL licenses conflict with each other, and our build
# dependency on Python results in an indirect dependency on OpenSSL.
# However, there is no real conflict in the case of LALSuite because Python
# is used (1) as an interpreter to run part of the build and (2) as a
# separately installed interpreter that is invoked when the user runs some of
license_noconflict openssl
homepage https://wiki.ligo.org/DASWG/LALSuite
master_sites http://software.ligo.org/lscsoft/source/lalsuite
# Choose a compiler that supports OpenMP.
compiler.whitelist macports-clang-3.9 macports-clang-3.8 macports-clang-3.7 macports-clang-4.0
compiler.fallback macports-clang-3.9
set default_pythonarg PYTHON=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
--mandir=${prefix}/share/man \
# Create subports for each supported Python version
foreach v {27 34 35 36} {
set pythonversion [string range ${v} 0 end-1].[string index ${v} end]
"${frameworks_dir}/Python.framework/Versions/${pythonversion}"
set pythondir "${pythonhome}/lib/python${pythonversion}/site-packages"
categories-prepend python
description Python ${pythonversion} bindings for ${description}
long_description ${long_description} This package provides Python \
${pythonversion} bindings, modules, and scripts.
depends_build-append port:swig-python
depends_build-replace port:python27 port:python${v}
depends_lib-replace port:lal port:py${v}-lal
depends_lib-append port:${name} port:py${v}-numpy
configure.args-replace ${default_pythonarg} PYTHON=${pythonhome}/bin/python${pythonversion}
configure.args-replace --disable-python --enable-python
configure.args-append --enable-swig-python
destroot.args-append pythondir="${pythondir}" \
pyexecdir="${pythondir}" \
pkgpythondir="${pythondir}/${name}" \
pkgpyexecdir="${pythondir}/${name}" \