ilbc and msilbc libraries added
svn path=/nixpkgs/branches/stdenv-updates/; revision=10570
This commit is contained in:
parent
a4512a4a49
commit
f4eda0eb22
17
pkgs/development/libraries/ilbc/default.nix
Normal file
17
pkgs/development/libraries/ilbc/default.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
args: with args;
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ilbc-rfc3951";
|
||||||
|
|
||||||
|
# I'm too lazy to extract .c source from rfc3951. So, I'm using autotools stuff
|
||||||
|
# from linphone project
|
||||||
|
src = stdenv.mkDerivation {
|
||||||
|
name = "ilbc-rfc3951.tar.gz";
|
||||||
|
src = msilbc.src;
|
||||||
|
outputHashAlgo = "sha256";
|
||||||
|
outputHash = "0f6scsp72bz2ifscd8c0x57ipcxi2i4a9b4nwlnwx7a7a0hrazhj";
|
||||||
|
phases = "unpackPhase installPhase";
|
||||||
|
installPhase = "cp ilbc-rfc3951.tar.gz \${out}";
|
||||||
|
};
|
||||||
|
|
||||||
|
configureFlags = "--enable-shared --disable-static";
|
||||||
|
}
|
24
pkgs/development/libraries/msilbc/2.0.0.nix
Normal file
24
pkgs/development/libraries/msilbc/2.0.0.nix
Normal file
@ -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
|
||||||
|
";
|
||||||
|
}
|
@ -2088,6 +2088,10 @@ rec {
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ilbc = import ../development/libraries/ilbc {
|
||||||
|
inherit stdenv msilbc;
|
||||||
|
};
|
||||||
|
|
||||||
ilmbase = import ../development/libraries/ilmbase {
|
ilmbase = import ../development/libraries/ilmbase {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
@ -2439,6 +2443,10 @@ rec {
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
msilbc = selectVersion ../development/libraries/msilbc "2.0.0" {
|
||||||
|
inherit fetchurl stdenv ilbc mediastreamer pkgconfig;
|
||||||
|
};
|
||||||
|
|
||||||
mysqlConnectorODBC = import ../development/libraries/mysql-connector-odbc {
|
mysqlConnectorODBC = import ../development/libraries/mysql-connector-odbc {
|
||||||
inherit fetchurl stdenv mysql libtool zlib unixODBC;
|
inherit fetchurl stdenv mysql libtool zlib unixODBC;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user