# $Id: Portfile 105689 2013-05-02 02:45:04Z ram@macports.org $

PortSystem    1.0
PortGroup     active_variants 1.1

name          lalframe
version       1.0.10
revision      1
categories    science
platforms     darwin
maintainers   ram
license       GPL

description   LSC Algorithm Library - Frame
long_description \
  LIGO Scientific Collaboration Algorithm Library - Frame, containing \
  routines for reading and writing frame files.

homepage      https://www.lsc-group.phys.uwm.edu/daswg/projects/lalsuite.html
master_sites  http://www.lsc-group.phys.uwm.edu/daswg/download/software/source/lalsuite

checksums     rmd160 5a847347180c9bfd8852adf4e56d4b33ebb78cb3 \
              sha256 fae3f2a2d1b9ded7b8e216502c329c7824f27c62f96889a1489164064ae2f3f1

depends_build port:pkgconfig

depends_lib   port:python27 \
              port:lal \
              port:libframe

configure.python ${prefix}/bin/python2.7
configure.args --mandir=${prefix}/share/man \
               --disable-silent-rules \
               --disable-gcc-flags \
               --disable-debug

use_parallel_build yes

variant swig_python description {Build python SWIG bindings} {
  require_active_variants lal swig_python
  depends_build-append  port:swig-python
  depends_lib-append    port:py27-numpy
  configure.args-append --enable-swig-python
}

default_variants +swig_python

livecheck.type   regex
livecheck.url    ${master_sites}
livecheck.regex  {lalframe-(\d+(?:\.\d+)*).tar.gz}
