# $Id: Portfile 117165 2014-02-18 00:04:37Z ram@macports.org $

PortSystem    1.0

name          gstlal-ugly
version       0.6.0
categories    science
platforms     darwin
maintainers   ram
license       GPL

description   Experimental GSTLAL elements
long_description \
  This package provides a variety of experimental 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     rmd160 42554a3c7262f6ba341908232ebbd4c6499ca4ed \
              sha256 5fe7c6acfd07662b342ac7982d94f3f6a3a9c2df3808c8b85e4968044cc93e8d

depends_build port:pkgconfig

depends_lib   port:gstlal \
              port:python27 \
              port:glue \
              port:pylal \
              port:fftw-3 \
              port:fftw-3-single \
              port:gstreamer010 \
              port:gstreamer010-gst-plugins-base \
              port:gstreamer010-gst-plugins-good \
              port:py27-gst-python \
              port:py27-gobject \
              port:py27-numpy \
              port:py27-scipy \
              port:lal \
              port:lalframe \
              port:lalmetaio \
              port:lalburst \
              port:gsl \
              port:nds2-client \
              port:orc \
              port:ldas-tools

# pylal is not universal
universal_variant no

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

configure.args --without-gds

use_parallel_build no

set pythondir "${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages"
destroot.args-append \
              pythondir="${pythondir}" \
              pyexecdir="${pythondir}" \
              pkgpythondir="${pythondir}/${name}" \
              pkgpyexecdir="${pythondir}/${name}"

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