summary refs log tree commit diff
path: root/pkgs/development/libraries/msilbc
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2008-02-10 17:35:03 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2008-02-10 17:35:03 +0000
commitf4eda0eb22aa81deeba8c4a494f6d2ed42a4f45a (patch)
tree9c133186631673d74284704ca24025266a3e9a89 /pkgs/development/libraries/msilbc
parenta4512a4a49fbb1190a2bdf56bb1f5b1f590117e1 (diff)
downloadnixpkgs-f4eda0eb22aa81deeba8c4a494f6d2ed42a4f45a.tar
nixpkgs-f4eda0eb22aa81deeba8c4a494f6d2ed42a4f45a.tar.gz
nixpkgs-f4eda0eb22aa81deeba8c4a494f6d2ed42a4f45a.tar.bz2
nixpkgs-f4eda0eb22aa81deeba8c4a494f6d2ed42a4f45a.tar.lz
nixpkgs-f4eda0eb22aa81deeba8c4a494f6d2ed42a4f45a.tar.xz
nixpkgs-f4eda0eb22aa81deeba8c4a494f6d2ed42a4f45a.tar.zst
nixpkgs-f4eda0eb22aa81deeba8c4a494f6d2ed42a4f45a.zip
ilbc and msilbc libraries added
svn path=/nixpkgs/branches/stdenv-updates/; revision=10570
Diffstat (limited to 'pkgs/development/libraries/msilbc')
-rw-r--r--pkgs/development/libraries/msilbc/2.0.0.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/libraries/msilbc/2.0.0.nix b/pkgs/development/libraries/msilbc/2.0.0.nix
new file mode 100644
index 00000000000..8bc8f2a6c1d
--- /dev/null
+++ b/pkgs/development/libraries/msilbc/2.0.0.nix
@@ -0,0 +1,24 @@
+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
+  ";
+}