# $Id: Portfile 89253 2012-01-22 05:59:26Z ram@macports.org $

PortSystem    1.0

name          gstlal
version       0.2.0
categories    science
platforms     darwin
maintainers   ram
license       GPL

description   gStreamer elements for gravitational-wave data analysis
long_description \
  This package provides a variety of gstreamer elements for \
  gravitational-wave data analysis and some libraries to help write \
  such elements. The code here sits on top of several other libraries, \
  notably the LIGO Algorithm Library, FFTW, the GNU Scientific Library, \
  and, of course, GStreamer

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

checksums     md5 00c4ff11f325f15fba3113397db34c2a \
              sha1 97162fb44b388901880ca2a8ac9a8e5edc7d91f9 \
              rmd160 31a3a8b8401d0687f4e2546281514a4014aff2b5

depends_build port:pkgconfig

depends_lib   port:python27 \
              port:fftw-3 \
              port:fftw-3-single \
              port:gsl \
              port:gstreamer \
              port:gst-plugins-base \
              port:gst-plugins-good \
              port:py27-gst-python \
              port:py27-gobject \
              port:py27-numpy \
              port:lal \
              port:lalframe \
              port:lalmetaio \
              port:lalsimulation \
              port:lalburst \
              port:lalinspiral

set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
configure.pkg_config_path ${python_prefix}/lib/pkgconfig
configure.python ${prefix}/bin/python2.7

use_parallel_build yes

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