2012-04-07 23:57:30 +00:00
|
|
|
{ stdenv, fetchsvn, dbus, dbus_cplusplus, expat, glibmm, libconfig
|
|
|
|
, libavc1394, libiec61883, libraw1394, libxmlxx, makeWrapper, pkgconfig
|
|
|
|
, pyqt4, python, pythonDBus, qt4, scons }:
|
2012-04-05 21:53:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-04-08 11:10:11 +00:00
|
|
|
name = "libffado-svn-1995";
|
2012-04-05 21:53:42 +00:00
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = "http://subversion.ffado.org/ffado/trunk/libffado";
|
2012-04-08 11:10:11 +00:00
|
|
|
rev = "1995";
|
2012-04-05 21:53:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2012-04-07 23:57:30 +00:00
|
|
|
[ dbus dbus_cplusplus expat glibmm libavc1394 libconfig
|
|
|
|
libiec61883 libraw1394 libxmlxx makeWrapper pkgconfig pyqt4
|
|
|
|
python pythonDBus qt4 scons
|
2012-04-05 21:53:42 +00:00
|
|
|
];
|
|
|
|
|
2012-04-07 23:57:30 +00:00
|
|
|
patches = [ ./enable-mixer-and-dbus.patch ];
|
|
|
|
|
|
|
|
preBuild = "export PYLIBSUFFIX=lib/${python.libPrefix}/site-packages";
|
|
|
|
|
|
|
|
# TODO fix ffado-diag, it doesn't seem to use PYPKGDIR
|
|
|
|
buildPhase = "scons PYPKGDIR=$out/$PYLIBSUFFIX";
|
2012-04-05 21:53:42 +00:00
|
|
|
installPhase = ''
|
2012-04-07 23:57:30 +00:00
|
|
|
scons PREFIX=$out LIBDIR=$out/lib SHAREDIR=$out/share/libffado \
|
|
|
|
PYPKGDIR=$out/$PYLIBSUFFIX install
|
|
|
|
|
|
|
|
PYDIR=$out/$PYLIBSUFFIX
|
|
|
|
wrapProgram $out/bin/ffado-mixer --prefix PYTHONPATH : \
|
|
|
|
$PYTHONPATH:$PYDIR:${pyqt4}/$LIBSUFFIX:${pythonDBus}/$LIBSUFFIX:
|
|
|
|
wrapProgram $out/bin/ffado-diag --prefix PYTHONPATH : \
|
|
|
|
$PYTHONPATH:$PYDIR:$out/share/libffado/python:${pyqt4}/$LIBSUFFIX:${pythonDBus}/$LIBSUFFIX:
|
2012-04-05 21:53:42 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.ffado.org;
|
2012-04-07 23:57:30 +00:00
|
|
|
description = "FireWire audio drivers";
|
2012-04-05 21:53:42 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|