# -*- 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

PortSystem    1.0

name          gstlal
version       0.10.4
revision      1
categories    science
platforms     darwin
maintainers   ram
license       GPL-2+

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://software.ligo.org/lscsoft/source/

checksums     rmd160 c7e79881fb91f02084e3631d592795175e0729bd \
              sha256 85922c0be298607a182f18a8aa1f9680423184f8019ea01c775dc139d91764c7

#depends_build port:pkgconfig

#depends_lib   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:lalmetaio \
#              port:lalsimulation \
#              port:lalburst \
#              port:lalinspiral \
#              port:gsl \
#              port:orc \
#              port:doxygen

pre-fetch {
    ui_error "${name} is currently broken, working with upstream to resolve"
    error "${name} is currently broken"
}

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

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   none
#livecheck.type   regex
#livecheck.url    ${master_sites}
#livecheck.regex  {gstlal-(\d+(?:\.\d+)*).tar.gz}