Upgrade ffado (FireWire audio drivers) to the recently released 2.1.0
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
{ stdenv, fetchsvn, dbus, dbus_cplusplus, expat, glibmm, libconfig
|
||||
{ stdenv, fetchurl, dbus, dbus_cplusplus, expat, glibmm, libconfig
|
||||
, libavc1394, libiec61883, libraw1394, libxmlxx, makeWrapper, pkgconfig
|
||||
, pyqt4, python, pythonDBus, qt4, scons }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libffado-svn-1995";
|
||||
name = "libffado-${version}";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "http://subversion.ffado.org/ffado/trunk/libffado";
|
||||
rev = "1995";
|
||||
src = fetchurl {
|
||||
url = "http://www.ffado.org/files/${name}.tgz";
|
||||
sha256 = "11cxmy31c19720j2171l735rpg7l8i41icsgqscfd2vkbscfmh6y";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
@@ -18,13 +19,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
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";
|
||||
buildPhase = ''
|
||||
export PYLIBSUFFIX=lib/${python.libPrefix}/site-packages
|
||||
scons PYPKGDIR=$out/$PYLIBSUFFIX
|
||||
sed -e "s#/usr/local#$out#" -i support/mixer-qt4/ffado/config.py
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
scons PREFIX=$out LIBDIR=$out/lib SHAREDIR=$out/share/libffado \
|
||||
PYPKGDIR=$out/$PYLIBSUFFIX install
|
||||
PYPKGDIR=$out/$PYLIBSUFFIX UDEVDIR=$out/lib/udev/rules.d install
|
||||
|
||||
sed -e "s#/usr/local#$out#g" -i $out/bin/ffado-diag
|
||||
|
||||
|
||||
Reference in New Issue
Block a user