guitarix: use system zita libs

This commit is contained in:
Bart Brouns 2015-05-06 02:08:11 +02:00
parent 27ffee3631
commit 859ec9719b
3 changed files with 38 additions and 3 deletions

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, gettext, intltool, pkgconfig, python
, avahi, bluez, boost, eigen, fftw, glib, glibmm, gtk, gtkmm, jack2
, ladspaH, librdf, libsndfile, lilv, lv2, serd, sord, sratom
, zita-convolver, zita-resampler
, optimizationSupport ? false # Enable support for native CPU extensions
}:
@ -22,15 +23,14 @@ stdenv.mkDerivation rec {
buildInputs = [
avahi bluez boost eigen fftw glib glibmm gtk gtkmm jack2
ladspaH librdf libsndfile lilv lv2 serd sord sratom
zita-convolver zita-resampler
];
configureFlags = [
"--shared-lib"
"--no-desktop-update"
"--no-faust" # Need to package a release of faust, 0.9.58 or 0.9.65
"--enable-nls"
"--includeresampler" # Zita-resampler not packaged, use vendored version
"--includeconvolver" # Zita-convolver not packaged, use vendored version
"--no-faust" # todo: find out why --faust doesn't work
] ++ optional optimizationSupport "--optimization";
configurePhase = ''python waf configure --prefix=$out $configureFlags'';

View File

@ -0,0 +1,33 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "zita-resampler-${version}";
version = "1.3.0";
src = fetchurl {
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${name}.tar.bz2";
sha256 = "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq";
};
makeFlags = [
"PREFIX=$(out)"
"SUFFIX="
];
patchPhase = ''
cd libs
sed -e "s@ldconfig@@" -i Makefile
'';
fixupPhase = ''
ln -s $out/lib/libzita-resampler.so.$version $out/lib/libzita-resampler.so.1
'';
meta = {
description = "resample library by Fons Adriaensen";
version = "${version}";
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -8240,6 +8240,8 @@ let
zita-alsa-pcmi = callPackage ../development/libraries/audio/zita-alsa-pcmi { };
zita-resampler = callPackage ../development/libraries/audio/zita-resampler { };
zziplib = callPackage ../development/libraries/zziplib { };
### DEVELOPMENT / LIBRARIES / AGDA