# $Id: Portfile 104896 2013-04-04 19:49:12Z ram@macports.org $

PortSystem    1.0
PortGroup     active_variants 1.1

name          lalapps
version       6.12.0
categories    science
platforms     darwin
maintainers   ram
license       GPL

description   LSC Algorithm Library Applications
long_description \
  LALApps is a set of codes for gravitational wave data analysis, \
  against the LSC Algorithm Library.

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 a19b5f5f615fbc3877ca6feadf9be557d6edf5cf \
              sha256 e0f43260110b0304ca5a8003e6097815b00f1dfc53b37e3360c5b64ab98398d1

depends_build port:pkgconfig

depends_lib   port:python27 \
              port:gsl \
              port:fftw-3 \
              port:fftw-3-single \
              port:libframe \
              port:metaio \
              port:lal \
              port:lalframe \
              port:lalmetaio \
              port:lalsimulation \
              port:lalburst \
              port:lalinspiral \
              port:lalpulsar \
              port:lalinference \
              port:lalstochastic \
              port:glue

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 lalxml description {Build with LALXML support} {
  require_active_variants lalpulsar lalxml
  require_active_variants lalinference lalxml
  depends_lib-append    port:libxml2 \
                        port:lalxml
  configure.args-append --enable-lalxml
}

default_variants +lalxml

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