nixpkgs/pkgs/development/libraries/msilbc/2.0.0.nix
Yury G. Kudryashov f4eda0eb22 ilbc and msilbc libraries added
svn path=/nixpkgs/branches/stdenv-updates/; revision=10570
2008-02-10 17:35:03 +00:00

25 lines
712 B
Nix

args: with args;
stdenv.mkDerivation rec {
name = "msilbc-" + version;
src = fetchurl {
url = "http://download.savannah.gnu.org/releases/linphone/plugins/sources/${name}.tar.gz";
sha256 = "0ifydb7qmpync56l4hbrp36n5wrb7gadb76isp643s6wsg7l743j";
};
patchPhase = "sed -i /MS_FILTER_SET_FMTP/d ilbc.c";
propagatedBuildInputs = [ilbc mediastreamer];
buildInputs = [pkgconfig];
buildPhase = ''
cc -fPIC -c -pthread -o ilbc.o ilbc.c `pkg-config --cflags mediastreamer`
echo "next"
cc `pkg-config --libs mediastreamer` -shared -pthread -o libilbc.so
'';
installPhase = "
ensureDir \${out}/lib/mediastreamer/plugins
cp libilbc.so \${out}/lib/mediastreamer/plugins
";
}